Node is not in primary or recovering state

Hi @shockacone, assuming you are running the latest cryoSPARC v3.2, I’d suggest installing the latest patch. The patch includes commands cryosparcm checkdb and cryosparcm fixdbport to automatically reconfigure the base port. However the cryosparcm patch command requires a running command server, which you don’t have yet.

Important! If you’re not running v3.2.0 do not install these patches. Check the contents of cryosparc_master/version to verify. If the contents are not v3.2.0, re-install first

Here’s how to download and install the patch manually from the command line (substitute /path/to/cryosparc_master and /path/to/cryosparc_worker to with the locations on disk where you installed the cryosparc_master and cryosparc_worker components):

# Stop cryoSPARC
cryosparcm stop

# Manually install the master patch component
cd /path/to/cryosparc_master
curl -L "https://get.cryosparc.com/patch_get/v3.2.0+211012/master" -o cryosparc_master_patch.tar.gz
tar -xzf cryosparc_master_patch.tar.gz --overwrite --strip-components=1 --directory ./

Then do this for each machine that hosts the cryosparc_worker component. If the workers do not have internet access, you may also run the curl command on a machine that does and then use scp to copy the resulting cryosparc_worker_patch.tar.gz into the cryosparc_worker directory on each machine.

# Manually install the worker patch component
cd /path/to/cryosparc_worker
curl -L "https://get.cryosparc.com/patch_get/v3.2.0+211012/worker" -o cryosparc_worker_patch.tar.gz
./bin/cryosparcw patch

Start cryoSPARC’s database component:

cryosparcm start database

Then run the database fix:

cryosparcm fixdbport

And finally restart cryoSPARC and check that everything is working as expected:

cryosparcm restart
cryosparcm checkdb

If you’re still getting an error when cryoSPARC starts up, send me the output of these two commands:

cryosparcm log database | tail -n 100
cryosparcm log command_core | tail -n 100

Let me know how that goes.

1 Like