Import products don't work. get an error on "SASL authentication step"

command: mongoimport --port=27000 -u m103-application-user -p m103-applicatio-pass -c products --authenticationDatabase admin --file=/dataset/products.json --db applicationData

Error:

019-05-19T13:09:53.453+0000 Failed: error connecting to db server: server returned error on SASL authentication step: Authentication failed.
2019-05-19T13:09:53.455+0000 imported 0 documents
1 Like

It is not --port=27000
Should be --port 27000
Please check and try again

no that doesn’t work. Same error.

What is the version of mongorestore?

mongoexport --version
mongoexport version: r3.6.12
git version: c2b9acad0248ca06b14ef1640734b5d0595b55f1
Go version: go1.11.6
os: linux
arch: amd64
compiler: gc
OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014

mongoimport --version
mongoimport version: r3.6.12
git version: c2b9acad0248ca06b14ef1640734b5d0595b55f1
Go version: go1.11.6
os: linux
arch: amd64
compiler: gc
OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014

sorry I’m read it wrong

mongorestore --version
mongorestore version: r3.6.12
git version: c2b9acad0248ca06b14ef1640734b5d0595b55f1
Go version: go1.11.6
os: linux
arch: amd64
compiler: gc
OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014

I have just notice that you have a typo in the password.

You specified m103-applicatio-pass but it should be m103-application-pass.

Yes that was the problem. thank you