scrutiny: [BUG] Crashes on boot

Describe the bug After updating to 0.4.9-omnibus, scrutiny can no longer boot - it always crashes as it starts up.

System

  • Ubuntu 22.04 arm64
  • Docker Compose
  scrutiny:
    container_name: scrutiny
    image: ghcr.io/analogj/scrutiny:v0.4.9-omnibus
    privileged: true
    volumes:
      - /run/udev:/run/udev:ro
      - /dev:/dev
      - scrutiny-config:/opt/scrutiny/config
      - scrutiny-db:/opt/scrutiny/influxdb
    networks:
      - scrutiny-nginx

Log Files

 ___   ___  ____  __  __  ____  ____  _  _  _  _
/ __) / __)(  _ \(  )(  )(_  _)(_  _)( \( )( \/ )
\__ \( (__  )   / )(__)(   )(   _)(_  )  (  \  /
(___/ \___)(_)\_)(______) (__) (____)(_)\_) (__)
github.com/AnalogJ/scrutiny                             dev-0.4.9

Start the scrutiny server
time="2022-06-05T18:02:42Z" level=info msg="Successfully connected to scrutiny sqlite db: /opt/scrutiny/config/scrutiny.db\n"
panic: failed to check influxdb setup status - Get "http://localhost:8086/api/v2/setup": dial tcp: lookup localhost: device or resource busy

goroutine 1 [running]:
github.com/analogj/scrutiny/webapp/backend/pkg/web/middleware.RepositoryMiddleware({0x103a6c0, 0x4000010ce8}, {0x1043620, 0x4000430070})
	/go/src/github.com/analogj/scrutiny/webapp/backend/pkg/web/middleware/repository.go:14 +0xd4
github.com/analogj/scrutiny/webapp/backend/pkg/web.(*AppEngine).Setup(0x400042a630, {0x1043620, 0x4000430070})
	/go/src/github.com/analogj/scrutiny/webapp/backend/pkg/web/server.go:27 +0x90
github.com/analogj/scrutiny/webapp/backend/pkg/web.(*AppEngine).Start(0x400042a630)
	/go/src/github.com/analogj/scrutiny/webapp/backend/pkg/web/server.go:105 +0x530
main.main.func2(0x40003ffcc0)
	/go/src/github.com/analogj/scrutiny/webapp/backend/cmd/scrutiny/scrutiny.go:112 +0x288
github.com/urfave/cli/v2.(*Command).Run(0x400042e120, 0x40003ffb40)
	/go/src/github.com/analogj/scrutiny/vendor/github.com/urfave/cli/v2/command.go:164 +0x648
github.com/urfave/cli/v2.(*App).RunContext(0x40002fc480, {0x1026870, 0x400003a028}, {0x4000032060, 0x2, 0x2})
	/go/src/github.com/analogj/scrutiny/vendor/github.com/urfave/cli/v2/app.go:306 +0x840
github.com/urfave/cli/v2.(*App).Run(...)
	/go/src/github.com/analogj/scrutiny/vendor/github.com/urfave/cli/v2/app.go:215
main.main()
	/go/src/github.com/analogj/scrutiny/webapp/backend/cmd/scrutiny/scrutiny.go:137 +0x73c

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 37 (14 by maintainers)

Commits related to this issue

Most upvoted comments

Great! 🎉 It seems like this may have all been caused by the mismatch between the compilation image and the runtime image (different glibc versions). I’m going to wait for a couple of other users to try out the beta image and report back, but after that I can merge the changes into master 👍

Thanks for your help!

Also, thanks @robflate @PhilipWhiteside @feroxy @ViRb3 @agneevX @rshxyz and everyone who tested the beta version and provided feedback. I’m currently merging the changes from the beta version into master, and will release them as v0.4.10

Closing this issue as fixed. It’ll be released in v0.4.11. If anyone runs into the same issue, please feel free to comment or reopen this issue.

@agneevX can you open a new issue to track your scrutiny api not ready problem? I’ll need your logs as well.

@agneevX Ugh, I was really hoping that we had solved this issue, but you and @ViRb3 are both still seeing segfaults, so maybe I’ll need to implement the fix for CGO as well.