Hi,
I got the following error when I tried to move the CryoSPARC DataBase to a new machine:
$ cryosparcm restart
Starting cryoSPARC System master process…
CryoSPARC is not already running.
configuring database
Traceback (most recent call last):
File “”, line 1, in
File “/data/SOFTWARE/CryoSPARC00/cryosparc_master/cryosparc_compute/database_management.py”, line 49, in configure_mongo
initialize_replica_set()
File “/data/SOFTWARE/CryoSPARC00/cryosparc_master/cryosparc_compute/database_management.py”, line 89, in initialize_replica_set
admin_db.command(‘replSetGetStatus’) # check replset
File “/data/SOFTWARE/CryoSPARC00/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/database.py”, line 828, in command
return self._command(
File “/data/SOFTWARE/CryoSPARC00/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/database.py”, line 703, in _command
return sock_info.command(
File “/data/SOFTWARE/CryoSPARC00/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/pool.py”, line 740, in command
return command(
File “/data/SOFTWARE/CryoSPARC00/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/network.py”, line 177, in command
helpers._check_command_response(
File “/data/SOFTWARE/CryoSPARC00/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/helpers.py”, line 180, in _check_command_response
raise OperationFailure(errmsg, code, response, max_wire_version)
pymongo.errors.OperationFailure: Our replica set config is invalid or we are not a member of it, full error: {‘state’: 10, ‘stateStr’: ‘REMOVED’, ‘uptime’: 3, ‘optime’: {‘ts’: Timestamp(1706459868, 34), ‘t’: 188}, ‘optimeDate’: datetime.datetime(2024, 1, 28, 16, 37, 48), ‘lastHeartbeatMessage’: ‘’, ‘syncingTo’: ‘’, ‘syncSourceHost’: ‘’, ‘syncSourceId’: -1, ‘infoMessage’: ‘’, ‘ok’: 0.0, ‘errmsg’: ‘Our replica set config is invalid or we are not a member of it’, ‘code’: 93, ‘codeName’: ‘InvalidReplicaSetConfig’, ‘operationTime’: Timestamp(1706459868, 34), ‘$clusterTime’: {‘clusterTime’: Timestamp(1706459868, 34), ‘signature’: {‘hash’: b’\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00’, ‘keyId’: 0}}}
[2024-01-29T01:14:29+08:00] Error configuring database. Most recent database log lines:
2024-01-29T01:14:29.193+0800 I CONTROL [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends
2024-01-29T01:14:29.193+0800 I NETWORK [signalProcessingThread] shutdown: going to close listening sockets…
2024-01-29T01:14:29.193+0800 I NETWORK [signalProcessingThread] removing socket file: /tmp/mongodb-49001.sock
2024-01-29T01:14:29.194+0800 I REPL [signalProcessingThread] shutting down replication subsystems
2024-01-29T01:14:29.194+0800 I FTDC [signalProcessingThread] Shutting down full-time diagnostic data capture
2024-01-29T01:14:29.200+0800 I STORAGE [WTOplogJournalThread] oplog journal thread loop shutting down
2024-01-29T01:14:29.200+0800 I STORAGE [signalProcessingThread] WiredTigerKVEngine shutting down
2024-01-29T01:14:29.253+0800 I STORAGE [signalProcessingThread] shutdown: removing fs lock…
2024-01-29T01:14:29.253+0800 I CONTROL [signalProcessingThread] now exiting
2024-01-29T01:14:29.253+0800 I CONTROL [signalProcessingThread] shutting down with code:0
More information about the steps:
- On the old machine, I stopped CryoSPARC v4.2.1 by “cryosparcm stop”
- I copied the DataBase to the new mahine using “rsync -r --links /Old…/CryoSPARC00_database/* /New…/CryoSPARC00_DataBase”
- I installed CryoSPARC v4.4.1 on the new machine using the same LICENSE_ID as that used on the old machine, and told the software the location of the database (copied from the old machine)
- when I ran “cryosparcm start” on the new machine I got the above errors.
This seems to be a problem related to mongodb replica set, but I do not know how to fix it.
Any suggestions?
Thanks a lot!