libAtoms / abcd

1 stars 4 forks source link

overzealous success message #51

Closed gabor1 closed 4 years ago

gabor1 commented 4 years ago

the "success" was printed a bit early...


Successfully connected to the database!
Traceback (most recent call last):
  File "/usr/local/bin/abcd", line 11, in <module>
    load_entry_point('abcd==0.4', 'console_scripts', 'abcd')()
  File "/usr/local/lib/python3.5/dist-packages/abcd-0.4-py3.5.egg/abcd/frontends/shell/__init__.py", line 17, in cli
  File "/usr/local/lib/python3.5/dist-packages/abcd-0.4-py3.5.egg/abcd/frontends/shell/__init__.py", line 102, in __call__
  File "/usr/local/lib/python3.5/dist-packages/abcd-0.4-py3.5.egg/abcd/frontends/shell/__init__.py", line 166, in login
  File "/usr/local/lib/python3.5/dist-packages/abcd-0.4-py3.5.egg/abcd/backends/atoms_mongoengine.py", line 412, in info
  File "/usr/local/lib/python3.5/dist-packages/pymongo-3.8.0-py3.5-linux-x86_64.egg/pymongo/mongo_client.py", line 841, in address
    return self._server_property('address')
  File "/usr/local/lib/python3.5/dist-packages/pymongo-3.8.0-py3.5-linux-x86_64.egg/pymongo/mongo_client.py", line 722, in _server_property
    writable_server_selector)
  File "/usr/local/lib/python3.5/dist-packages/pymongo-3.8.0-py3.5-linux-x86_64.egg/pymongo/topology.py", line 226, in select_server
    address))
  File "/usr/local/lib/python3.5/dist-packages/pymongo-3.8.0-py3.5-linux-x86_64.egg/pymongo/topology.py", line 184, in select_servers
    selector, server_timeout, address)
  File "/usr/local/lib/python3.5/dist-packages/pymongo-3.8.0-py3.5-linux-x86_64.egg/pymongo/topology.py", line 200, in _select_servers_loop
    self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused
docker:~$ ```
fekad commented 4 years ago

Indeed it is a little bit confusing.