Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    odd error cloning mongo db with mongodump/ mongorestore

    Pianificato Fissato Bloccato Spostato Uncategorized
    2 Post 2 Autori 4 Visualizzazioni
    Caricamento altri post
    • Da Vecchi a Nuovi
    • Da Nuovi a Vecchi
    • Più Voti
    Rispondi
    • Topic risposta
    Effettua l'accesso per rispondere
    Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
    • Z Questo utente è esterno a questo forum
      zephyr99@community.nodebb.org
      ultima modifica di

      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 Risposta Ultima Risposta Rispondi Cita 0
      • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
        julian@community.nodebb.org @zephyr99@community.nodebb.org
        ultima modifica di

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

        1 Risposta Ultima Risposta Rispondi Cita 0
        • Primo post
          Ultimo post