LoginSignup
0
0

More than 3 years have passed since last update.

CrowiからGrowi移行時にcreateIndex errorが出たとき

Posted at

背景

社内運用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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0