Installation error (requests.exceptions.ConnectionError, pymongo.errors.ServerSelectionTimeoutError)

I’m trying to install in standalone mode with my own user account (ubuntu 18.04) but it fails.

>  Creating the initial cryoSPARC user...
> 
> Creating user kttn with email: <XXXXXXXX> password: kttnkttn
> *** client.py: command (http://xxxxx:39002/api) did not reply within timeout of 300 seconds, attempt 1 of 3
> *** client.py: command (http://xxxxx:39002/api) did not reply within timeout of 300 seconds, attempt 2 of 3
> *** client.py: command (http://xxxxx:39002/api) did not reply within timeout of 300 seconds, attempt 3 of 3
> Traceback (most recent call last):
>   File "/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/runpy.py", line 174, in _run_module_as_main
>     "__main__", fname, loader, pkg_name)
>   File "/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/runpy.py", line 72, in _run_code
>     exec code in run_globals
>   File "/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/cryosparc2_compute/client.py", line 82, in <module>
>     cli = CommandClient(host, int(port))
>   File "/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/cryosparc2_compute/client.py", line 33, in __init__
>     self._reload()
>   File "/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/cryosparc2_compute/client.py", line 61, in _reload
>     system = self._get_callable('system.describe')()
>   File "/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/cryosparc2_compute/client.py", line 49, in func
>     r = requests.post(self.url, data = json.dumps(data, cls=NumpyEncoder), headers = header, timeout=self.timeout)
>   File "/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/requests/api.py", line 116, in post
>     return request('post', url, data=data, json=json, **kwargs)
>   File "/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/requests/api.py", line 60, in request
>     return session.request(method=method, url=url, **kwargs)
>   File "/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
>     resp = self.send(prep, **send_kwargs)
>   File "/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
>     r = adapter.send(request, **kwargs)
>   File "/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
>     raise ConnectionError(e, request=request)
> requests.exceptions.ConnectionError: HTTPConnectionPool(host='xxxxx', port=39002): Max retries exceeded with url: /api (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fca6d43f790>: Failed to establish a new connection: [Errno 111] Connection refused',))

Then I stopped master process by

cryosparcm stop

And checked no related process running by

ps alx | grep supervisord

Then restart,

cryosparcm start

And got this error

Starting cryoSPARC System master process…
CryoSPARC is not already running.
database: ERROR (spawn error)
Traceback (most recent call last):
File “”, line 1, in
File “/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/mongo_client.py”, line 1149, in database_names
“listDatabases”)[“databases”]]
File “/net/fs09/homes/people/kttn/softwares/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 “/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/contextlib.py”, line 17, in enter
return self.gen.next()
File “/net/fs09/homes/people/kttn/softwares/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 “/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/contextlib.py”, line 17, in enter
return self.gen.next()
File “/net/fs09/homes/people/kttn/softwares/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 “/net/fs09/homes/people/kttn/softwares/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/topology.py”, line 214, in select_server
address))
File “/net/fs09/homes/people/kttn/softwares/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:39001: [Errno 111] Connection refused

I confirmed port 39000 ~ 39005 are not in use by

sudo netstat -tulpn

Hey @kttn,

Is it possible that the installation process didn’t go correctly? Can you force reinstall cryoSPARC after ensuring there are no zombie processes and try again, this time monitoring the installation script to see if there are any errors that show up.