Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.16.2, 5.16.1, 5.16.0, 5.15.0, 5.14.1 all crash on startup #127

Closed
vertex-github opened this issue Apr 14, 2022 · 25 comments
Closed

5.16.2, 5.16.1, 5.16.0, 5.15.0, 5.14.1 all crash on startup #127

vertex-github opened this issue Apr 14, 2022 · 25 comments
Assignees
Labels
bug Something isn't working

Comments

@vertex-github
Copy link

vertex-github commented Apr 14, 2022

Raspberry Pi 4+:

docker logs wud:

#
# Fatal error in , line 0
# unreachable code
#
#
#
#FailureMessage Object: 0xbedfa5cc


#
# Fatal error in , line 0
# unreachable code
#
#
#
#FailureMessage Object: 0xbeea75fc
Trace/breakpoint trap (core dumped)
Trace/breakpoint trap (core dumped)
@fmartinou fmartinou self-assigned this Apr 15, 2022
@fmartinou fmartinou added the bug Something isn't working label Apr 15, 2022
@fmartinou
Copy link
Collaborator

Hi,

You're listing versions in error from 5.14.1; does that mean that you've found older versions working on a Pi4+?
(if so, I'm interested to know about them because I'll be able to find the dependency change culprit & to fix it)

@vertex-github
Copy link
Author

vertex-github commented Apr 15, 2022 via email

@fmartinou
Copy link
Collaborator

I did try and access the container - just running 'node' on it's own
crashes.

That's very interesting!

Because that means that it's not an issue with the app itself but rather with the node virtual machine on your arch.

=> I'm gonna do some research to see if there are known compatibility issues caused by the combination of the node.js version, the Alpine OS version and the pi4+ arch.

@fmartinou
Copy link
Collaborator

I'm using this base image node:16-alpine; could you test it (just run node -v or something like that) and confirm that the core dump also occurs?

@fmartinou
Copy link
Collaborator

fmartinou commented Apr 15, 2022

I build WUD images for the following arm arch:

  • linux/arm/v6
  • linux/arm/v7
  • linux/arm64

I'm wondering if your pi4+ wouldn't be a linux/arm64/v8 ? 🤔

@vertex-github
Copy link
Author

vertex-github commented Apr 15, 2022 via email

@vertex-github
Copy link
Author

Running from a 'sh' inside the container:

***@***.***:~ $ docker run -it node:16-alpine sh
/ # node -v
v16.14.2
/ # node


#
# Fatal error in , line 0
# unreachable code
#
#
#
#FailureMessage Object: 0xbe82a64c
Trace/breakpoint trap (core dumped)
/ #

@vertex-github
Copy link
Author

I build WUD images for the following arm arch:

* linux/arm/v6

* linux/arm/v7

* linux/arm64

I'm wondering if your pi4+ wouldn't be a linux/arm64/v8 ? 🤔

**@**:~ $ uname -a
Linux automation 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux

@vertex-github
Copy link
Author

vertex-github commented Apr 15, 2022

Found something - this works:

**@*****:~ $ docker run -it --privileged node:16-alpine node
Welcome to Node.js v16.14.2.
Type ".help" for more information.
> 

Also see: nodejs/docker-node#1477
and perhaps an explanation: dungeon-revealer/dungeon-revealer#1394 (comment)

@fmartinou
Copy link
Collaborator

Instead of full privilege, does this single option work as well?
--security-opt seccomp=unconfined

@fmartinou
Copy link
Collaborator

And with these privileged or security options, does wud work as well?

@fmartinou
Copy link
Collaborator

I suppose that the image node:17-alpine is also crashing?

@vertex-github
Copy link
Author

vertex-github commented Apr 20, 2022 via email

@vertex-github
Copy link
Author

Instead of full privilege, does this single option work as well? --security-opt seccomp=unconfined

Works fine.

@vertex-github
Copy link
Author

And with these privileged or security options, does wud work as well?

