Hi!
I recently updated Scrutiny to the latest version, and now it refuses to start. The log is as follows:
/ ) / )( _ ( )( )( )( )( ( )( / )
_ ( ( ) / )()( )( )( ) ( \ /
(/ _)()_)() () ()()_) (__)
GitHub - AnalogJ/scrutiny: Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds dev-0.4.4
2022/05/14 16:09:21 No configuration file found at /opt/scrutiny/config/scrutiny.yaml. Using Defaults.
time=“2022-05-14T16:09:21+10:00” level=info msg=“Trying to connect to scrutiny sqlite db: \n”
Start the scrutiny server
[GIN-debug] [WARNING] Running in “debug” mode. Switch to “release” mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
time=“2022-05-14T16:09:21+10:00” level=info msg=“Successfully connected to scrutiny sqlite db: \n”
panic: a username and password is required for a setup
goroutine 1 [running]:
github.com/analogj/scrutiny/webapp/backend/pkg/web/middleware.RepositoryMiddleware({0xfeaac0, 0xc0003a6098}, {0xff3d50, 0xc0004145b0})
/app/scrutiny/webapp/backend/pkg/web/middleware/repository.go:14 +0xa5
github.com/analogj/scrutiny/webapp/backend/pkg/web.(*AppEngine).Setup(0xc0003a52c0, {0xff3d50, 0xc0004145b0})
/app/scrutiny/webapp/backend/pkg/web/server.go:26 +0xb4
github.com/analogj/scrutiny/webapp/backend/pkg/web.(*AppEngine).Start(0xc0003a52c0)
/app/scrutiny/webapp/backend/pkg/web/server.go:97 +0x3ab
main.main.func2(0xc0003ad340)
/app/scrutiny/webapp/backend/cmd/scrutiny/scrutiny.go:112 +0x1f7
github.com/urfave/cli/v2.(*Command).Run(0xc00041a240, 0xc0003ad1c0)
/root/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/command.go:164 +0x64a
github.com/urfave/cli/v2.(*App).RunContext(0xc000420000, {0xfd4dd0, 0xc000036058}, {0xc000032040, 0x2, 0x2})
/root/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/app.go:306 +0x926
github.com/urfave/cli/v2.(*App).Run(...)
/root/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/app.go:215
main.main()
/app/scrutiny/webapp/backend/cmd/scrutiny/scrutiny.go:137 +0x679
In the past, /config
has been mapped in the docker-compose.yaml
. Does this need to be updated to opt/scrutiny/config
?