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?
-
@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?
-
@PitaJ Yes, it does match it. Does it affect it that it has an SSL certificate (through Cloudflare)
-
@ben-coyle2 I would suggest next trying to isolate whether issue is nginx proxy or nodebb app server side. Since your install is listening to port 4567 on all interfaces, what happens if you try to connect to it directly? Browse about a bit and see if you get those errors?
Nginx can be tricky for the uninitiated. Maybe you have some knob tweaked just not quite right there?
Frustrating. Fer' sure, fer' sure. The thing is, many, many have gone before you and succeeded following the trail laid out in the docs. Hence, it behooves us to backtrack and figure out where the fcsk' we made a wrong turn.
And in final analysis.... maybe easiest to blow that vm away and start over fresh, minding extra attention to crossing all our i's and dotting all out t's..... than investing yet more effort delving deeper down this rabbit hole.....
Maybe??
-
@gotwf Okay
So:
This is my config file: https://pastebin.com/j7tg3uGY
This is my log when it's started: https://pastebin.com/ac3vYPrUI did what you said, and I entirely reinstalled everything (Ubuntu 18.04) again. I followed the tutorial word for word.
Without logging into the website, it can be accessed and used as normal. There're no issues (inc. no connection problems)
When choosing to login to the site, the issues begin. It logs in (this doesn't show up in the log for some reason), comes up with 'session mismatch' and kicks you back to the homepage.
Am I just doing something really stupid and being dim?