-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 setup failing with error "Initiated Worker with invalid execArgv flags" #16379
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
In the docker logs do you see which version of Node.js is used? |
@krassowski thanks again.
as you can see there is only the command that is specified in the docker file which is: |
This looks like a potential regression from #15909 - I note that the CC @fcollonval in case if you have suggestions as author of #15909 |
Previously it was using |
Hey this looks like a damn bad issue in NodeJS: nodejs/node#41103 nodejs/node#53011 That said, I don't have any idea right now to fix the issue. One possibility, would be to install a more recent version of node.js by changing the spec in that line: Line 35 in b2ff3fb
for example to A question for @kiansahafi , are you using vscode? If yes, could you test to open the folder using the dev container? FYI, yarn is using jlpm as can be seen in the error trace:
This is the consequence of that configuration: Line 25 in b2ff3fb
But we cannot use |
@kiansahafi Thank you for your contribution! The related Node issues are not macOS-specific, so I retitled the issue to emphasize the error. |
Thanks @fcollonval for the advice. for nodejs=22:
for nodejs=20:
|
v22 is not on conda-forge yet indeed - https://github.com/conda-forge/nodejs-feedstock/ I would hope the fix gets released in v20.3 whenever/if it gets published. |
Ok that is a good news - the start script wants to be too smart. Would you mind running another test by executing the following command within the root folder of the repository: docker build --no-cache --build-arg NEW_MAMBA_USER_ID=$(id -u) --build-arg NEW_MAMBA_USER_GID=$(id -g) . -f docker/Dockerfile
|
@fcollonval i tried this specific command:
-BTW i noticed that each of the dependencies(e.g. babel, nrwl, mhchemparser, lib0, wrappy & ...) give this error individually and then the build fails. not sure if it makes a difference.
|
@kiansahafi was this with a docker file modified to use nodejs v20? |
@krassowski No, I changed it back to the original version of the dockerfile. (which is I tested it with |
Thanks for the test @kiansahafi For what I saw, yarn is using a workers pool to handle the fetched packages. This is consistent with your finding that each dependency gives the same error. One more question, when using vscode devcontainer, does the command |
not a problem @fcollonval, i don't know how to check that.
|
Actually what I'm interested in, is what happen if you execute within that image |
@fcollonval i attached to the container and in the root directory i found a and i executed the
![]()
![]() i also have access to the logs of the terminal when vscode starts but there is no sign of anything not |
Hey @kiansahafi thanks for keeping testing. I made a short demo of what I would like you to test - I guess it will be easier than explaining: jlpm-in-docker.mp4Note Attaching to the vscode container may not work if you did not start the docker as they do. |
thanks @fcollonval for the detailed video and notes. 😅
Screen.Recording.2024-05-31.at.12.39.09.mp4
|
Thanks again for the test @kiansahafi The appearance of the error in the dev container is at least consistent (the dev container is actually not running the last part of the Dockerfile). But finding a solution is gonna be hard. |
@fcollonval not a problem.😁 If there's any way I can help/contribute, that would be awesome. Thanks again! |
Last idea, in the docker, could you report the defined environment variables ? You should get that list by executing Important Check that there are no sensitive information in them before posting that list here 😉 |
@fcollonval not a problem. thanks for the heads up 😁 this is the result of executing
|
Thanks @kiansahafi Unfortunately nothing out of the ordinary there. |
What do you get when executing:
for reference I got |
@fcollonval i get the same thing: |
Description
i am trying to build the project (with my M1 mac) using the docker file in
/docker/start.sh
using this command:bash docker/start.sh
it fails to builds giving this error:
docker build Error at Line:
![image](https://private-user-images.githubusercontent.com/82085912/333891308-945b1122-49c5-4ee8-bb93-3ad7c0894b94.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzNzUyMzksIm5iZiI6MTcxOTM3NDkzOSwicGF0aCI6Ii84MjA4NTkxMi8zMzM4OTEzMDgtOTQ1YjExMjItNDljNS00ZWU4LWJiOTMtM2FkN2MwODk0Yjk0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDA0MDg1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVkOWU4ZWM4NDYwM2Q1ZDhjYWE2YTI5ZTU5MWE4MTVkZTVkN2E2YmEyOWY5Zjg3NzkzNzMzMjUwYzI5MzcyYWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.apTMRh5nVZaR_8slRcuF6-7DF6H81_yLSM2jfiTEiDE)
complete Error:
the above issue repeats many times, until the docker build fails...
Reproduce
execute this command on an M1 mac:
bash docker/start.sh
Expected behavior
build successfully without any error and create a new docker image.
Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: