New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using a specific host and port ("failed to load my db") #1
Comments
Glad to hear you're interested in Variety! Yes, this is a syntax issue. You can tell, because
does not work, and Variety is not yet involved. Here's what Mongo shell says:
...and so if you try
...it should work. Does it? Definitely let me know, especially if not. I hope you have a great experience using Variety. Please do get in touch with any more issues, concerns or opinions you might have. Best of Luck, |
Thanks for the quick response! Unfortunately, I tried that first. And changed it to what I reported here because it seemed like I had it wrong based on your example. Here is what I ran then and now, and the new error: E:\mongo\binaries>mongo 127.0.0.1:9123/phillynjnet --eval "var collection = 'speaker'" variety.js the error is about "db already exists": MongoDB shell version: 2.0.2 |
doh! case sensitivity? can it be? looks like it. I realized it after typing the above comment. But now I'm getting a different error :( E:\mongo\binaries>mongo 127.0.0.1:9123/phillyNJnet --eval "var collection = 'speaker'" variety.js MongoDB shell version: 2.0.2 |
I see. I don't suppose it's a case issue, and that
might work for you? Let me know. Godspeed, |
yes, but fixing the case sensitivity thing only brought me to a new error :) |
Could you log into the shell via
and run
and provide the output? For what it's worth, I am personally able to use this "specific host and port" syntax and get results, locally, so think we're on some kind of right track. J |
|
Okay, I could only guess it has to do with the capitalization? I'm exploring that now, and seeing if I can reproduce. |
...maybe you could in the meantime try running Variety on "bar" or "foo" or an all-lowercase db? |
Yep! I've confirmed it's a capitalization issue. |
Gah, spoke too soon... looking further. |
Travis, I've noticed the error one receives when a database can't be found, is identical to the one received when a collection can't be found. Since it looks like your database can be found, maybe your collection is misidentified? Could you log into the shell via
and run
to ensure we're not supposed to call it "speakers" or something like that? |
gotcha! my collection name is "Speaker" not "speaker" - sorry for all the troubles. I never expect case sensitivity and it always drives me through times like this. thanks again! |
Very good to hear. Get in touch again if you need anything else. ~James |
I'm encountering an error trying to use this. Most likely I'm doing something wrong. I barely ever use the command line or "shell" for anything. I use the C# driver and MongoVue for all of my Mongo interactions. But this is compelling enough to want to take a look :)
On my local dev box I have Mongo installed on port 9123 and have a number of databases. Here is what I've typed at the commandline:
E:\mongo\binaries>mongo 127.0.0.1:9123 phillynjnet --eval "var collection = 'speaker'" variety.js
As far as I understand it, I'm running Mongo, connecting to the local server telling it to evaluate the phillynjnet database and the "speaker" collection. I'm getting the following output including the error:
MongoDB shell version: 2.0.2
connecting to: 127.0.0.1:9123/test
loading file: phillynjnet
Thu Apr 26 09:03:33 file [phillynjnet] doesn't exist
failed to load: phillynjnet
Can you please tell me what I'm doing wrong?
The text was updated successfully, but these errors were encountered: