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

[REQUEST] Force Dockerfile.debian to VERSION 16 #1028

Open
xdestiny opened this issue Nov 3, 2023 · 2 comments · May be fixed by #1104
Open

[REQUEST] Force Dockerfile.debian to VERSION 16 #1028

xdestiny opened this issue Nov 3, 2023 · 2 comments · May be fixed by #1104

Comments

@xdestiny
Copy link

xdestiny commented Nov 3, 2023

Is your feature request related to a problem? Please describe.
Of course it happened during the project build for the Soketi container we use when Node changed their LTS version to 20. The current version of uWS.js used in this project doesn't support Node 20 yet.

Describe the solution you'd like
The quick fix would be to force the Dockerfile.debian VERSION argument to 18 instead of lts, or to 16 as is done in the Alpine container.

Describe alternatives you've considered
Otherwise, update to a uWS.js version that supports Node 20.

Additional context
This is the error you would see on container start, for search and information purposes:

/app/node_modules/uWebSockets.js/uws.js:22
          throw new Error('This version of uWS.js supports only Node.js 14, 16 and 18 on (glibc) Linux, macOS and Windows, on Tier 1 platforms (https://github.com/nodejs/node/blob/master/BUILDING.md#platform-list).\n\n' + e.toString());
         ^

Error: This version of uWS.js supports only Node.js 14, 16 and 18 on (glibc) Linux, macOS and Windows, on Tier 1 platforms (https://github.com/nodejs/node/blob/master/BUILDING.md#platform-list).
 
Error: Cannot find module './uws_linux_arm64_115.node'
Require stack:
- /app/node_modules/uWebSockets.js/uws.js
- /app/dist/server.js
- /app/dist/index.js
- /app/dist/cli/cli.js
- /app/dist/cli/index.js
- /app/bin/server.js
    at /app/node_modules/uWebSockets.js/uws.js:22:9
    at Object.<anonymous> (/app/node_modules/uWebSockets.js/uws.js:24:3)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (/app/dist/server.js:18:13)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)

Node.js v20.9.0
Copy link

codeautopilot bot commented Nov 3, 2023

Disclaimer: This comment was entirely generated using AI. Be aware that the information provided may be incorrect.

Your organization has reached the subscribed usage limit. Cannot process the task. You can upgrade your plan at https://www.codeautopilot.com/#pricing


Current plan usage: 159.51%


Have feedback or need help?

Discord
Documentation
support@codeautopilot.com

@xdestiny xdestiny changed the title [REQUEST] Force Dockerfile.debian to VERSION 18 [REQUEST] Force Dockerfile.debian to VERSION 16 Nov 3, 2023
@MaruanBO
Copy link

MaruanBO commented Jan 9, 2024

As you have already considered you can update to v20. Add this to your package.json: "uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.37.0", then install it npm install uWebSockets.js and finally you need to build your assets and run the server.js

Ref: #1074

@iBotPeaches iBotPeaches linked a pull request Jan 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants