Skip to content

pymongo.errors.ServerSelectionTimeoutError: server.com:27017: timed out #10

@longthanhta

Description

@longthanhta

Hi @connorcoley , I got this error when trying to run the trained model in data/preprocess_candidate_edits_compact.py

Using TensorFlow backend.
Traceback (most recent call last):
  File "scripts/lowe_interactive_predict.py", line 208, in <module>
    Transformer.load(templates, mincount = int(args.mincount), get_retro = False, get_synth = True, lowe = True)
  File "/home/rong/Desktop/retro/Retrosim/ochem_predict_nn/main/transformer.py", line 33, in load
    if mincount and 'count' in collection.find_one(): 
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/collection.py", line 1273, in find_one
    for result in cursor.limit(-1):
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/cursor.py", line 1156, in next
    if len(self.__data) or self._refresh():
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/cursor.py", line 1050, in _refresh
    self.__session = self.__collection.database.client._ensure_session()
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1807, in _ensure_session
    return self.__start_session(True, causal_consistency=False)
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1760, in __start_session
    server_session = self._get_server_session()
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1793, in _get_server_session
    return self._topology.get_server_session()
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/topology.py", line 477, in get_server_session
    None)
  File "/home/rong/anaconda3/envs/py2/lib/python2.7/site-packages/pymongo/topology.py", line 205, in _select_servers_loop
    self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: server.com:27017: timed out

Please help me solve this problem, thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions