Closed ketch closed 11 years ago
Sorry, it first tries to connect to mongodb on the default mongodb port without a password; if that fails it looks for a data.json file to give the parameters required for connecting to the database. So this error message means something is wrong with your mongod instance which following the instructions would be accepting connections without a password (on the production selectedpapers.net website mongodb is of course secured). Make sure that you can connect to your mongod by running the command shell:
/path/to/mongodb/bin/mongo
E.g. see the end of the mongodb install instructions: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/
Thanks. So now I'm guessing that there is a step missing in the instructions at https://github.com/cjlee112/spnet/blob/master/doc/developer/overview.rst#running-your-own-spnet-server. I'm supposed to launch mongo before executing web.py, is that right?
I suspect those instructions were written for an audience whose assumed knowledge of databases and webservers is more advanced than mine.
Actually, the first set of steps ("download MongoDB ... and get it running as follows...") should leave you with an instance of mongod running on your computer. Specifically the step:
bin/mongod --dbpath db
runs an instance of the mongo database. You just leave this running while you run your tests (I usually this in a "screen" session so I can detach and reattach at will)
Ack. I missed that. Thanks.
Closing.
I followed the instructions for setting up a local copy of SPN. However, I get this: