NodeBB New Users Overwriting Existing UserIDs

Technical Support
  • Hello! I recently backed up my MongoDB and NodeBB forums to migrate over to another server, I imported the MongoDB dump and put my files in and almost everything resumed to how it used to be.
    I see no errors or anything in the logs that look odd, but whenever somebody makes a new account on the forums it starts with UID of 1 then goes up by one (like normal) however... I have 80 users and each time somebody signs up it's overridding my account and users who signed up after me.

    First person to sign up on the forum since migrating overrides my account and gets owner...

    d61cc5d5-de06-43b7-be8d-8087e6a60c83-image.png

    Getting no abnormal errors (except the Steam login plugin that never worked for me), is there a way to fix this? I'm a novice so if you need any more information please let me know and I'll try to get it.

    NodeBB Version: 1.12.0 (Older backup I migrated with)
    Mongod: v4.0.10
    OS: Ubuntu Sever 16.04

    I noticed when importing some DBs it said some tables already exist and it didn't overwrite it, could it have been that? How could I force it to overwrite existing data in MongoDB? Thank you!

  • Did you run ./nodebb setup when you installed?

    That will create a database and if it's not overwritten by the restore you'll have problems.

    I recommend deleting the new mongo database and running the restore again.

  • On a fresh restore, check what the global object contains... let us know.

  • Thank you all for the responses and offering your time, I completely wiped the nodebb db in MongoDB and re-restored it and everything is functioning perfectly again. ☺


Suggested Topics


  • 0 Votes
    19 Posts
    2k Views

    @arnaudw
    I installed a new forum on a heroku server and when I connect via myapp.herokuapp.com it works great
    But when I connect through my domain it is written to me "welcome back guest" but really stayed disconnected
    (I only use a subdomain, at the domain root I use for another site, I use cloudflare I set ssl and force ssl)
    I would be happy to help, thanks

  • 0 Votes
    8 Posts
    363 Views

    Just a quick follow up on this because I finally got around to sorting it out and in case anyone else is running into the same issue. After a bit of stuffing around I realized there was an issue with the commands, they needed some extra quotation marks (as per @PitaJ 's suggestion):

    zrem registration:queue "Hermina\r\n" zrem registration:queue "Kallie\r\n" del "registration:queue:name:Hermina\r\n" del "registration:queue:name:Kallie\r\n"

    This got everything sorted. Appreciate everyone's help!!

  • 1 Votes
    1 Posts
    182 Views

    Hi,

    Is there a way that our moderator/super moderator can create category and sub-category ?

  • How nodebb loads pages?

    Technical Support
    2
    3 Votes
    2 Posts
    346 Views

    It's a little difficult to explain, but at a high level, we're a single page app, which means when you click on an anchor, we request the JSON for the new page, render the html on the user browser, empty everything in #content, and inject it into #content. The overlay is a transition that makes this process a little smoother.

    We use a templating engine called Benchpress to render templates on both server and client-side.

  • 0 Votes
    8 Posts
    947 Views

    @scottalanmiller Fluentd hosts some nice configs (distilled from a presentation from a Netflix engineer about tuning their servers) https://docs.fluentd.org/v1.0/articles/before-install

    Perhaps this could help? Also check out ss -s, what is TIMEWAIT?