Skip to content
  • 0 Votes
    1 Posts
    2k Views
    O

    I run NodeBB on a CentOS server, which is a Hyper-V virtual machine. And I pass requests via a IIS server with ARR. I'm sure it works fine with websocket.

    It works OK when I have few members. But, when I put it online, I get something strange: members on my site sometimes logged in as others.

    Let me describe it more clearly : my username is oott123 as you can see, but after I visit some pages, or logged in after some while, I can see someone else 's avatar displayed on the top right corner. If I post a topic , the author will be he, not me. All of my operations seems operated by others.

    My code is here: https://gist.github.com/oott123/66a507a2cadbb26415aa

    I want to get the CIVITAS-Authentication cookie which has been setted by other applications without error; then send it to my API server to get email identified by CIVITAS-Authentication; then logged the user in.

    I think the problem is caused by the code around line 86 or 143. I even thinked about it's caused by async or node.js event loop, orz.

    There's some Chinese character in the comments, but you can ignore it.

    Thanks a lot for help me , and sorry for my poor English again.

    --

    @a_5mith So do you still remember me at Topic 2593 ? I just really love NodeBB, so I hope there's some way to help me troubleshot it . 🙂

  • 0 Votes
    9 Posts
    3k Views
    BonplansachatB

    @baris ok i upgrade redis-server to 2.8 but i forget to backup the database. So the new version of redis delete the forum database. I restore an old one with one or two missing posts. Everything works great now. Thanks

  • 0 Votes
    8 Posts
    6k Views
    julianJ

    @anooxy said:

    @psychobunny I got no users now, did they rename the dump.rdb?

    Possibly, yes. The new redis config might have changed the database file from "dump.rdb" to "redis.rdb". Go into /var/lib/redis and save a backup copy of dump.rdb, it's probably the bigger one (since the other one is empty).

    Then turn off redis: sudo stop redis-server

    Then check /etc/redis/redis.conf for the dbfilename option, and check that it is set to dump.rdb.

    Start redis: sudo start redis-server