CrowiからGrowi移行時にcreateIndex errorが出たとき
背景
社内運用WikiをCrowiからGrowiへ移行するため、こちらを参考に作業を進めていた。
問題
DBのデータ移行のセクションで、mongorestore
コマンドを実行すると、以下のようなエラー文が出て、データ移行がうまくいかなかった。
Failed: growi.users: error creating indexes for growi.users: createIndex error: Index with name: username_1 already exists with different options
対処法
mongorestore
コマンドのオプションに--noIndexRestore
を付けて実行するとうまくいった。
参考URL
Author And Source
この問題について(CrowiからGrowi移行時にcreateIndex errorが出たとき), 我々は、より多くの情報をここで見つけました https://qiita.com/grinpeaceman/items/dfbb0372577a42242dde著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .