Overview
Octopus Deploy requires a working SQL Server database connection during startup. If the connection fails, Octopus stops rather than repeatedly attempting to connect.
This applies to self-hosted Octopus Deploy instances, including High Availability configurations.
Reference
Octopus Server treats database connection failures during startup as critical errors.
A failed database connection can indicate a range of issues, including incorrect connection settings, authentication failures, network connectivity problems, or an unavailable SQL Server.
Rather than assuming the failure is temporary, Octopus Server stops the startup process and records the error in its logs. It does not continue retrying the connection indefinitely.
Once the underlying issue has been resolved, the Octopus Server service can be started again.
Notes and caveats
-
SQL Server failover: A database connection failure may be temporary, such as when SQL Server is transitioning between nodes during a failover. If Octopus Server starts during this period, it may fail to connect and stop, even if the database becomes available shortly afterward.
-
Automatic recovery: Where appropriate, service recovery or container restart policies can be configured to restart Octopus Server after a startup failure. This allows the hosting environment to handle temporary database unavailability.
-
Runtime behavior: This behavior specifically concerns database connectivity during Octopus Server startup. It does not describe how Octopus handles transient database connection failures after the service has started.
For additional information, see the Octopus High Availability documentation.