kuittiskanneri icon indicating copy to clipboard operation
kuittiskanneri copied to clipboard

Mongo uri problem

Open Master244 opened this issue 8 years ago • 1 comments

Hi! I dont know if you're example is still working, i'm trying to run it now. Problem is I cannot seem to get the right MONGO_URI. Any suggestions?

app_1 | Traceback (most recent call last): app_1 | File "run.py", line 1, in app_1 | from app import app app_1 | File "/code/app/init.py", line 15, in app_1 | mongo = PyMongo(app) app_1 | File "/usr/local/lib/python2.7/site-packages/flask_pymongo/init.py", line 98, in init app_1 | self.init_app(app, config_prefix) app_1 | File "/usr/local/lib/python2.7/site-packages/flask_pymongo/init.py", line 230, in init_app app_1 | cx = connection_cls(_args, *_kwargs) app_1 | File "/usr/local/lib/python2.7/site-packages/pymongo/mongo_client.py", line 369, in init app_1 | raise ConnectionFailure(str(e)) app_1 | pymongo.errors.ConnectionFailure: [Errno -2] Name or service not known

while i did create the secrets.py

Any suggestions much appreciated!

Master244 avatar Sep 10 '16 17:09 Master244

Hi, I don't have time to debug this software currently, sorry.

Please double check that you have the MongoDB running properly and are able to get a proper Mongo URI for it. I hope you get it working, and please post if you are able to workaround the problem yourself.

jasalt avatar Sep 12 '16 08:09 jasalt