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

[BUG] Soketi not starting on nodejs major v20 #1025

Open
ajaybhargav opened this issue Oct 31, 2023 · 11 comments
Open

[BUG] Soketi not starting on nodejs major v20 #1025

ajaybhargav opened this issue Oct 31, 2023 · 11 comments
Assignees
Labels
status:triage Awaiting triage.

Comments

@ajaybhargav
Copy link

Description
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).

This issue came after updating nodejs to v20

Reproduction steps
Steps to reproduce the behavior:
Update nodejs to latest LTS

Expected behavior
soketi should work

Environment

  • Soketi version (i.e. 1.3.0): 1.6.0
  • Adapter (local, redis): redis
  • App Manager (array, mysql, postgres, dynamodb) : mysql
  • Queue (sqs, redis, sync): redis
  • Cache Managers (memory, redis): memory

Additional context
I think uws need to upgrade to latest version to support nodejs v20. Please provide a release.

@ajaybhargav ajaybhargav added the status:triage Awaiting triage. label Oct 31, 2023
Copy link

codeautopilot bot commented Oct 31, 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

@Diddyy
Copy link

Diddyy commented Nov 5, 2023

I believe that the required uWebSockets need updating on Soketi.
I have Node.js v21 and cannot install due to uWS.js only supporting Node.js 14,16 and 18.

@neoteknic
Copy link

Same problem, have to rollback to 18 LTS.
Need to upgrade the uWS dependency.

@whitespacecode
Copy link

Same here. Node is at v20.10.0 LTS.
The docs are not representative -> (Node.js LTS (14.x, 16.x, so on))
This should be changed at least to show what the max node version should be

@Akhmami
Copy link

Akhmami commented Dec 8, 2023

hi, is there any way to use node v20 LTS?

@ln8711
Copy link

ln8711 commented Dec 23, 2023

bump!
uWebSockets.js supports node.js 20 since Oct 2023 already
https://github.com/uNetworking/uWebSockets.js/releases/tag/v20.33.0

UPDATE:
PR here already: #1074

UPDATE 2:
To make it works, build it locally:

Clone the project
Edit package.json with "uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.37.0"
Run:
    npm install uWebSockets.js
    npm run build
Start the server with:
    ./bin/server.js start

And happy holidays!

@OliverWich
Copy link

Bump again, can #1074 please get merged?
Node 18 has already reached the end of its official support a while ago and is only hanging on by a thread with maintenance releases.

@Fsmash
Copy link

Fsmash commented Apr 26, 2024

Also bumping. I'll try running tests myself here soon to see if anything broke but so far after using soketi for 5 months with this updated uWebSockets I have not run into any issues.

@tobimori
Copy link

tobimori commented May 5, 2024

Bumping again; desperately need this :(

@wsamoht
Copy link

wsamoht commented May 7, 2024

Just ran into this upgrading my local dev VM to Ubuntu 22.04.3. I ended up using NVM to install Node 18 and then added /home/vagrant/.nvm/versions/node/v18.20.2/bin to be added in the PATH env variable to my Supervisord config which runs Soketi.

@Lemmings19
Copy link

To expand on the comment above:

  • Install Node Version Manager ("nvm"): curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
  • . ~/bashrc to apply some path stuff the installer added.
  • nvm to check it is working.
  • nvm install 18
  • Modify the Supervisord config in /etc/supervisor/conf.d/my-workers.conf for running soketi to: /home/vagrant/.nvm/versions/node/v18.20.2/bin/node /usr/bin/soketi start --config=/var/www/my-project/soketi.json (--config flag is optional; it's just what I already had)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:triage Awaiting triage.
Development

No branches or pull requests