• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Connection and Session issues (new install)

Scheduled Pinned Locked Moved Solved Technical Support
34 Posts 6 Posters 1.9k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    ben.coyle2
    wrote on last edited by
    #1

    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

    gotwfG 1 Reply Last reply
    0
  • scottalanmillerS Offline
    scottalanmillerS Offline
    scottalanmiller Community Rep
    wrote on last edited by
    #31

    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";
            }
    }
    
    1 Reply Last reply
    0
  • gotwfG Offline
    gotwfG Offline
    gotwf Community Rep
    replied to ben.coyle2 on last edited by
    #2

    @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

    favicon

    (docs.nodebb.org)

    If not, can you please give those a go? 👍

    B 1 Reply Last reply
    0
  • B Offline
    B Offline
    ben.coyle2
    replied to gotwf on last edited by
    #3

    @gotwf Hi, yeah I followed this when installing it -
    Sorry for not providing more I wasn't sure what to include

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #4

    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?

    B 1 Reply Last reply
    0
  • B Offline
    B Offline
    ben.coyle2
    replied to PitaJ on last edited by
    #5

    @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

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #6

    Make sure the url in your config.json matches the url you are accessingn the site as well.

    B 1 Reply Last reply
    1
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #7

    Can you try checking out tag v1.13.3 instead?

    git checkout v1.13.3
    
    B 1 Reply Last reply
    0
  • B Offline
    B Offline
    ben.coyle2
    replied to <baris> on last edited by
    #8

    @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

    1 Reply Last reply
    0
  • B Offline
    B Offline
    ben.coyle2
    replied to PitaJ on last edited by
    #9

    @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?

    B gotwfG 2 Replies Last reply
    0
  • B Offline
    B Offline
    ben.coyle2
    replied to ben.coyle2 on last edited by
    #10

    It won't start at all now I'm getting csv errors. Any help?

    scottalanmillerS 1 Reply Last reply
    0
  • gotwfG Offline
    gotwfG Offline
    gotwf Community Rep
    replied to ben.coyle2 on last edited by gotwf
    #11

    @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.

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to gotwf on last edited by PitaJ
    #12

    @ben-coyle2 please try

    ./nodebb stop
    git checkout v1.13.3
    ./nodebb upgrade -mi
    ./nodebb start
    
    gotwfG B 2 Replies Last reply
    1
  • gotwfG Offline
    gotwfG Offline
    gotwf Community Rep
    replied to PitaJ on last edited by
    #13

    @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.

    1 Reply Last reply
    0
  • B Offline
    B Offline
    ben.coyle2
    replied to PitaJ on last edited by
    #14

    @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

    1 Reply Last reply
    0
  • scottalanmillerS Offline
    scottalanmillerS Offline
    scottalanmiller Community Rep
    replied to ben.coyle2 on last edited by
    #15

    @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?

    B 1 Reply Last reply
    0
  • B Offline
    B Offline
    ben.coyle2
    replied to scottalanmiller on last edited by
    #16

    @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

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #17

    Issues like what? Please explain what is going on.

    1 Reply Last reply
    1
  • B Offline
    B Offline
    ben.coyle2
    wrote on last edited by
    #18

    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

    gotwfG 1 Reply Last reply
    0
  • gotwfG Offline
    gotwfG Offline
    gotwf Community Rep
    replied to ben.coyle2 on last edited by
    #19

    @ben-coyle2

    ./nodebb start -l
    

    Then paste relevant log error messages, eh? 😉

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #20

    Does the url value in config.json match the address at which you're accessing your site exactly?

    B 1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development