pi@automation:~/IOTstack $ docker run -it --security-opt seccomp=unconfined fmartinou/whats-up-docker
Unable to find image 'fmartinou/whats-up-docker:latest' locally
latest: Pulling from fmartinou/whats-up-docker
Digest: sha256:e81ce578c54b606300f060ea268275350068c04bd02f8c743621571e65c007dd
Status: Downloaded newer image for fmartinou/whats-up-docker:latest
17:46:19.156  INFO whats-up-docker: What's up Docker? is starting (version = latest)
17:46:19.160  INFO whats-up-docker/store: Load store from (/store/wud.json)
17:46:19.165  INFO whats-up-docker/store: Create Collection app
17:46:19.169  INFO whats-up-docker/store: Migrate data from version undefined to version latest
17:46:19.172  INFO whats-up-docker/store: Create Collection containers
17:46:19.172  INFO whats-up-docker/prometheus: Init Prometheus module
17:46:19.756  INFO whats-up-docker/registry.ghcr: Register with configuration {}
17:46:19.765  INFO whats-up-docker/registry.hub: Register with configuration {}
17:46:19.768  INFO whats-up-docker/registry.lscr: Register with configuration {}
17:46:19.774  INFO whats-up-docker/registry.quay: Register with configuration {}
17:46:19.775  INFO whats-up-docker/registry: No Watcher configured => Init a default one (Docker with default options)
17:46:21.334  INFO whats-up-docker/watcher.docker.local: Register with configuration {"socket":"/var/run/docker.sock","port":2375,"cron":"0 * * * *","watchbydefault":true,"watchall":false,"watchevents":true}
17:46:21.337  INFO whats-up-docker/watcher.docker.local: Cron scheduled (0 * * * *)
17:46:21.405  INFO whats-up-docker/registry: No authentication configured => Allow anonymous access
17:46:21.419  INFO whats-up-docker/authentication.anonymous.anonymous: Register with configuration {}
17:46:21.437  WARN whats-up-docker: Anonymous authentication is enabled; please make sure that the app is not exposed to unsecure networks
17:46:21.458  INFO whats-up-docker/api: Server listening on port 3000 (HTTP)
17:46:22.408  INFO whats-up-docker/watcher.docker.local: Cron started (0 * * * *)
17:46:22.462  INFO whats-up-docker/watcher.docker.local: Listening to docker events
17:46:22.486  WARN whats-up-docker/watcher.docker.local: Error when trying to get the list of the containers to watch (connect ENOENT /var/run/docker.sock)
17:46:22.486  INFO whats-up-docker/watcher.docker.local: Cron finished (0 containers watched, 0 errors, 0 available updates)
17:46:22.488  WARN whats-up-docker/watcher.docker.local: Unable to listen to Docker events [connect ENOENT /var/run/docker.sock]

@fmartinou
Copy link
Collaborator

Looks good (except for listening the docker socket).

Did you mount the docker socket into the container?

-v "/var/run/docker.sock:/var/run/docker.sock"

@vertex-github
Copy link
Author

Yep - all done. Unrelated, I had similar issues with another container and Node 16 (which I just hit):
https://www.zigbee2mqtt.io/guide/installation/02_docker.html#notes-for-raspberry-pi-users

@fmartinou
Copy link
Collaborator

So, if you install libseccomp2 as mentioned in the documentation of zigbee2mqtt, does it (wud) work?

@PascalBu
Copy link

PascalBu commented Jul 7, 2022

Came here to say that following works on RPI4B:

docker run -d --name Whats-up-Docker
-v "/var/run/docker.sock:/var/run/docker.sock"
-p 3000:3000
--security-opt seccomp=unconfined
fmartinou/whats-up-docker

@fmartinou
Copy link
Collaborator

Thank you for your feedback; I'll update the documentation to mention it for RPI users 👍

@fmartinou
Copy link
Collaborator

@vertex-github
Copy link
Author

vertex-github commented Oct 11, 2022 via email

@fmartinou
Copy link
Collaborator

17:46:22.488 WARN whats-up-docker/watcher.docker.local: Unable to listen to Docker events [connect ENOENT /var/run/docker.sock]

=> have you mounted the Docker socket?
(-v "/var/run/docker.sock:/var/run/docker.sock")

@vertex-github
Copy link
Author

vertex-github commented Oct 11, 2022 via email

@vertex-github
Copy link
Author

vertex-github commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants