Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Segmentation Fault on HTTPS #191

Closed
rodolphovfreire opened this issue Jul 26, 2017 · 6 comments
Closed

Segmentation Fault on HTTPS #191

rodolphovfreire opened this issue Jul 26, 2017 · 6 comments

Comments

@rodolphovfreire
Copy link

When using laravel-echo-server with encryption (https), nodejs hangs with Segmentation Fault, as below:

a

Search all over the internet and can not found any answer. Something related with CA Bundle or Intermediate CA can be related with this issue. But I really do not know.

laravel-echo-server.json

{
"authHost": "https://laravel-host.com",
"authEndpoint": "/broadcasting/auth",
"clients": [],
"database": "sqlite",
"databaseConfig": {
"redis": {},
"sqlite": {
"databasePath": "/database/laravel-echo-server.sqlite"
}
},
"devMode": true,
"host": "laravel-host.com",
"port": "6001",
"protocol": "https",
"socketio": {},
"sslCertPath": "/etc/nginx/ssl/comodo_uva_wildcard_ssl.crt",
"sslKeyPath": "/etc/nginx/ssl/comodo_uva_private_key.key"
}

Environment:

  • 2 CPU
  • 2 GB RAM
  • Node Version: v6.10.3
  • NPM Version: 3.10.10
  • OS: Linux CentOS 7
  • Kernel: Linux 3.10.0-514.26.2.el7.x86_64
@akitectio
Copy link

Have you tried this yet?
#65

@st0ck53y
Copy link

The socketio documentation states that the default engine is ws, but i think it might actually be using uws instead, as i tried changing it to that to see if it worked, and it still segfaulted.
If you specify the engine as ws, like so: "socketio": {"wsEngine": "ws"}, that worked for me.

@jonnywilliamson
Copy link
Contributor

@st0ck53y Yeah, its uws

#168

Make a PR to update the docs to help the next person!

@rodolphovfreire
Copy link
Author

Sorry for the late,

Well, the problem was solved by downloading the NodeJS from https://nodejs.org

DO NOT INSTALL nodejs from EPEL Repository or other repo, it'll crash (Segmentation Fault).

Solution on my environment:

  • OS: Linux CentOS 7

  • Kernel: Linux 3.10.0-514.26.2.el7.x86_64

$ sudo yum groupinstall 'Development Tools'
$ cd /opt
$ curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -
$ yum -y install nodejs

Hope can help...

@coder-wen
Copy link

@rodolphovfreire Thanks, work like a charm 😄

@tlaverdure
Copy link
Owner

Can we close this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants