Mongorestore [Error: Close Explicitly]

While creating collections with the command:
mongorestore --drop --gzip --uri mongodb+srv://m220student:m220password@ data

mongorestore exits after a while and throws error: close explicitly with unfinished collection creations left over.
Has anyone experienced this?

Please advice! Thank you!

(For whoever experienced the same issue) It seems that adding โ€œ-j 1โ€ to force mongorestore restoring with 1 single thread resolved this issue.

1 Like