-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Compilation of µWebSockets has failed and there is no pre-compiled binary available for your system #246
Comments
@iMoses Is this happening when you do Worst case, you can try running SC inside Docker (if you have Docker installed)... See https://blog.baasil.io/framework-in-a-container-6105d3275d61#.nrqmc559j - See the last part |
No, What information can I provide that will assist? |
Alex said that it can happen if you have an unusual setup like maybe 32-bit machine instead of 64-bit or maybe you have an old compiler - Or something happened to it... I'm trying to find a workaround now. |
It's weird that you can't just use |
@iMoses When I delete the |
64-bit, on two different PCs with Ubuntu 16.04 It seems that the worker crashes just by trying to import uws
This goes on and on and on... |
I tried deleting node_modules several times already.. no luck |
Did you try doing |
@iMoses What is your |
I haven't tried
But when I try to run it as part of an electron application I still get the same error messages. |
Did you use |
No, it was installed as a regular dependency. |
The part about Thanks a lot for you help |
I ran into this exact issue. Hope you guys don't mind I drop this here. In Dockerfile
Needed This should resolve the issue seen below.
|
As a workaround I run
|
Update : April, 2019
Had this same problem. And I got it solved by Delete Delete |
I was able to fix this way:
rm -rf node_modules/
npm install
pushd node_modules/uws
npm install
popd
npm start -- --reset-cache
|
@cjmling's solution works! |
Using node 10, npm 5.6 and python 2.7.14, I have tried the solution from @cjmling but there is a built error. after typing npm i uws, "make" failed during built of uws. in node_modules/uws/build_log.txt
The file is really long so it is attached |
have the same problem |
I don't use the alpine ,fix it |
still cannot fix |
Here is what I did as a workaround to fix the issue, I added SOCKETCLUSTER_WS_ENGINE='ws' to a .env file in the main root path and I added require('dotenv').config(); at the top of my server.js So, rather than using uws, i use ws. I also discovered that ws was maintained by many more people than uws. Alternative: replace wsEngine: process.env.SOCKETCLUSTER_WS_ENGINE || 'uws' by do something similar for scc-state / scc-broker |
tried all of the above no luck |
@Cryptoking117 i have updated my answer. |
In my case installing latest Earlier version
Latest version which solved the problem-
Refer - How to Install Latest Node.js and NPM on Ubuntu with PPA |
hey developers of SocketCluster, check this out: https://www.npmjs.com/package/uws
so, now the question is which version should I use? how can I change the version I am using? |
For me the program was node 10. |
I downgraded to node 8 and it worked thanks 👍 |
@pbassut thank you |
Thanks @vickylance , I downgraded to 9 and that worked for me too. |
uws will never ever work with nodejs10. That is because uws does not support openssl 1.1.1. |
Just run the command using this flag |
I can't seem to get SocketCluster to work, I always get the above error message, even after I changed
wsEngine
tows
.I tried it on Node 6 and 7, Ubuntu 16.04.
I couldn't find anymore information about this issue online, can you please direct me on how to figure out what is causing this issue?
Thanks
The text was updated successfully, but these errors were encountered: