-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongDB 5.0.2 导入数据报错 #50
Comments
BennyThink
added
bug
Something isn't working
question
Further information is requested
labels
Aug 13, 2021
root@f86d0ed6d838:/tmp# mongod --version
db version v5.0.2
Build Info: {
"version": "5.0.2",
"gitVersion": "6d9ec525e78465dcecadcff99cce953d380fedc8",
"openSSLVersion": "OpenSSL 1.1.1f 31 Mar 2020",
"modules": [],
"allocator": "tcmalloc",
"environment": {
"distmod": "ubuntu2004",
"distarch": "x86_64",
"target_arch": "x86_64"
}
}
root@f86d0ed6d838:/tmp# mongorestore --gzip --archive=yyets_mongo.gz
2021-08-13T04:37:15.944+0000 preparing collections to restore from
2021-08-13T04:37:15.954+0000 reading metadata for zimuzu.yyets from archive 'yyets_mongo.gz'
2021-08-13T04:37:15.977+0000 restoring zimuzu.yyets from archive 'yyets_mongo.gz'
2021-08-13T04:37:18.904+0000 zimuzu.yyets 118MB
2021-08-13T04:37:20.546+0000 zimuzu.yyets 234MB
2021-08-13T04:37:20.547+0000 finished restoring zimuzu.yyets (17522 documents, 0 failures)
2021-08-13T04:37:20.549+0000 restoring indexes for collection zimuzu.yyets from metadata
2021-08-13T04:37:20.552+0000 index: &idx.IndexDocument{Options:primitive.M{"name":"data.info.views_-1", "v":2}, Key:primitive.D{primitive.E{Key:"data.info.views", Value:-1}}, PartialFilterExpression:primitive.D(nil)}
2021-08-13T04:37:20.552+0000 index: &idx.IndexDocument{Options:primitive.M{"name":"data.info.id_1", "v":2}, Key:primitive.D{primitive.E{Key:"data.info.id", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-08-13T04:37:20.552+0000 index: &idx.IndexDocument{Options:primitive.M{"name":"data.info.area_1", "v":2}, Key:primitive.D{primitive.E{Key:"data.info.area", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-08-13T04:37:21.199+0000 17522 document(s) restored successfully. 0 document(s) failed to restore.
root@f86d0ed6d838:/tmp# 你是第二次导入吧?清掉数据库,重新导入一下哦。 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker镜像部署执行
mongorestore --gzip --archive=yyets_mongo.gz
报错如下The text was updated successfully, but these errors were encountered: