3 dots after submitting (small) query/entry in Mongo shell?

5,890 views
Skip to first unread message

sh

unread,
Nov 13, 2012, 5:14:36 AM11/13/12
to mongod...@googlegroups.com
Hi,

I'm at the very beginning of using MongoDB.

I've run the following command just to get up and running and populate a db with something (I later hope to be able to read in such data in Jaspersoft iReport)

db.towns.insert({ (to create a new collection)
name: "new york", population: 222000000)
etc
famous_for: ["food", "central park"],
mayor: {name: "MB", Party: "I"} })

The syntax is all fine, but when I hit return I get 3 dots ...and it seems to hang - i cannot enter any more commands

I running  the mongo shell in  win7.

Any ideas?
Thanks
Stuart

craiggwilson

unread,
Nov 13, 2012, 8:39:00 AM11/13/12
to mongod...@googlegroups.com
Three '.'s means your statement isn't complete...  Most likely, you've missed a closing curly brace.  Check your syntax and, if you still can't find it, post the full thing here and we'll help...

Supreeth S

unread,
Oct 5, 2014, 2:36:45 AM10/5/14
to mongod...@googlegroups.com
hey even i seem to be getting the same problem.. if i close the current shell and type the same querry in new shell then  it works fine ..why does this happen ??

Asya Kamsky

unread,
Oct 6, 2014, 12:18:41 AM10/6/14
to mongodb-user
It's waiting for more input.

Either your parents are not balanced, or your quotes are not balanced
or you simply haven't given enough input for it to do anything.

If you provide the actual text you have typed, we can probably point
out why it's not complete.

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/c550446d-76f1-4854-b957-bbcccb96cbc1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages