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