Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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

NodeBB

  1. Home
  2. Technical Support
  3. CSRF-Invalid login issue with NodeBB 4.14.5

CSRF-Invalid login issue with NodeBB 4.14.5

Scheduled Pinned Locked Moved Technical Support
4 Posts 2 Posters 0 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.
  • A This user is from outside of this forum
    A This user is from outside of this forum
    axtremus@community.nodebb.org
    wrote last edited by
    #1

    Hello, I am seeing "error=csrf-invalid" with a NodeBB installation recently upgraded to 4.14.5.
    The installation is NodeBB 4.14.5 (package version 2.31.5) running in Cloudron 9.2.0 on Ubuntu 24.04.4.
    Existing sessions continue to work; observed issues are:

    • All attempts to login result in "error=csrf-invalid" and the message "Login Unsuccessful // We were unable to log you in, likely due to an expired session. Please try again"
    • NodeBB users with "admin" privilege cannot actually get to the admin panel (clicking on the "admin" icon takes the user to the /user/admin page rather than the /admin page)

    Simple things like "(on the server side) let's restart the app and see what happens" and "(on the client side) let's clear all browser cache/cookies/history/data and let's try this on different browsers (Safari/Brave/Chrome)" have been tried to no avail.

    Any advice for what else I should try?

    julian@community.nodebb.orgJ 1 Reply Last reply
    0
    • A axtremus@community.nodebb.org

      Hello, I am seeing "error=csrf-invalid" with a NodeBB installation recently upgraded to 4.14.5.
      The installation is NodeBB 4.14.5 (package version 2.31.5) running in Cloudron 9.2.0 on Ubuntu 24.04.4.
      Existing sessions continue to work; observed issues are:

      • All attempts to login result in "error=csrf-invalid" and the message "Login Unsuccessful // We were unable to log you in, likely due to an expired session. Please try again"
      • NodeBB users with "admin" privilege cannot actually get to the admin panel (clicking on the "admin" icon takes the user to the /user/admin page rather than the /admin page)

      Simple things like "(on the server side) let's restart the app and see what happens" and "(on the client side) let's clear all browser cache/cookies/history/data and let's try this on different browsers (Safari/Brave/Chrome)" have been tried to no avail.

      Any advice for what else I should try?

      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.org
      wrote last edited by
      #2

      @Axtremus are you using a reverse proxy? Can you send us the config?

      1 Reply Last reply
      0
      • A This user is from outside of this forum
        A This user is from outside of this forum
        axtremus@community.nodebb.org
        wrote last edited by
        #3

        @julian , thanks for asking ... happy to share config if you don't mind advising me what I need to do you get you the config. (E.g., is there a file I should download and share here or a command I should execute and share the output here?) Thanks.

        julian@community.nodebb.orgJ 1 Reply Last reply
        0
        • A axtremus@community.nodebb.org

          @julian , thanks for asking ... happy to share config if you don't mind advising me what I need to do you get you the config. (E.g., is there a file I should download and share here or a command I should execute and share the output here?) Thanks.

          julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.org
          wrote last edited by
          #4

          @Axtremus it depends how you set it up. Did you use nginx or caddy or something? How are you accessing the site?

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups