When using mongodb’s
mongorestore commandline tool, it failed with the message
Strangely enough, it was working on my computer, but failed on my colleague’s.
This only happened when restoring from localhost. The
/etc/hosts file was set up correctly.
Both our mongodb versions were at 3.0.6.
A quick solution is to add the host to the mongorestore command:
I found a bug description concerning sockets: https://jira.mongodb.org/browse/TOOLS-620, but I’m not sure if this is the reason in this case.
On my computer the
/etc/mongod.conf is showing
bind_ip = 127.0.0.1 - I’m not sure
if the system where it failed has the same setting implemented. We will look into this.