"Connection has been lost" error after update to v1.4.4
Updated to v1.4.4 yesterday and while the site works, I constantly received the "lost connection" popup and pinwheel in the navigation bar.
This problem only seems to occur when I run the app using "./nodebb start" but not when I run "./nodebb dev". It doesn't seem like the console is outputting or detecting any error.
Anyone else experiencing this issue?
Interesting, thanks! I had my forum set up on a subdomain; decided to try changing my config.json file back to it's original version and the error seems to be cleared up.
I'll be sure to monitor this error if I want to change back to the subdomain.
I'm getting the same issue on 1.4.4. Ho did you solve this?
I am getting the same issue for 1.4.5.
I was seeing this error for users that were using "
www.gamingexodus.com" since my config was for "
gamingexodus.com". I lazily setup a forward to send the www address to just
I did not try
www.xxx.com, but it is fixed by
./nodebb dev. However, I dont think it is a good way to fix this problem. This is a serious problem, imagine you have 1000 new threads per day, suddenly your new threads drops to 10 per day.
The wired thing is that not all users suffer this problem, but 80% of them do.
@sharonyue This bug occurs if the url defined in
config.jsonis different from the url which users access your site from.
Edit: the reason for this is a security measure.
Thanks for your reply.
My setting is
"url": "http://xxx.com"，so if users use
www.xxx.com, they have problems. If I modify my setting to
"url": "http://www.xxx.com", I guess those users using
xxx.comwill have this problem？
@sharonyue yes. Just forward users from
example.comwith your reverse proxy. The
wwwsubdomain has been long defunct.
I meet the problem in v.1.4.5
nginx is used for proxy.
How to solve this problem?
config.jsonshould be set to the URL at which you visit your forum. So if you go to
https://example.comto visit your site, then you should have
http://example.com:4567as the URL field.
I changed as your suggest. The problem was gone.
@PitaJ Hi PitaJ, I am also experiencing this issue. I tried as you suggested and I have tried it by removing the port number at the end of the url. Still it tells me that the connection has been lost.
Is this issue resolved in v1.4.6?
I will try and update it and report back.
@teh_g post your config.json and Nginx config, please. Redact any URLs with
example.comif you must.
@PitaJ ROFL... I feel like an idiot... I missed the .com part in the config.json. My bad, sorry for wasting your time
@PitaJ , is an IP address something that can be used as the URL?
My original config.json file used http://localhost:4567, but to test access from external hosts, I tried using the IP address of the nodebb server. As others above have found, this doesn't work because the URLs must match.
How then can I configure the config.json file to use an IP address, temporarily? This is only for internal testing, so I'm not using a webserver or proxy yet.
My goal is to use my nodebb server IP address as the URL value and navigate to that from other hosts.
However, when I try to use the IP address, both the Nodebb server and other hosts receive the connection lost error message.
@Alex-Fiala yes you should be able to use IP addresses. However, you still need to have the protocol in there (http://). Copy the address at which you access your NodeBB server and paste it into the config.json