After upgrade to 1.10 with PostgreSQL database server will no longer start
Describe the bug Working system running Stork 1.9 was upgraded to 1.10; server will no longer start, see log below.
To Reproduce Steps to reproduce the behavior:
systemctl start isc-stork-server
Expected behavior Stork server should start as it did before the upgrade.
Environment:
- Stork: 1.10.0.230404081226
- OS: Debian Bullseye amd64
Additional Information
Apr 10 06:44:20 stork22 systemd[1]: Started ISC Stork Server.
Apr 10 06:44:20 stork22 stork-server[73617]: time="2023-04-10 06:44:20" level="warning" msg="The hook directory: '/var/lib/stork-server/hooks' doesn't exist" file=" server.go:195 " error="cannot find plugin paths in: /var/lib/stork-server/hooks: cannot list hook directory: /var/lib/stork-server/hooks: open /var/lib/stork-server/hooks: no such file or directory"
Apr 10 06:44:20 stork22 stork-server[73617]: time="2023-04-10 06:44:20" level="info" msg="Checking connection to database" file=" connection.go:90 "
Apr 10 06:44:20 stork22 stork-server[73617]: time="2023-04-10 06:44:20" level="fatal" msg="Cannot start the Stork Server: Not running in a terminal\nisc.org/stork/util.GetSecretInTerminal\n\t/builds/isc-projects/stork/backend/util/util.go:232\nisc.org/stork/server/database.NewPgDBConn\n\t/builds/isc-projects/stork/backend/server/database/connection.go:103\nisc.org/stork/server/database.NewApplicationDatabaseConn\n\t/builds/isc-projects/stork/backend/server/database/connection.go:152\nisc.org/stork/server.(*StorkServer).Bootstrap\n\t/builds/isc-projects/stork/backend/server/server.go:202\nmain.main\n\t/builds/isc-projects/stork/backend/cmd/stork-server/main.go:61\nruntime.main\n\t/builds/isc-projects/stork/tools/golang/go/src/runtime/proc.go:250\nruntime.goexit\n\t/builds/isc-projects/stork/tools/golang/go/src/runtime/asm_amd64.s:1594" file=" main.go:63 "
Apr 10 06:44:20 stork22 systemd[1]: isc-stork-server.service: Main process exited, code=exited, status=1/FAILURE
Apr 10 06:44:20 stork22 systemd[1]: isc-stork-server.service: Failed with result 'exit-code'.
server.env contains:
STORK_DATABASE_NAME=stork
STORK_DATABASE_USER_NAME=stork
STORK_DATABASE_PASSWORD=<redacted>
STORK_REST_HOST=2001:470:8afe:64::115
STORK_REST_PORT=8989
STORK_REST_STATIC_FILES_DIR=/usr/share/stork/www
STORK_SERVER_ENABLE_METRICS=true