and mongoimport

Hi everyone.
Why I can connect “meteor mongo”, but mongoimport - can’t?
I tried:

mongoimport --username none --password superpuperpassword --host --port 27017 --db myurl_meteor_com --collection mycollection --jsonArray --drop --headerline --file ./data.js
  1. Then

    meteor mongo -U



Then I tried:

mongoimport --username client-blabla --password 4a318b48-64d2-a5f6-70f4-blabla --host --port 27017 --db myurl_meteor_com --collection mycollection --jsonArray --drop --headerline --file ./data.js

And always the same result:

connected to:
assertion: 18 { code: 18, ok: 0.0, errmsg: "auth fails" }

what I’m doing wrong?

I would be interested to know if it wasn’t authentication failing and something else. Make sure you do it quickly because those keys last only a minute i think.

what version is your meteor’s mongo?
what version is your mongo outside meteor?

auth version incompatibility (e.g. mongoDB 3.0 uses auth 5, while 2.6 uses 3) would result in auth failing

It was 2 command in shell… I think less then 1 minite


$ meteor mongo 
MongoDB shell version: 2.6.7
connecting to:
meteor:PRIMARY> exit


$ meteor mongo
MongoDB shell version: 2.6.7
connecting to:


$ mongoimport --version
mongoimport version 2.4.9

Can it be a problem?

no, I use these versions and import successfully

can’t think of other suggestions at the moment