-
-
Notifications
You must be signed in to change notification settings - Fork 210
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] The new json-logic-js dependency from node-zwave-js isn't being picked up in a custom docker image #669
Comments
this fixes the alpine issue, but not the other issues #666 |
Does this also happen if you run |
Yes, it does. |
I'm honestly confused here. json-logic-js is a dependency of |
Are either of you able to repro it? It was just a matter of following the instructions for generating the container build, with the slight complication that dependabot keeps breaking Dockerfile.contrib and needs to be manually fixed. I'll run through a clean install later today and capture the results. I'm certainly open to the possibility that I'm doing something wrong, but others are reporting exactly the same failure. In my case, simply running a test container based on the built image shows that that package isn't present in node_modules. |
Yeah, I can reproduce |
That's good, I guess. I'm now getting a new error when I create a test dir and clone master of both repos from scratch:
Looks like that showed up with the move from erbium-buster to erbium-buster-slim originally from here: f4ff24a. I switched back and at least the container build succeeds. Same issue, though. Shellling in with |
i built a repro this morning using buster-slim, image is at scyto/zwavejs2mqtt:patch-2 if anyone wants it. |
I have two theories why this is happening: a) The problem has to do with the version magic the dockerfile does. This is the end of the
According to this theory, the local version has been changed to the prerelease version b) I'm investigating a) now. |
(a) looks like it may be an artifact of the custom build. All version numbers get (I think) the commit number added to them, and that shows up in the UI. I'm currently running a released container, but here's the version info from a previous run with a custom container:
|
I've removed the version magic and it still fails. |
are these still failing for you? App Version 1.3.0+fec72b7.fec72b7 |
I'm getting the same python error with the latest pull from both repos that I posted here. I was able to fix it before by not using the If I apply this patch, the build is successful and I do see
And the image appears to work now. It's still going through the initial query, but I don't see the constant restarts with the missing module error anymore. |
* chore: fix brokern Dockerfile.contrib Fixes #669 cc @AlCalzone * fix: restore from image * fix: disable automerge of docker bumps
Before submitting a bug please read: https://zwave-js.github.io/zwavejs2mqtt/#/troubleshooting/bug_report
Version
Build/Run method
Manually built docker image as per instructions at https://zwave-js.github.io/zwavejs2mqtt/#/troubleshooting/docker_custom_builds
zwavejs2mqtt version: 1.2.2
zwavejs version: 6.4.0
Describe the bug
Pulling the latest "master" branch of node-zwave-js and zwavejs2mqtt and building based on the instructions at https://zwave-js.github.io/zwavejs2mqtt/#/troubleshooting/docker_custom_builds yields a container that constantly restarts with the following error in the docker logs:
I suspect that this is related to the recent addition of conditional logic in the JSON config files, but I can't figure out what's missing.
To Reproduce
Steps to reproduce the behavior:
Build a custom container based on the master branches and the instructions above and attempt to deploy it.
Expected behavior
The container should start and run properly.
Additional context
The dependabot also broke Dockerfile.contrib again by trying to move it to Alpine from Debian Buster. This was the fix for the last time this happend: b048fcb#diff-4ddc2e10398d5c169795b7937f893ec72d2619b395259c592156a5dd0b476c9f
The text was updated successfully, but these errors were encountered: