odd error cloning mongo db with mongodump/ mongorestore
-
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.- sudo mongodump -d old-db -o /test/old-db/
this was supposed to do a backup into /test. - 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.
- sudo mongodump -d old-db -o /test/old-db/
-
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.- sudo mongodump -d old-db -o /test/old-db/
this was supposed to do a backup into /test. - 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?
- sudo mongodump -d old-db -o /test/old-db/