Error with mongoexport on OS X

56 views
Skip to first unread message

Joel

unread,
Sep 1, 2010, 2:45:46 PM9/1/10
to mongodb-user
On Mac OS 10.6.4 I am getting the error "too many positional options"
when using mongoexport with a remote host. I am using version 1.6.1
but I get the same error with a recent nightly build and the just
released 1.6.2. The full command I'm using is of the form

mongoexport -h [host:port] -d [database] -u [user] -p [password] -c
[collection] -o [output]

It works when I run the same command on linux. I think the error may
be related to the password parameter since the error goes away when I
don't include the password, but then of course I get an authentication
failure.

Michael Dirolf

unread,
Sep 1, 2010, 2:50:41 PM9/1/10
to mongod...@googlegroups.com
This is a shot in the dark, but does your password have spaces in it?
If so you'll need to wrap it in quotes to pass at the command line.

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>

roger

unread,
Sep 1, 2010, 2:55:11 PM9/1/10
to mongodb-user
Your password might contain spaces or special characters that are
interpreted as options. Is this reproducible with a simple password ?
-Roger

Joel

unread,
Sep 1, 2010, 7:45:23 PM9/1/10
to mongodb-user
The password just has alpha characters. Wrapping it in quotes
doesn't help.

Joel

unread,
Sep 1, 2010, 7:55:06 PM9/1/10
to mongodb-user
I should add that this worked in version 1.4.

Michael Dirolf

unread,
Sep 2, 2010, 1:36:53 PM9/2/10
to mongod...@googlegroups.com
I can't reproduce this. Can you send the complete invocation that
you're using? Obviously change out the auth info but just want to see
if there's anything obviously different between what you're doing and
what is working for me.

Eliot Horowitz

unread,
Sep 2, 2010, 2:48:59 PM9/2/10
to mongod...@googlegroups.com
This turned out to be a boost verison issue.
Working on getting the 64-bit os x builder to use a new version.

Joel

unread,
Sep 2, 2010, 3:20:36 PM9/2/10
to mongodb-user
Good to know. Thanks.

On Sep 2, 2:48 pm, Eliot Horowitz <eliothorow...@gmail.com> wrote:
> This turned out to be a boost verison issue.
> Working on getting the 64-bit os x builder to use a new version.
>
>
>
> On Thu, Sep 2, 2010 at 1:36 PM, Michael Dirolf <m...@10gen.com> wrote:
> > I can't reproduce this. Can you send the complete invocation that
> > you're using? Obviously change out the auth info but just want to see
> > if there's anything obviously different between what you're doing and
> > what is working for me.
>
> > mongodb-user...@googlegroups.com<mongodb-user%2Bunsubscribe@google groups.com>
> > .
> > > For more options, visit this group at
> >http://groups.google.com/group/mongodb-user?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "mongodb-user" group.
> > To post to this group, send email to mongod...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > mongodb-user...@googlegroups.com<mongodb-user%2Bunsubscribe@google groups.com>
> > .
Reply all
Reply to author
Forward
0 new messages