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

Error during custom image building. #4361

Closed
daramayis opened this issue Oct 17, 2022 · 4 comments
Closed

Error during custom image building. #4361

daramayis opened this issue Oct 17, 2022 · 4 comments

Comments

@daramayis
Copy link

daramayis commented Oct 17, 2022

Describe the bug
The n8n-custom/Dockerfile image doesn't build.

To Reproduce
Steps to reproduce the behavior:

  1. Go to git pull origin master
  2. Run docker build -t n8n-custom -f docker/images/n8n-custom/Dockerfile .
  3. See the error
...
Step 4/19 : RUN npm install -g run-script-os turbo
 ---> Running in f22d5ee6e
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/turbo
npm ERR! command failed
npm ERR! command sh -c -- node install.js
npm ERR! node:internal/errors:477
npm ERR!     ErrorCaptureStackTrace(err);
npm ERR!     ^
npm ERR! 
npm ERR! <ref *1> Error: spawnSync /usr/local/lib/node_modules/turbo/bin/turbo ENOENT
npm ERR!     at Object.spawnSync (node:internal/child_process:1112:20)
npm ERR!     at spawnSync (node:child_process:827:24)
npm ERR!     at Object.execFileSync (node:child_process:870:15)
npm ERR!     at validateBinaryVersion (/usr/local/lib/node_modules/turbo/install.js:25:6)
npm ERR!     at /usr/local/lib/node_modules/turbo/install.js:308:5 {
npm ERR!   errno: -2,
npm ERR!   code: 'ENOENT',
npm ERR!   syscall: 'spawnSync /usr/local/lib/node_modules/turbo/bin/turbo',
npm ERR!   path: '/usr/local/lib/node_modules/turbo/bin/turbo',
npm ERR!   spawnargs: [ '--version' ],
npm ERR!   error: [Circular *1],
npm ERR!   status: null,
npm ERR!   signal: null,
npm ERR!   output: null,
npm ERR!   pid: 25,
npm ERR!   stdout: null,
npm ERR!   stderr: null
npm ERR! }

Expected behavior
The image should build without error, and we don't need to fix the version 1.5.5.

@Joffcom
Copy link
Member

Joffcom commented Oct 17, 2022

Hey @daramayis,

What OS are you trying to build on? I have just ran the same command on my machine and it has worked as expected and built the custom image.

@netroy
Copy link
Member

netroy commented Oct 17, 2022

Hey @daramayis
Could you please run this in your n8n directory to ensure that your network doesn't have any issues talking to npm?
docker run -it --rm -v `pwd`:/home/node --entrypoint npm n8nio/base:16 install

@daramayis
Copy link
Author

daramayis commented Oct 17, 2022

Hey @netroy @Joffcom , looks like my version did not contain the latest fix

RUN npm install -g run-script-os turbo@1.5.5

I submitted PR, with the required dependency so we will not need to fix the 1.5.5 version.
(More info here)

@netroy
Copy link
Member

netroy commented Dec 19, 2022

closed in #4885

@netroy netroy closed this as completed Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants