pymongo.errors.ServerSelectionTimeoutError: localhost:38001: [Errno 111] Connection refused

closed

#1

I suddenly encountered this error with starting cryosparc, could someone help me?

Starting cryoSPARC System master process…
CryoSPARC is not already running.
database: started
Traceback (most recent call last):
File “”, line 1, in
File “/data/CRYOSPARC/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/mongo_client.py”, line 1149, in database_names
“listDatabases”)[“databases”]]
File “/data/CRYOSPARC/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/database.py”, line 491, in command
with client._socket_for_reads(read_preference) as (sock_info, slave_ok):
File “/data/CRYOSPARC/cryosparc2_master/deps/anaconda/lib/python2.7/contextlib.py”, line 17, in enter
return self.gen.next()
File “/data/CRYOSPARC/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/mongo_client.py”, line 859, in _socket_for_reads
with self._get_socket(read_preference) as sock_info:
File “/data/CRYOSPARC/cryosparc2_master/deps/anaconda/lib/python2.7/contextlib.py”, line 17, in enter
return self.gen.next()
File “/data/CRYOSPARC/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/mongo_client.py”, line 823, in _get_socket
server = self._get_topology().select_server(selector)
File “/data/CRYOSPARC/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/topology.py”, line 214, in select_server
address))
File “/data/CRYOSPARC/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/topology.py”, line 189, in select_servers
self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: localhost:38001: [Errno 111] Connection refused


#2

Hi @Kellie,

Did you try restarting again? Also, was cryoSPARC running before this incident?


#3

Hi @sarulthasan,
Yes it was running, I was ssh’ing in from other location so there is a chance there was a mishap separate from me.
I tried all that I could think of to correct the error (stopping, checking tmp files/processes, etc…), I eventually gave up and reinstalled using a different port.

Thanks!
Kellie