Hello,
I have been using cryosparc on a standalone workstation for some time. For an unrelated issue, I had to restart the computer. Upon running ‘cryosparc start’ I get an error that the system could not get database status (after 3 attempts) and that I should run ‘cryosparcm configuredb’. I have tried, after stopping cryosparc, and it seems to run to completion saying ‘configuration complete’ but I still have the same error when I run ‘cryosparcm start’. The full traceback is below. I tried rebooting and a fresh install but that did not solve the problem. Any advice would be welcome.
Thanks,
Eric Gibbs
From cryosparcm start:
Starting cryoSPARC System master process…
CryoSPARC is not already running.
configuring database
** creating cryosparc_admin**
** cryosparc_admin created**
** creating cryosparc_user**
** cryosparc_user created**
** configuration complete**
database: started
Warning: Could not get database status (attempt 1/3)
Warning: Could not get database status (attempt 2/3)
Warning: Could not get database status (attempt 3/3)
checkdb error - could not get replica set status; please reconfigure the database with cryosparcm configuredb
Traceback (most recent call last):
** File “”, line 1, in **
** File “/home/beta/Applications/cryosparc/cryosparc_master/cryosparc_compute/database_management.py”, line 268, in check_mongo**
** admin_db = try_get_pymongo_admin_db(mongo_client)**
** File “/home/beta/Applications/cryosparc/cryosparc_master/cryosparc_compute/database_management.py”, line 249, in try_get_pymongo_admin_db**
** admin_db.command(({‘serverStatus’: 1}))**
** File “/home/beta/Applications/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/database.py”, line 827, in command**
** with self.__client._socket_for_reads(read_preference, session) as (sock_info, secondary_ok):**
** File “/home/beta/Applications/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/contextlib.py”, line 113, in enter**
** return next(self.gen)**
** File “/home/beta/Applications/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/mongo_client.py”, line 1478, in _socket_for_reads**
** server = self._select_server(read_preference, session)**
** File “/home/beta/Applications/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/mongo_client.py”, line 1436, in _select_server**
** server = topology.select_server(server_selector)**
** File “/home/beta/Applications/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/topology.py”, line 250, in select_server**
** return random.choice(self.select_servers(selector, server_selection_timeout, address))**
** File “/home/beta/Applications/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/topology.py”, line 211, in select_servers**
** server_descriptions = self._select_servers_loop(selector, server_timeout, address)**
** File “/home/beta/Applications/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/topology.py”, line 226, in _select_servers_loop**
** raise ServerSelectionTimeoutError(**
pymongo.errors.ServerSelectionTimeoutError: beta.ugen.cwru.edu:47001: timed out, Timeout: 20.0s, Topology Description: <TopologyDescription id: 6425dd1f72e51a9c19cbdc55, topology_type: Unknown, servers: [<ServerDescription (‘beta.ugen.cwru.edu’, 47001) server_type: Unknown, rtt: None, error=NetworkTimeout(‘beta.ugen.cwru.edu:47001: timed out’)>]>
[2023-03-30T15:05:11-0400] Error checking database. Most recent database log lines:
2023-03-30T15:03:58.033-0400 I REPL [replexec-0] Starting replication reporter thread
2023-03-30T15:03:58.034-0400 I REPL [rsSync] transition to SECONDARY from RECOVERING
2023-03-30T15:03:58.034-0400 I REPL [rsSync] conducting a dry run election to see if we could be elected. current term: 1
2023-03-30T15:03:58.034-0400 I REPL [replexec-0] dry election run succeeded, running for election in term 2
2023-03-30T15:03:58.045-0400 I REPL [replexec-0] election succeeded, assuming primary role in term 2
2023-03-30T15:03:58.045-0400 I REPL [replexec-0] transition to PRIMARY from SECONDARY
2023-03-30T15:03:58.045-0400 I REPL [replexec-0] Resetting sync source to empty, which was :27017
2023-03-30T15:03:58.045-0400 I REPL [replexec-0] Entering primary catch-up mode.
2023-03-30T15:03:58.045-0400 I REPL [replexec-0] Exited primary catch-up mode.
2023-03-30T15:04:00.037-0400 I REPL [rsSync] transition to primary complete; database writes are now permitted