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

npm hangs on some architectures of Alpine Linux #2

Open
felddy opened this issue Sep 28, 2023 · 4 comments
Open

npm hangs on some architectures of Alpine Linux #2

felddy opened this issue Sep 28, 2023 · 4 comments

Comments

@felddy
Copy link
Owner

felddy commented Sep 28, 2023

Failing builds

NodeJS Architecture Distribution
18.19.0 linus/s390x Alpine 3.19
20.10.0 linux/s390x Alpine 3.19
20.10.0 linux/arm/v6 Alpine 3.19
20.10.0 linux/arm/v7 Alpine 3.19

Log output

The builds are failing on the command NODE_DEBUG=* node $(which npm) -v (a verbose version of npm -v.). The builds are limited to a timeout of 3 minutes, at which point they are cancelled by GitHub Actions and generate an error to that regard.

timeout-minutes: 3

The s390x builds hang with the last log output being:

#12 4.855 MODULE 1: Module._load REQUEST os parent: /usr/local/lib/node_modules/npm/node_modules/@npmcli/config/lib/definitions/definitions.js
#12 4.855 MODULE 1: load built-in module os
#12 4.856 MODULE 1: Module._load REQUEST ../type-defs.js parent: /usr/local/lib/node_modules/npm/node_modules/@npmcli/config/lib/definitions/definitions.js
#12 4.857 MODULE 1: RELATIVE: requested: ../type-defs.js from parent.id /usr/local/lib/node_modules/npm/node_modules/@npmcli/config/lib/definitions/definitions.js
#12 4.857 MODULE 1: looking for ["/usr/local/lib/node_modules/npm/node_modules/@npmcli/config/lib/definitions"]
Error: The operation was canceled. 

The arm/v6 and arm/v7 both hang without any output after the command:

#12 [8/8] RUN NODE_DEBUG=* node $(which npm) -v
Error: The operation was canceled.
@felddy
Copy link
Owner Author

felddy commented Nov 9, 2023

Also related:

@felddy
Copy link
Owner Author

felddy commented Jan 1, 2024

Updated description with changes from:

@felddy
Copy link
Owner Author

felddy commented Apr 29, 2024

Temporary workaround:

  • Build using Node 18
  • Deploy using Node 20

See:

felddy added a commit to felddy/foundryvtt-docker that referenced this issue Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant