Closed
Description
When starting a new Coder deployment with multiple replicas, they can fail to start throwing an error during DB migration:
│ running command "coder server": connect to postgres: │
│ github.com/coder/coder/cli.(*RootCmd).Server.func1 │
│ /home/runner/actions-runner/_work/coder/coder/cli/server.go:596 │
│ - migrate up: │
│ github.com/coder/coder/cli.connectToPostgres │
│ /home/runner/actions-runner/_work/coder/coder/cli/server.go:1814 │
│ - up: │
│ github.com/coder/coder/coderd/database/migrations.Up │
│ /home/runner/actions-runner/_work/coder/coder/coderd/database/migrations/migrate.go:81 │
│ - Dirty database version 74. Fix and force version.