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

Just installed Cronicle with Node v8 LTS #111

Open
shammishailaj opened this issue Aug 30, 2018 · 7 comments
Open

Just installed Cronicle with Node v8 LTS #111

shammishailaj opened this issue Aug 30, 2018 · 7 comments

Comments

@shammishailaj
Copy link

Summary

I have installed cronicle as per the one line installation on website and have it running via NGINX as web-proxy. I am not able to find any logs anywhere that would help me.. As per my browser and nginx logs, all i see is hits to this url:

GET /socket.io/?EIO=3&transport=websocket HTTP/1.1" 101 92 "

The title bar on the browser says "Loading..."

Steps to reproduce the problem

Install Node V8 LTS on ubuntu 16.04 LTS and the use the onliner command to install. In the configuration, leave the configuration as is. start the server and see for your self. Have NGINX proxy via your domain name to localhost:3012.

Nginx Config:

server {
listen 80;
server_name cronicle.example.co.in;

#charset koi8-r;
access_log  /var/log/nginx/cronicle.example.co.in.access.log  main;
error_log /var/log/nginx/cronicle.example.co.in.error.log;

location / {
    auth_basic "Example Classified 009";
    auth_basic_user_file /etc/nginx/keys/edeck.example.co.in;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_pass http://localhost:3012;
}

}

Operating system and version?

Ubuntu 16.04

Node.js version?

v8.11.4

Cronicle software version?

0.8.26

Are you using a multi-server setup, or just a single server?

Single

Are you using the filesystem as back-end storage, or S3/Couchbase?

Filesystem

Can you reproduce the crash consistently?

Yes.

Log Excerpts

Nginx Error Logs
2018/08/31 01:44:56 [error] 5474#5474: *257 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XXX.XXX.XXX, server: cronicle.healthians.co.in, request: "GET /socket.io/?EIO=3&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:3012/socket.io/?EIO=3&transport=websocket", host: "cronicle.example.co.in"
2018/08/31 01:44:56 [error] 5474#5474: *257 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: XXX.XXX.XXX.XXX, server: cronicle.example.co.in, request: "GET /socket.io/?EIO=3&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:3012/socket.io/?EIO=3&transport=websocket", host: "cronicle.example.co.in"
2018/08/31 01:45:01 [error] 5474#5474: *261 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XXX.XXX.XXX, server: cronicle.example.co.in, request: "GET /socket.io/?EIO=3&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:3012/socket.io/?EIO=3&transport=websocket", host: "cronicle.example.co.in"
2018/08/31 01:45:01 [error] 5474#5474: *261 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: XXX.XXX.XXX.XXX, server: cronicle.example.co.in, request: "GET /socket.io/?EIO=3&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:3012/socket.io/?EIO=3&transport=websocket", host: "cronicle.example.co.in"

@jhuckaby
Copy link
Owner

Hmmm, I've never used nginx, so I don't know what the problem is. But you should check out this issue here, which talks about using proxies:

#83

Try enabling polling on this setting:

https://github.com/jhuckaby/Cronicle#socket_io_transports

Perhaps your nginx configuration doesn't allow WebSockets, so maybe polling will do the trick.

Good luck!

@shammishailaj
Copy link
Author

I will try that and get back to you soon on that.

@ArionGameStudio
Copy link

For anyone else stumbling across this issue, ensure the following is removed from your nginx server location setting:

Remove:

server {
        location / {
                try_files $uri $uri/ =404; # remove this
        ...

@cnjiangjun
Copy link

Doc can be seen in: http://nginx.org/en/docs/http/websocket.html

@mcfetz
Copy link

mcfetz commented Feb 23, 2021

I had other problems with Node v8. Try to upgrade to v10 at least.

@jhuckaby
Copy link
Owner

jhuckaby commented Mar 1, 2021

Yup, at this point I'd recommend Node v12 or 14.

@goddensys
Copy link

Summary

I have installed cronicle as per the one line installation on website and have it running via NGINX as web-proxy. I am not able to find any logs anywhere that would help me.. As per my browser and nginx logs, all i see is hits to this url:

GET /socket.io/?EIO=3&transport=websocket HTTP/1.1" 101 92 "

The title bar on the browser says "Loading..."

Steps to reproduce the problem

Install Node V8 LTS on ubuntu 16.04 LTS and the use the onliner command to install. In the configuration, leave the configuration as is. start the server and see for your self. Have NGINX proxy via your domain name to localhost:3012.

Nginx Config:

server { listen 80; server_name cronicle.example.co.in;

#charset koi8-r;
access_log  /var/log/nginx/cronicle.example.co.in.access.log  main;
error_log /var/log/nginx/cronicle.example.co.in.error.log;

location / {
    auth_basic "Example Classified 009";
    auth_basic_user_file /etc/nginx/keys/edeck.example.co.in;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_pass http://localhost:3012;
}

}

Operating system and version?

Ubuntu 16.04

Node.js version?

v8.11.4

Cronicle software version?

0.8.26

Are you using a multi-server setup, or just a single server?

Single

Are you using the filesystem as back-end storage, or S3/Couchbase?

Filesystem

Can you reproduce the crash consistently?

Yes.

Log Excerpts

Nginx Error Logs 2018/08/31 01:44:56 [error] 5474#5474: *257 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XXX.XXX.XXX, server: cronicle.healthians.co.in, request: "GET /socket.io/?EIO=3&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:3012/socket.io/?EIO=3&transport=websocket", host: "cronicle.example.co.in" 2018/08/31 01:44:56 [error] 5474#5474: *257 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: XXX.XXX.XXX.XXX, server: cronicle.example.co.in, request: "GET /socket.io/?EIO=3&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:3012/socket.io/?EIO=3&transport=websocket", host: "cronicle.example.co.in" 2018/08/31 01:45:01 [error] 5474#5474: *261 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XXX.XXX.XXX, server: cronicle.example.co.in, request: "GET /socket.io/?EIO=3&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:3012/socket.io/?EIO=3&transport=websocket", host: "cronicle.example.co.in" 2018/08/31 01:45:01 [error] 5474#5474: *261 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: XXX.XXX.XXX.XXX, server: cronicle.example.co.in, request: "GET /socket.io/?EIO=3&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:3012/socket.io/?EIO=3&transport=websocket", host: "cronicle.example.co.in"

Hello Mr. shammishailaj man!!

Can you provide us with some tech or tutorial about install Cronicle on NGINX? I'm getting in trouble with NGINX + Ubuntu 22.04 !!

Thks!!!

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

No branches or pull requests

6 participants