Error when importing data onto the primary shard

I am trying to import with this command

mongoimport --drop --port 26000 -u "m103-admin" -p "m103-pass" --authenticationDatabase "admin" --db m103 --collection products --file=/dataset/products.json

and i am getting this error

image

How can I solve it?

Any more details from the log?

Output of the followiing

ss -tlnp
ps -aef | grep [m]ongo

could provide some clues.

1 Like

Hi @ngabrielgutierrez,

Please share the information requested by @steevej-1495.

~ Shubham

1 Like

Are these details useful?

image

Perplexed. Nothing obviously wrong from your screen shots.

Can you connect to 26000 with the shell?

Yes I can connect to 26000. This is the details from sh.status()

Your first snapshot does not show vagrant prompt
Looks like you ran it on your local host
Are you getting failure even on vagrant box?

2 Likes

I tried it on vagrant box and it worked. Thanks!!

Good catch @Ramachandra_37567 :clap: