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

Darkscribes Community

  1. Home
  2. Technical Support
  3. odd error cloning mongo db with mongodump/ mongorestore

odd error cloning mongo db with mongodump/ mongorestore

Scheduled Pinned Locked Moved Technical Support
2 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.
  • Z This user is from outside of this forum
    Z This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1

    odd authenticate failure message when i tried to clone a mongo db to a new name.
    used ubuntu22.04 and a current version of nodebb.

    1. sudo mongodump -d old-db -o /test/old-db/
      this was supposed to do a backup into /test.
    2. sudo mongorestore -d new-db /test/old-db/old-db
      this was supposed to make a new mongo db named new-db using old-db.
      got nice stats on documents copied. message of 0 documents not copied.

    used mongosh/ show dbs and it listed 'new-db'.

    verified that config.json had new-db vs old-db.

    but when i try to start nodebb for this, does not start. error log says failed authentication.

    stumped on what to do. i did foo to mongosh and use admin/ db.auth. got success.

    julian@community.nodebb.orgJ 1 Reply Last reply
    0
    • Z [email protected]

      odd authenticate failure message when i tried to clone a mongo db to a new name.
      used ubuntu22.04 and a current version of nodebb.

      1. sudo mongodump -d old-db -o /test/old-db/
        this was supposed to do a backup into /test.
      2. sudo mongorestore -d new-db /test/old-db/old-db
        this was supposed to make a new mongo db named new-db using old-db.
        got nice stats on documents copied. message of 0 documents not copied.

      used mongosh/ show dbs and it listed 'new-db'.

      verified that config.json had new-db vs old-db.

      but when i try to start nodebb for this, does not start. error log says failed authentication.

      stumped on what to do. i did foo to mongosh and use admin/ db.auth. got success.

      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.orgJ This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      zephyr99 did you switch MongoDB servers? Is the address to db server the same, or changed?

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


      • Login

      • Don't have an account? Register

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