Connection and Session issues (new install)
-
Hi there,
I'm new to NodeBB and installed it only yesterday for my community to use.
However, I'm having issues.- Users cannot register (just reloads the page),
- Logging in (inc. admin account, so i'm locked out) does not work; although the user can log in, it reloads the page with:
Session Mismatch
It looks like your login session is no longer active, or no longer matches with the server. Please refresh this page
Once it has done this, it tends to reload with the message a the bottom "Looks like your connection to name was lost, please wait while we try to reconnect. This did not happen when I wasn't logged in / when I was logged in with an account yesterday (before logging out).
If anyone would be able to help (as simply as possible) that would be amazing! Thank you all in advance
I'm running software: Ubuntu 18.04
If you need any more information from me please let me know -
here is a current modern Nginx conf that I have that is working right now. Like you, this one doesn't handle HTTPS or 443. That's handled by another proxy in front of this one.
server { listen 80; client_max_body_size 80M; server_name your.site.name; location / { proxy_pass http://192.168.1.10:4567/; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }
-
@ben-coyle2 Uhh... yeah... we're gonna' need a lil' more than this to troubleshoot....
For instance, did you follow the Ubuntu install docs here?
Ubuntu (Recommended) - NodeBB Documentation
Documentation portal for NodeBB Forum Software
(docs.nodebb.org)
If not, can you please give those a go?
-
What version of node? What version of nodebb? Are there any errors in the nodebb log? How are you running NodeBB? What database are you using?
-
@PitaJ said in Connection and Session issues (new install):
What version of node? What version of nodebb? Are there any errors in the nodebb log? How are you running NodeBB? What database are you using?
Node: v12.18.1
NodeBB: v.1.13.4-5
The only errors are that plugins may be incompatible
I'm running NodeBB through a VPS using Ubuntu 18.04
DB is MongoDB 4.0.19 -
Can you try checking out tag
v1.13.3
instead?git checkout v1.13.3
-
@baris said in Connection and Session issues (new install):
Make sure the url in your config.json matches the url you are accessingn the site as well.
This is done
-
@PitaJ said in Connection and Session issues (new install):
Can you try checking out tag
v1.13.3
instead?git checkout v1.13.3
Okay I'm not entirely sure how this works? It says that when this was loaded it's in a detached HEAD state? Should I try access my website with this running?
-
It won't start at all now I'm getting csv errors. Any help?
-
@ben-coyle2 This is just git doing its thing:
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.
Here's a link to free online version of Pro Git for those who may want/need more help with git.
You should not try accessing site with "this running". Having switched to a different branch/version of NodeBB, you now need to build/setup that branch. I am unsure whether you need to re-run the "setup" target or just "build" target, as I am still on 12.x and ignorant of whether any config.json knobs changed 'twixt the two versions. Probably does not hurt to run setup again. Do this as your nodebb user, not root, btw.
-
@ben-coyle2 please try
./nodebb stop git checkout v1.13.3 ./nodebb upgrade -mi ./nodebb start
-
@PitaJ said in Connection and Session issues (new install):
@ben-coyle2 please try
./nodebb stop git checkout v1.13.3 ./nodebb upgrade -mi ./nodebb start
^^^^ Duh!
I should not try playing helpdesk before morning coffee.... Heh.
-
@PitaJ said in Connection and Session issues (new install):
@ben-coyle2 please try
./nodebb stop git checkout v1.13.3 ./nodebb upgrade -mi ./nodebb start
Same thing is still happening after doing this
-
@ben-coyle2 said in Connection and Session issues (new install):
It won't start at all now I'm getting csv errors. Any help?
NodeBB will not start? Can you show the errors?
-
@scottalanmiller said in Connection and Session issues (new install):
@ben-coyle2 said in Connection and Session issues (new install):
It won't start at all now I'm getting csv errors. Any help?
NodeBB will not start? Can you show the errors?
This has now resolved itself following above advice but the other issues still remain after trying previous comments
-
Issues like what? Please explain what is going on.
-
The same problems I've been having the whole time.
When logging in, reloading the page and displaying the message session mismatch & then 'looks like your connection was lost', not being bale to register etc -
@ben-coyle2
./nodebb start -l
Then paste relevant log error messages, eh?
-
Does the url value in config.json match the address at which you're accessing your site exactly?