@yariplus yes something like xenporta or Bob's AMS. Good to know you are working towards something like that. Il keep checking back.
[Solved] New nodebb install running very slow
-
Actually playing around with it a bit more the slowdown is ONLY occuring when I go back to the main landing page of the forum, it loads in the nav bar then you are sat there waiting for a few seconds before it pops the rest in, also the nav bar doesn't show you as logged in until the delay is over.
Everything else is lightning fast as always.
-
Also noticed this in the admin panel which I think is different from normal, are they meant to be so many active users when the admin account is the only one created so far?
-
About active users that title is misleading. That section shows active sockets in rooms. You probably have 4 sockets active in those rooms. Can you check your network tab and see if the slowdown is caused by an xhr call on the homepage? Are sockets working as they should instead of falling back to xhr?
-
Yeah, a @baris mentioned, it sounds like websockets isn't working properly. Are you perchance using CloudFlare as well?
-
I'm not using any external service, but I'm getting the same message in my ACP about Active Users X socket connections.
-
@baris said:
Can you check your network tab and see if the slowdown is caused by an xhr call on the homepage? Are sockets working as they should instead of falling back to xhr?
Sorry but where is this network tab?
@julian said:
Yeah, a @baris mentioned, it sounds like websockets isn't working properly. Are you perchance using CloudFlare as well?
No just a digital ocean droplet, nothing special at all. Is there any special setup I need to do to my nginx settings to enable websockets?
-
I meant the network tab of the browser. F12 to open it up if on chrome. I think you need nginx 1.3 or greater for proper websocket support. @julian can correct me if im wrong.
-
@baris Ok yes it's falling back on xhr.
I have managed to update my nginx to 1.4.5 which has websocket support but I'm still facing the same issue, it's obviously something with the config so will look into that.
-
FIXED IT!
Just need to add some extra proxy settings to my sites configuration in nginx once I was on a suitably up to date version.
Thanks for the pointers.
-
What were those "extra proxy settings"?
-
I'm assuming they were these:
# Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"
-
Yes, that's them alright.
-
-
@Ezra-Sharp What's your nginx version? Should be > v1.3.13
-
Nginx 1.4.7
-
Hm... got a link to your site running live? I'd like to see this for myself...
-
@julian im having the same problem but for apache, i need some help pls
-
@Watchopolis Hm, I'm getting a websocket error. Did you follow this guide to set up the proxy for Apache?
-
@julian yes i followed everything step by step,
look here on the sidebar stats, the numbers are loading after 6 seconds when the page fully loads
btw i dont have proxy_wstunnel installed because i am using vestacp
if i follow this guide will it break my vestacp ?
-
@Watchopolis The websockes connection is probably not establishing because you don't have that module installed. Perhaps the folks at Vestacp can help make them place nicely together?