-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.2.2
-
Component/s: None
-
Environment:Linux
Running a large database migration and want to do it through the unix socket instead of loopback interface. Can't seem to make it work.
I use the exported uri in the script. I've tried uri encoding it, not encoding it, everything. It doesn't seem to work.
When I don't provide '.sock' it things it isn't a hostname, when I do provide.sock it erroneously adds the port.
> export MONGODB_URI='mongodb:///tmp/mongodb-27017/hustle' > ./myscript Error: no hostname or hostnames provided in connection string > export MONGODB_URI='mongodb:///tmp/mongodb-27017.sock/hustle' > ./myscript MongoError: failed to connect to server [/tmp/mongodb-27017.sock:27017] on first connect