Salta al contenuto

Piero Bosio Social Web Site Personale

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

odd error cloning mongo db with mongodump/ mongorestore

Senza categoria
2 2 0
  • 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.

  • 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.

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


Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti