-
Notifications
You must be signed in to change notification settings - Fork 610
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
Docker on Debian 11 fails on version 1.1.15 and 1.1.16 giving NPM errors #5545
Comments
This comment was marked as outdated.
This comment was marked as outdated.
PLZ FOLLOW THE BUG TEMPLATE/FORMATTING IN FUTURE AS IT HAS INFORMATION THAT IS REQUIRED TO HELP YOU!!! |
looking into it but there are a few issues you have
EDIT: if you add |
OK I CAN REPLICATE THE ISSUE! |
Thanks Simon! I've updated the schema. The missing quotes were just in what was posted after removing personal info. The files had the quotes correctly. I removed the user: "1003" statement and npm installed the modules and loaded meshcentral. Is there a way to give npm permission to the non-root user? Other than this npm issue, meshcentral has been working with the non-root user since I started 6-12 months ago. |
Welll, it worked once. Removing the container and recreating it does npm "installing modules" on both 1.1.15 and 1.1.16 and eventually fails.
1.1.14 starts up quickly without any npm step.
|
This problem turned out to be a timeout caused by bug #5681. Because all modules were being reinstalled on startup and the machine is not really fast, the npm command timed out and kept looping trying to install the modules. Once #5681 is fixed, this problem will go away and startup in general will be faster for Docker. |
Bug #5684 is the cause of all modules needing to be installed for the last 2-3 months, roughly since 1.15 |
The Dockerfile specifies NPM modules to be installed. However, some do not specify a version, so the latest is installed. Later in meshcentral.js mainStart() specific versions are required. If they don't match the latest version, all modules will be reinstalled to get the specific versions. Ylianst#5684 Soft version conflict on NPM modules causes NPM modules to be installed on startup in Docker Ylianst#5545 Docker on Debian 11 fails on version 1.1.15 and 1.1.16 giving NPM errors Ylianst#5681 InstallModules() installs all modules, not just missing modules (regression)
The Dockerfile specifies NPM modules to be installed. However, some do not specify a version, so the latest is installed. Later in meshcentral.js mainStart() specific versions are required. If they don't match the latest version, all modules will be reinstalled to get the specific versions. Ylianst#5684 Soft version conflict on NPM modules causes NPM modules to be installed on startup in Docker Ylianst#5545 Docker on Debian 11 fails on version 1.1.15 and 1.1.16 giving NPM errors Ylianst#5681 InstallModules() installs all modules, not just missing modules (regression)
Coming back to the user issue now that the NPM problem has been figured out. Using user: "1003" or "1003:1003" still works. It doesn't need to be run under root (at least with my config). All the files in the data folder are owned by "1003:1003" |
The Dockerfile specifies NPM modules to be installed. However, some do not specify a version, so the latest is installed. Later in meshcentral.js mainStart() specific versions are required. If they don't match the latest version, all modules will be reinstalled to get the specific versions. #5684 Soft version conflict on NPM modules causes NPM modules to be installed on startup in Docker #5545 Docker on Debian 11 fails on version 1.1.15 and 1.1.16 giving NPM errors #5681 InstallModules() installs all modules, not just missing modules (regression)
Mesh Central on Debian Docker fails with NPM errors
This also happened on version 1.1.11 (I think) but started working again a version later. Now the problem is back.
The only setting that I've been changing is the docker image tag.
Debian (Docker Host) packages all up to date.
Using version 1.1.15 and 1.1.16 give this error
Using version 1.1.14 (since 15 and 16 don’t run) to run the suggested commands in bash inside container
docker-compose.yaml
.env
config.json
The text was updated successfully, but these errors were encountered: