Problems during installation on workstation; [database spawn ERROR]



Hi developers!

I’m trying to install cryoSparc as standalone; everything goes smooth at first but I’m stacked when the master process starts to complete the standalone installer.

I paste below the error point… any ideas?


  The installer will now download, install and connect the worker
  package on this machine. The worker package will allow cryoSPARC
  to run compute jobs.


 Starting cryoSPARC...

Starting cryoSPARC System master process..
CryoSPARC is not already running.
database: ERROR (spawn error)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/casdanie/tools/cryosparc/s5/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/", line 1149, in database_names
  File "/home/casdanie/tools/cryosparc/s5/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/", line 491, in command
    with client._socket_for_reads(read_preference) as (sock_info, slave_ok):
  File "/home/casdanie/tools/cryosparc/s5/cryosparc2_master/deps/anaconda/lib/python2.7/", line 17, in __enter__
  File "/home/casdanie/tools/cryosparc/s5/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/", line 859, in _socket_for_reads
    with self._get_socket(read_preference) as sock_info:
  File "/home/casdanie/tools/cryosparc/s5/cryosparc2_master/deps/anaconda/lib/python2.7/", line 17, in __enter__
  File "/home/casdanie/tools/cryosparc/s5/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/", line 823, in _get_socket
    server = self._get_topology().select_server(selector)
  File "/home/casdanie/tools/cryosparc/s5/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/", line 214, in select_server
  File "/home/casdanie/tools/cryosparc/s5/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/", line 189, in select_servers
pymongo.errors.ServerSelectionTimeoutError: localhost:39001: [Errno 111] Connection refused
~/.bashrc has been executed


Hi @Daniel_Castano,

Any chance you’re running on CentOS? You need to ensure ports 39000 to 39005 are not blocked by the firewall. Please refer to this:

- Suhail


Hi Suhail,

Thanks! No, my setting is an Ubuntu 16.04…
Actually, if I run
netstat -an | grep 39000 | grep -i listen

I get nothing. Any advice on how to proceed from here?


Hi Daniel,

Hmm, interesting. Can you try running cryosparcm status and pasting the output? I’d also recommend cryosparcm restart to stop and start the instance - sometimes that solves the problem.

- Suhail


Hi Suhail,

thanks for your answer… found a weird effect. cryosparc reports that there is a missing folder:

>[0]>  bin/cryosparcm status
>     bin/cryosparcm: line 25: cd: /home/casdanie/tools/cryosparc/s5/cryosparc2_master/bin
>     /home/casdanie/tools/cryosparc/s5/cryosparc2_master/bin/../: No such file or directory

… but the folder is actually there:[1]> ls /home/casdanie/tools/cryosparc/s5/cryosparc2_master/bin/…/
bin cryosparc2_webapp deps run deps_bundle
cryosparc2_command deps_bundle_hashes supervisord.conf
cryosparc2_compute deps_hashes version

Does it mean that I cannot use the “cryosparcm” command directly providing the path from a higher directory (i.e., from cryosparc2_master writing “bin/cryosparcm XXX”)? Is it necessary to explicitely include the “bin” in the PATH?

In any case, after including the bin path, restarting with “cryosparcm restart”, I got the report that I paste below[0]>  cryosparcm status
CryoSPARC System master node installed at
Current cryoSPARC version: v2.9.0

cryosparcm process status:

command_core                     STOPPED   Jul 15 09:43 AM
command_proxy                    STOPPED   Jul 15 09:43 AM
command_vis                      STOPPED   Jul 15 09:43 AM
database                         STOPPED   Jul 15 09:43 AM
watchdog_dev                     STOPPED   Not started
webapp                           STOPPED   Jul 15 09:43 AM
webapp_dev                       STOPPED   Not started


global config variables:

export CRYOSPARC_DB_PATH="/home/casdanie/tools/cryosparc/s5/cryosparc2_database"


Well… I keep trying to install cryosparc. The error I land on most frequently is the one I paste here:


 In order to run processing jobs, you will need to connect this
 worker to a cryoSPARC master.



 Connecting the cryoSPARC worker to the master...

bin/cryosparcw: line 30: cd: /home/casdanie/tools/cryosparc/s6/cryosparc2_worker/bin
/home/casdanie/tools/cryosparc/s6/cryosparc2_worker/bin/../: No such file or directory
~/.bashrc has been executed[0]> ls /home/casdanie/tools/cryosparc/s6/cryosparc2_worker/bin/../
bin		       cryosparc2_compute  deps_bundle_hashes  version  deps		   deps_hashes	       deps_bundle[0]> 

I cannot interpret the reported error, as the offending path is clearly in the file system.
In any case; is there a way that I can complete the connection of the worker to the master manually? What I mean is that this problem with the folders uncorrectly seen as missing by cryosparc persists when trying to use “cryosparcw connect”[1]> bin/cryosparcw connect --worker bioem-gpu03 --master bioem-gpu03 --ssdpath /local0/tmp/cryosparc/scratch
bin/cryosparcw: line 30: cd: /home/casdanie/tools/cryosparc/s6/cryosparc2_worker/bin
/home/casdanie/tools/cryosparc/s6/cryosparc2_worker/bin/../: No such file or directory[1]> ls /home/casdanie/tools/cryosparc/s6/cryosparc2_worker/bin/../
bin		       cryosparc2_compute  deps_bundle_hashes  version  deps		   deps_hashes	       deps_bundle


Hi @Daniel_Castano,

Are you using bash? If possible, can you switch to that shell and then run the script?

- Suhail


Yep… I always use bash:[0]> echo $0