Socket io issue?
-
@baris yes.
server { listen 80; server_name *.xxxxxxxxxx.com.ar; return 301 $scheme://xxxxxxxxxx.com.ar$request_uri; } server { listen 80; server_name xxxxxxxxxx.com.ar; access_log /var/log/nginx/vapor-access.log; error_log /var/log/nginx/vapor-error.log; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_redirect off; # Socket.io Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; gzip on; gzip_min_length 1000; gzip_proxied off; gzip_types text/plain application/xml application/x-javascript text/css application/json; location @nodebb { proxy_pass http://127.0.0.1:10000; } location ~ ^/(images|language|sounds|templates|uploads|vendor|src\/modules|nodebb\.min\.js(\.map)?|stylesheet\.css|admin\.css) { root /opt/vapor/nodebb/public; try_files $uri $uri/ @nodebb; } location / { proxy_pass http://127.0.0.1:10000/; } # error_page 405 = $uri; }
-
I can confirm that there is no nginx issues, because I was switched proxy off and use port and I get the same issue.
Also I was disabled all plugins and the issue continues. So, I am thinking about the Lavender template. Tell me if I am wrong.
This issue with socket.io is very very irritating because 50% of forum features not working.
Thanks guys for the help.
-
Why not happens this issue here and is present in my forum? Can you test it?
This is the nginx timeout error, because socket.io
2014/12/01 02:09:12 [error] 29961#0: *166 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 201.235.8.88, server: vapeandoargentina.com.ar, request: "GET /socket.io/1/xhr-polling/r3XfrKkqSy2ywgDXKA6S?t=1417410491280 HTTP/1.1", upstream: "http://127.0.0.1:20000/socket.io/1/xhr-polling/r3XfrKkqSy2ywgDXKA6S?t=1417410491280", host: "vapeandoargentina.com.ar", referrer: "http://vapeandoargentina.com.ar/"
-
@baris said:
Are you using cloudflare? They don't have websocket support on the lower plans.
I can't understand your question. We are not using cloudflare. We have only activated "Spam Be Gone" plugin and only use reCaptcha.
You mean this?
<!--[if lt IE 9]> <script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/2.3.0/es5-shim.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script> <script>__lt_ie_9__ = 1;</script> <![endif]-->
I don麓t know where come this. I suspect from lavender template?
-
Those should be fine we have them on this site as well and sockets work. I meant https://www.cloudflare.com/ but apparently you don't use them so I am not sure what the problem is.
2014/12/01 02:09:12 [error] 29961#0: *166 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 201.235.8.88, server: vapeandoargentina.com.ar, request: "GET /socket.io/1/xhr-polling/r3XfrKkqSy2ywgDXKA6S?t=1417410491280 HTTP/1.1", upstream: "http://127.0.0.1:20000/socket.io/1/xhr-polling/r3XfrKkqSy2ywgDXKA6S?t=1417410491280", host: "vapeandoargentina.com.ar", referrer: "http://vapeandoargentina.com.ar/"
Sounds like proxying is not configured properly.
-
@Julian, aand the smilies are broken again. You'll probably have this in your console:
1/12 13:57 [20209] - warn: Route requested but not found: /topic/1127/undefined/plugins/nodebb-plugin-emoji-extended/images/thumbsup.png 1/12 13:57 [20209] - warn: Route requested but not found: /topic/1127/undefined/plugins/nodebb-plugin-emoji- extended/images/thumbsup.png
But many times.
-
-
@julian said:
@Normando Give the latest commits a go Socket.IO 1.0 is merged in, undergoing testing at the moment.
Can I merge in my 0.5.5 these commits for testing?
set path on socket.io server 路 NodeBB/NodeBB@d544b19
Node.js based forum software built for the modern web - set path on socket.io server 路 NodeBB/NodeBB@d544b19
GitHub (github.com)
Merge remote-tracking branch 'origin/master' into socket.io1.x 路 NodeBB/NodeBB@647b15c
Node.js based forum software built for the modern web - Merge remote-tracking branch 'origin/master' into socket.io1.x 路 NodeBB/NodeBB@647b15c
GitHub (github.com)