升级时服务器抛出错误

问答  收藏
2 / 137
升级完成后,执行 docker exec -it $(docker ps | grep community | awk '{print $1}') bash 进入微服务应用容器内,再执行多语言消息模板初始化的脚本:

source /entrypoint.sh && mongodbResetTemplateMessage

服务器抛出以下错误

  • export ENV_MONGODB_URI=mongodb://127.0.0.1:27017
  • ENV_MONGODB_URI=mongodb://127.0.0.1:27017 ++ mongo --quiet mongodb://127.0.0.1:27017/commonbase
  • export ENV_MONGODB_PRIMARY=
  • ENV_MONGODB_PRIMARY=
  • [[ '' == '' ]]
  • export ENV_MONGODB_PRIMARY_URI=mongodb://127.0.0.1:27017
  • ENV_MONGODB_PRIMARY_URI=mongodb://127.0.0.1:27017
  • set +x mongodb://127.0.0.1:27017/ 2024-03-05T22:51:13.084+0800 the --db and --collection args should only be used when restoring from a BSON file. Other uses are deprecated and will not exist in the future; use --nsInclude instead 2024-03-05T22:51:13.084+0800 building a list of collections to restore from /init/mongodb/mdservicedata dir 2024-03-05T22:51:13.086+0800 reading metadata for mdservicedata.n_messagetemplate from /init/mongodb/mdservicedata/n_messagetemplate.metadata.json.gz 2024-03-05T22:51:13.086+0800 reading metadata for mdservicedata.n_messagetemplatetype from /init/mongodb/mdservicedata/n_messagetemplatetype.metadata.json.gz 2024-03-05T22:51:13.086+0800 reading metadata for mdservicedata.n_langtype from /init/mongodb/mdservicedata/n_langtype.metadata.json.gz 2024-03-05T22:51:13.086+0800 restoring mdservicedata.n_messagetemplate from /init/mongodb/mdservicedata/n_messagetemplate.bson.gz 2024-03-05T22:51:13.087+0800 restoring mdservicedata.n_messagetemplatetype from /init/mongodb/mdservicedata/n_messagetemplatetype.bson.gz 2024-03-05T22:51:13.087+0800 restoring mdservicedata.n_langtype from /init/mongodb/mdservicedata/n_langtype.bson.gz 2024-03-05T22:51:13.090+0800 error: multiple errors in bulk operation:
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('63ef16c67a117a0f582b4e7c') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('63ef16c87a117a0f582b4e7d') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('63ef16caae2ff7c7a2651a25') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('63ef16d5ae2ff7c7a2651a26') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('63ef16d77a117a0f582b4e7e') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('63ef16d9ae2ff7c7a2651a27') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('63ef16dbae2ff7c7a2651a28') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('63ef16e07a117a0f582b4e80') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('63ef16e2ae2ff7c7a2651a29') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('63ef17167a117a0f582b4e81') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('63ef199bae2ff7c7a2651a2a') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64881b542b48507714586d3b') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64881b542b48507714586d3c') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64881b542b48507714586d3e') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64881b542b48507714586d3d') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64881b542b48507714586d3f') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64881b547d11e7ed0fbdd7a9') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64881b547d11e7ed0fbdd7aa') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64881b547d11e7ed0fbdd7ab') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64881b547d11e7ed0fbdd7ac') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64881b542b48507714586d40') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64881b547d11e7ed0fbdd7ad') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883d362b48507714586d44') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883d607d11e7ed0fbdd7af') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883db77d11e7ed0fbdd7b0') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883db72b48507714586d45') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883db77d11e7ed0fbdd7b1') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883db72b48507714586d46') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883db72b48507714586d47') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883db72b48507714586d48') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883db72b48507714586d49') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883db72b48507714586d4a') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883db77d11e7ed0fbdd7b2') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883db87d11e7ed0fbdd7b3') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883db97d11e7ed0fbdd7b4') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883dbb2b48507714586d4b') }
    • E11000 duplicate key error collection: mdservicedata.n_messagetemplatetype index: id dup key: { : ObjectId('64883dbb7d11e7ed0fbdd7b5') }

2024-03-05T22:51:13.090+0800 no indexes to restore 2024-03-05T22:51:13.090+0800 finished restoring mdservicedata.n_messagetemplatetype (37 documents) 2024-03-05T22:51:13.090+0800 error: multiple errors in bulk operation:

  • E11000 duplicate key error collection: mdservicedata.n_langtype index: id dup key: { : ObjectId('63ef15d67a117a0f582b4e79') }
  • E11000 duplicate key error collection: mdservicedata.n_langtype index: id dup key: { : ObjectId('63ef15e37a117a0f582b4e7a') }
  • E11000 duplicate key error collection: mdservicedata.n_langtype index: id dup key: { : ObjectId('63ef15e67a117a0f582b4e7b') }
  • E11000 duplicate key error collection: mdservicedata.n_langtype index: id dup key: { : ObjectId('63ef15e8ae2ff7c7a2651a24') }
  • E11000 duplicate key error collection: mdservicedata.n_langtype index: id dup key: { : ObjectId('64881b5b2b48507714586d41') }
  • E11000 duplicate key error collection: mdservicedata.n_langtype index: id dup key: { : ObjectId('64881b5b2b48507714586d42') }
  • E11000 duplicate key error collection: mdservicedata.n_langtype index: id dup key: { : ObjectId('64881b5b7d11e7ed0fbdd7ae') }
  • E11000 duplicate key error collection: mdservicedata.n_langtype index: id dup key: { : ObjectId('64881b5c2b48507714586d43') }

2024-03-05T22:51:13.090+0800 no indexes to restore 2024-03-05T22:51:13.090+0800 finished restoring mdservicedata.n_langtype (8 documents) 2024-03-05T22:51:13.099+0800 error: multiple errors in bulk operation:

  • E11000 duplicate key error collection: mdservicedata.n_messagetemplate index: id dup key: { : ObjectId('646f2ca57d11e7ed0fbdd6dc') }
  • E11000 duplicate key error collection: mdservicedata.n_messagetemplate index: id dup key: { : ObjectId('646f2ca57d11e7ed0fbdd6dd') }
  • E11000 duplicate key error collection: mdservicedata.n_messagetemplate index: id dup key: { : ObjectId('646f2ca57d11e7ed0fbdd6de') }
  • E11000 duplicate key error collection: mdservicedata.n_messagetemplate index: id dup key: { : ObjectId('646f2ca57d11e7ed0fbdd6df') }
  • E11000 duplicate key error collection: mdservicedata.n_messagetemplate index: id dup key: { : ObjectId('646f2ca57d11e7ed0fbdd6e0') }
  • E11000 duplicate key error collection: mdservicedata.n_messagetemplate index: id dup key: { : ObjectId('646f2ca57d11e7ed0fbdd6e1') }
  • E11000 duplicate key error collection: mdservicedata.n_messagetemplate index: id dup key: { : ObjectId('646f2ca52b48507714586c6c') }
  • E11000 duplicate key error collection: mdservicedata.n_messagetemplate index: id dup key: { : ObjectId('646f2ca52b48507714586c6a') }
  • E11000 duplicate key error collection: mdservicedata.n_messagetemplate index: id dup key: { : ObjectId('646f2ca52b48507714586c6b') }
  • E11000 duplicate key error collection: mdservicedata.n_messagetemplate inde

但是重启服务器 日志都是正常的,mongdb 数据库连接及运行也是正常的,那么这些错误还要理会吗?