mongodump version 3.0.0: expected argument for flag `-p, --password'

1,167 views
Skip to first unread message

Philipp Krenn

unread,
Mar 6, 2015, 3:31:19 PM3/6/15
to mongod...@googlegroups.com
Hi,

we have a couple of shell scripts to run locally (Mac) against remote servers. They have been working for months and are version controlled, so I'm sure it's nothing in the script. Since I've updated to version 3.0.0 locally (the remote server is still on 2.4.x) this command is failing:

mongodump --host $CONNECTION --db $DATABASE --username $USER --password

The error message is the following, even though I would expect a password prompt:

2015-03-06T21:11:47.185+0100 error parsing command line options: expected argument for flag `-p, --password'
2015-03-06T21:11:47.185+0100 try 'mongodump --help' for more information

I've tried to add the parameters "--authenticationDatabase $DATABASE --authenticationMechanism MONGODB-CR" before the --password, but this didn't change anything.
According to http://docs.mongodb.org/manual/reference/program/mongorestore/#cmdoption--password I would expect the interactive password prompt to work as before. And I really want to keep it interactive.

Any ideas? Bug in mongodump 3.0.0? Database version 2.4.x is too old to get a dump from with mongodump 3.0.0?

Thanks,
Philipp

Asya Kamsky

unread,
Mar 7, 2015, 5:32:34 PM3/7/15
to mongodb-user
Hi Philipp:

All the tools have been rewritten for 3.0 and it does look like none of them interactively prompt for the password when they used to in 2.6.x.

I would file a bug report in this project and hopefully it can get fixed quickly.

Asya


--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/2d5924b0-b1a7-4b7a-8fca-90bb3807be66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages