When I try to run cryosparcm start, it failed at configuring database. Here is the following error code when I ran crysoarcm restart:
cryosparcm restart
CryoSPARC is running.
Stopping cryoSPARC
command_core: stopped
database: stopped
Shut down
Starting cryoSPARC System master process..
CryoSPARC is not already running.
configuring database
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 "<string>", line 1, in <module>
File "/home/cryosparc_user/software/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 268, in check_mongo
admin_db = try_get_pymongo_admin_db(mongo_client)
File "/home/cryosparc_user/software/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 249, in try_get_pymongo_admin_db
admin_db.command(({'serverStatus': 1}))
File "/home/cryosparc_user/software/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/cryosparc_user/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/home/cryosparc_user/software/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/cryosparc_user/software/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/cryosparc_user/software/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/cryosparc_user/software/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/cryosparc_user/software/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: linda:39001: [Errno -2] Name or service not known, Timeout: 20.0s, Topology Description: <TopologyDescription id: 6491d8bee03670373a0fc27c, topology_type: Unknown, servers: [<ServerDescription ('linda', 39001) server_type: Unknown, rtt: None, error=AutoReconnect('linda:<port_number>: [Errno -2] Name or service not known')>]>
[2023-06-20T09:51:16-07:00] Error checking database. Most recent database log lines:
2023-06-20T09:50:04.542-0700 I REPL [replexec-0] Starting replication reporter thread
2023-06-20T09:50:04.543-0700 I REPL [rsSync] transition to SECONDARY from RECOVERING
2023-06-20T09:50:04.543-0700 I REPL [rsSync] conducting a dry run election to see if we could be elected. current term: 34
2023-06-20T09:50:04.543-0700 I REPL [replexec-0] dry election run succeeded, running for election in term 35
2023-06-20T09:50:04.547-0700 I REPL [replexec-0] election succeeded, assuming primary role in term 35
2023-06-20T09:50:04.547-0700 I REPL [replexec-0] transition to PRIMARY from SECONDARY
2023-06-20T09:50:04.547-0700 I REPL [replexec-0] Resetting sync source to empty, which was :27017
2023-06-20T09:50:04.547-0700 I REPL [replexec-0] Entering primary catch-up mode.
2023-06-20T09:50:04.547-0700 I REPL [replexec-0] Exited primary catch-up mode.
2023-06-20T09:50:06.544-0700 I REPL [rsSync] transition to primary complete; database writes are now permitted
I also checked with crysparcm status and gave the following:
cryosparcm status
----------------------------------------------------------------------------'
CryoSPARC System master node installed at
/home/cryosparc_user/software/cryosparc/cryosparc_master
Current cryoSPARC version: v4.2.1
----------------------------------------------------------------------------'
CryoSPARC process status:
app STOPPED Not started
app_api STOPPED Not started
app_api_dev STOPPED Not started
app_legacy STOPPED Not started
app_legacy_dev STOPPED Not started
command_core STOPPED Not started
command_rtp STOPPED Not started
command_vis STOPPED Not started
database RUNNING pid 1090680, uptime 0:10:23
----------------------------------------------------------------------------
*** CommandClient: (http://LINDA:<PORT_NUMBER>/api) URL Error [Errno 111] Connection refused
An error ocurred while checking license status
Could not get license verification status. Are all CryoSPARC processes RUNNING?