New Install, Logins And Registrations Failing
-
So I have a new installation, brand new. Just one user (me). It's CentOS 8, MongoDB 4.2, NodeJS 13.8.0, NodeBB 1.13.2 and sits behind an Nginx reverse proxy. We run several sites and normally don't run into the issue that we have here, must be something different in the configuration, but can't figure out what's wrong.
New users cannot register. Just... nothing happens. For my existing user, I can log in, no problem. It succeeds. But once logged in, if I click on any link (topic, category, etc.) it fails and shows me logged out again.
-
About the most basic config file possible....
# cat config.json { "url": "https://url.of.my.site.com", "secret": "234534-35656-347-345324-6-67", "database": "mongo", "mongo": { "host": "127.0.0.1", "port": "27017", "username": "sdfg", "password": "sdfg", "database": "dbnamehere", "uri": "", "socket.io": { "origins": "*:*" } }, "port": "4568" }
-
And here is the Nginx reverse proxy config...
server { listen 80; client_max_body_size 80M; server_name my.server.url.com; location / { proxy_pass http://ip-of-nodebb-server:4568/; 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"; } }
Turned off SSL while testing. SSL is still handled by CloudFlare in front of this.
-
@PitaJ said in New Install, Logins And Registrations Failing:
https://community.nodebb.org/topic/14570/can-t-register-new-users/5
Doesn't appear to work for me. I updated but it said that I was already up to date. I restarted, but nothing. I verified that the fixed line was there in the headers.js file and it was.
-
What is odd, is that now instead of logging me out after one click, it is more like three. Weird.
-
Still failing, any other leads?
-
@julian said in New Install, Logins And Registrations Failing:
Are you on 1.13.2 stable, or latest master? I think latest master is unstable with registrations at the moment, but 1.13.2 as released ought to be ok...
I was on 1.13.x, but switched to Master branch. Same result.
-
I updated to master again today and got some new files, and now I get one or two more clicks before the registration fails. But the basics remain the same.
-
A few pages work for one or two clicks before it kicks me out. The admin page never works.
-
Have you tried on different computers / browsers?
-
@PitaJ said in New Install, Logins And Registrations Failing:
Have you tried on different computers / browsers?
Just got it working. Or seems to be. Been stable for a bit now and the admin page is back.
Had to replace the URL of the site, with localhost:localport