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

NodeBB

  1. Home
  2. Technical Support
  3. Login Request always forbidden.

Login Request always forbidden.

Scheduled Pinned Locked Moved Technical Support
11 Posts 4 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.
  • M This user is from outside of this forum
    M This user is from outside of this forum
    m1hono@community.nodebb.org
    wrote on 21 May 2025, 10:39 last edited by
    #1

    Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
    There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

    M B S 9 Replies Last reply 21 May 2025, 12:04
    0
    • M m1hono@community.nodebb.org
      21 May 2025, 10:39

      Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
      There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

      M This user is from outside of this forum
      M This user is from outside of this forum
      m1hono@community.nodebb.org
      wrote on 21 May 2025, 12:04 last edited by
      #2

      {
      "url": "http://xxx.xxx.xx",
      "secret": "16af4904-abb5-4d7d-95ba-593cb6563e7a",
      "database": "mongo",
      "mongo": {
      "host": "127.0.0.1",
      "port": 27017,
      "username": "",
      "password": "",
      "database": "nodebb",
      "uri": "xxx"
      },
      "port": 4567,
      "bind_address": "0.0.0.0",
      "debug": true
      }

      1 Reply Last reply
      0
      • M m1hono@community.nodebb.org
        21 May 2025, 10:39

        Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
        There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

        M This user is from outside of this forum
        M This user is from outside of this forum
        m1hono@community.nodebb.org
        wrote on 21 May 2025, 12:32 last edited by
        #3

        Additionally, when one person is temporarily banned for trying the password too many times, everyone will be banned together which is strange.

        1 Reply Last reply
        0
        • M m1hono@community.nodebb.org
          21 May 2025, 10:39

          Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
          There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

          B This user is from outside of this forum
          B This user is from outside of this forum
          baris@community.nodebb.org
          wrote on 21 May 2025, 12:56 last edited by
          #4

          The csrf error is usually caused by wrong url in your config.json, make sure it is the same as the address you are accessing the forum. Your other issues are likely caused by something else.

          1 Reply Last reply
          0
          • M m1hono@community.nodebb.org
            21 May 2025, 10:39

            Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
            There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

            M This user is from outside of this forum
            M This user is from outside of this forum
            m1hono@community.nodebb.org
            wrote on 21 May 2025, 13:20 last edited by
            #5

            I don't think url cause this issue.

            J 1 Reply Last reply 21 May 2025, 14:33
            0
            • M m1hono@community.nodebb.org
              21 May 2025, 13:20

              I don't think url cause this issue.

              J This user is from outside of this forum
              J This user is from outside of this forum
              julian@community.nodebb.org
              wrote on 21 May 2025, 14:33 last edited by
              #6

              M1hono also check that cookieDomain is not set to anything in ACP

              Can you share your nginx config?

              1 Reply Last reply
              0
              • M m1hono@community.nodebb.org
                21 May 2025, 10:39

                Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
                There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

                M This user is from outside of this forum
                M This user is from outside of this forum
                m1hono@community.nodebb.org
                wrote on 21 May 2025, 15:11 last edited by
                #7

                I restart the whole project and it's fine for now. I might asume it's related to the mismatching between database and nodebb secret.

                1 Reply Last reply
                0
                • M m1hono@community.nodebb.org
                  21 May 2025, 10:39

                  Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
                  There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

                  M This user is from outside of this forum
                  M This user is from outside of this forum
                  m1hono@community.nodebb.org
                  wrote on 21 May 2025, 16:20 last edited by
                  #8

                  This seems to be caused by the slug, as my community is a non-English speaking community, and the current slug generates very cumbersome links, so I tried modifying slug.js, and then encountered similar issues.

                  I reproduce the issue and I think it might be the final answer lol.

                  1 Reply Last reply
                  0
                  • M m1hono@community.nodebb.org
                    21 May 2025, 10:39

                    Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
                    There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

                    M This user is from outside of this forum
                    M This user is from outside of this forum
                    m1hono@community.nodebb.org
                    wrote on 21 May 2025, 16:51 last edited by
                    #9

                    Is there any way of chaging the slug in a normal waIs there any way of chaging the slug in a normal way?

                    1 Reply Last reply
                    0
                    • M m1hono@community.nodebb.org
                      21 May 2025, 10:39

                      Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
                      There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

                      S This user is from outside of this forum
                      S This user is from outside of this forum
                      sondra-shelton@community.nodebb.org
                      wrote on 23 May 2025, 09:48 last edited by
                      #10

                      I also faced the same.

                      1 Reply Last reply
                      0
                      • M m1hono@community.nodebb.org
                        21 May 2025, 10:39

                        Due to unknown reasons, my Nodebb instance always returns an invalid csrf token when trying to access it, and when attempting to register, it always shows that the name is already taken even though there are no duplicate names.
                        There's no suspicious logs so I can only provide this information, are there any possibly effective fixes?

                        M This user is from outside of this forum
                        M This user is from outside of this forum
                        m1hono@community.nodebb.org
                        wrote on 23 May 2025, 11:02 last edited by
                        #11

                        I've found a plugin that solved it.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes

                        7/11

                        21 May 2025, 15:11


                        • Login

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