Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Upgrading ProGet as a different user fails

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 12 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      rob.leadbeater_2457
      last edited by

      Hi,

      I'm trying to upgrade an instance of ProGet Free from 2022.14 to 2022.17.
      This is a default installation using the bundled SQL database.

      The initial installation was done by UserA. I'm trying to perform the upgrade as UserB.

      When UserB starts Inedo Hub, rather than seeing an Upgrade button, there's a View Error button, which indicates:

      System.Data.SqlClient.SqlException (0x80131904): Cannot open database "ProGet" requested by the login. The login failed.
      Login failed for user 'DOMAIN\UserB'

      Clearly UserB doesn't have access to the database, as (presumably) it's running with the Integrated Security enabled.

      Data Source=localhost\INEDO;Initial Catalog=ProGet;Integrated Security=True

      As a complete novice to MS SQL server, what steps need to be taken to give UserB the right permissions?

      Cheers,
      Rob

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @rob.leadbeater_2457
        last edited by

        Hi @rob-leadbeater_2457 ,

        It sounds like you'll need to grant yourself (UserB) "sysadmin" access. You should probably also grant the local Administrators group access as well while you're at it :)

        The easiest way to do this is with the SQL Server management tools, since it's all gui-driven. That's a free download/install from Microsoft, and I would recommend installing it on the server anyways. But it's also possible to do it with the command line/scripts.

        Microsoft has some guidance on how to do this;
        https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/connect-to-sql-server-when-system-administrators-are-locked-out?view=sql-server-ver16

        Once you've given yourself sysadmin, you should have no issues.

        Alana

        1 Reply Last reply Reply Quote 1
        • R Offline
          rob.leadbeater_2457
          last edited by

          Thanks Alana,

          I had tried giving myself sysadmin rights previously, but was still getting permission errors.
          The trick from that article, to put the database in single user mode first, got things working.

          Cheers,
          Rob

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation