-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
[Bug]: Docker container not starting since 519dee8 / ZwaveJS 9 #2349
Comments
I'm not sure what a "rootless" docker container is, but I am running a Pi with docker and zwavejs2mqtt installed via the default instructions for doing so. I just did a pull as I normally do to update and my docker-compose is set to Reverting to build 6.6.2 results in it loading all the way and working correctly. |
rootless is w/o root permissions. |
Seeing similar problems with Pi 4. When I use the
And my service in
|
Looks like a problem with Alpine Linux, arm64 (arm7?) platforms, and pre-built binaries, with the upstream node-serialport library: serialport/node-serialport#2438. z2m with v9 works fine on my amd64 system, but crashes on my 64-bit Pi. The scenario occurs on my own build using zwave-js-server. There's a workaround in the comments, which is to build the module from source (as was required with Alpine prior to zwave-js v9). |
I think that by adding that line to Dockerfile it should work @kpine |
You can try this (I hope that's the equivalent of the mentioned workaround for yarn v3, only rebuilding what's necessary)
It does rebuild it on my system, but I don't see how exactly |
Once this ends try using |
@kpine did you give it a try? |
Just upgraded my docker with the master version and everything looks good. Matthieu |
LGTM |
fixed it for me, too |
Nice, thanks everyone |
Not sure if this is related to the same cause as above, but just ran into something similar on startup when trying to setup a secondary zwavejs instance (RPI 2). First encountered with :latest build, but changing to :master doesn't resolve the issue.
|
That's not a log output from zui, must be an error related to docker |
Pardon me, you're totally right (was too late in the evening)! Thanks! |
Checklist
Deploy method
Docker
Zwavejs2Mqtt version
519dee8 and later
ZwaveJS version
9.0.1
Describe the bug
zwavejs2mqtt docker container that was fully working under docker tags
6.6.2
andsha-15caab7
does not finish starting under tagslatest
or519dee8
. With both log settings to silly, no useful errors are produced beyond seeming not to pass the "Connecting to ..." step.docker logs:
(message repeats when docker restarts)
zwavejs logs:
(message repeats when docker restarts)
To Reproduce
Set up a
rootlessdocker container forzwavejs/zwavejs2mqtt:6.6.2
.Change tag to
zwavejs/zwavejs2mqtt:latest
orzwavejs/zwavejs2mqtt:519dee8
and rerun docker-compose.Expected behavior
Expected container to start as before, or log an actionable error if my configuration is incompatible with ZWaveJS 9+.
Additional context
I am using rootless docker, and hanging while attempting to connect to the mounted device suggested an issue with the dialout group and permissions for the mounted zwave device file. Since others have commented that they have the same problem in standard docker, it seems like a wider issue.
The text was updated successfully, but these errors were encountered: