Cronicle icon indicating copy to clipboard operation
Cronicle copied to clipboard

Just installed Cronicle with Node v8 LTS

Open shammishailaj opened this issue 6 years ago • 7 comments

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"

shammishailaj avatar Aug 30 '18 21:08 shammishailaj

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:

https://github.com/jhuckaby/Cronicle/pull/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!

jhuckaby avatar Aug 31 '18 05:08 jhuckaby

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

shammishailaj avatar Sep 10 '18 15:09 shammishailaj

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

ArionGameStudio avatar Mar 13 '19 03:03 ArionGameStudio

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

cnjiangjun avatar Feb 23 '21 06:02 cnjiangjun

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

mcfetz avatar Feb 23 '21 06:02 mcfetz

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

jhuckaby avatar Mar 01 '21 04:03 jhuckaby

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!!!

goddensys avatar Oct 10 '22 17:10 goddensys