Lost SQL access

Hello,

I have recently starting working for a new company and was about to update octopus server to the latest release as we are fairly back in terms of updates.
So I went ahead and started backing up everything until I got to the database. As my user does not have access and the person that installed octopus is no longer in my company, neither left any credentials for it,I do not have access to the OctopusDeploy database.
Is there any way to find the credentials that the octopus deploy server uses to connect to the database?

Best Regards,
Carlos

Hi Carlos,

Thanks for getting in touch! You can see how Octopus connects to your database by checking your connection string. This is located in your OctopusServer.config file (located in C:\Octopus in standard installations), and it is displayed in your Octopus Manager window (see my first screenshot) on your Octopus server.

If your Octopus instance connects to your database via SQL authentication, your connection string will show the username and password. If it’s integrated authentication, it won’t show username and password in the connection string, and database connections are made by the user that is running your Octopus service. You can find this user by checking the properties of the ‘OctopusDeploy’ service listed in your services management console (see my second screenshot). If it’s running as local system, then the local system account has access to the database.

I hope this helps! Don’t hesitate to reach out if you have any further questions or concerns.

Best regards,

Kenny

Thank you Kenny you are a life saver :smiley:

You can close this issue.

Thanks,
Carlos Teixeira

Hi Carlos,

I’m glad that helped! Don’t hesitate to reach out anytime if you have any further questions. :slight_smile:

Best regards,

Kenny