Tropical storm Debby caused a power loss in our building while our workstation was running cryosparc (standalone v4.3.1) and now we can’t get it to start. Other lab adjacent to us running cryosparc on a similar standalone setup deleted a .sock file from the /tmp/ folder and that fixed the issue for them, but did not work for us. The traceback is as follows:
(base) neher-lab@Diana:~$ cryosparcm start
Starting cryoSPARC System master process..
CryoSPARC is not already running.
configuring database
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)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/neher-lab/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 48, in configure_mongo
initialize_replica_set()
File "/home/neher-lab/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 87, in initialize_replica_set
admin_db = try_get_pymongo_db(mongo_client)
File "/home/neher-lab/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 250, in try_get_pymongo_db
admin_db.command(({'serverStatus': 1}))
File "/home/neher-lab/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/neher-lab/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/home/neher-lab/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/neher-lab/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/neher-lab/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/neher-lab/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/neher-lab/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: localhost:39001: [Errno 111] Connection refused, Timeout: 20.0s, Topology Description: <TopologyDescription id: 66b5071cad207245265e4d74, topology_type: Single, servers: [<ServerDescription ('localhost', 39001) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:39001: [Errno 111] Connection refused')>]>
[2024-08-08T13:58:59-04:00] Error configuring database. Most recent database log lines:
2024-08-08T13:57:46.238-0400 I STORAGE [initandlisten] Placing a marker at optime Aug 7 16:37:51:8
2024-08-08T13:57:46.238-0400 I STORAGE [initandlisten] Placing a marker at optime Aug 7 19:48:01:12
2024-08-08T13:57:46.238-0400 I STORAGE [initandlisten] Placing a marker at optime Aug 7 21:26:22:1
2024-08-08T13:57:46.238-0400 I STORAGE [initandlisten] Placing a marker at optime Aug 7 23:04:33:11
2024-08-08T13:57:46.238-0400 I STORAGE [initandlisten] Placing a marker at optime Aug 8 02:14:58:1
2024-08-08T13:57:46.238-0400 I STORAGE [initandlisten] Placing a marker at optime Aug 8 03:53:03:3
2024-08-08T13:57:46.238-0400 I STORAGE [initandlisten] WiredTiger record store oplog processing took 11ms
Version: Unable to find metadata for table:collection-0-7580726846594704023
2024-08-08T13:57:46.239-0400 F - [initandlisten] Fatal Assertion 34433 at src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp 644
2024-08-08T13:57:46.239-0400 F - [initandlisten] \n\n***aborting after fassert() failure\n\n
(base) neher-lab@Diana:~$ cryosparcm configuredb
configuring database
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)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/neher-lab/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 48, in configure_mongo
initialize_replica_set()
File "/home/neher-lab/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 87, in initialize_replica_set
admin_db = try_get_pymongo_db(mongo_client)
File "/home/neher-lab/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 250, in try_get_pymongo_db
admin_db.command(({'serverStatus': 1}))
File "/home/neher-lab/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/neher-lab/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/home/neher-lab/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/neher-lab/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/neher-lab/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/neher-lab/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/neher-lab/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: localhost:39001: [Errno 111] Connection refused, Timeout: 20.0s, Topology Description: <TopologyDescription id: 66b5078d5f38774def660696, topology_type: Single, servers: [<ServerDescription ('localhost', 39001) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:39001: [Errno 111] Connection refused')>]>
[2024-08-08T14:00:52-04:00] Error configuring database. Most recent database log lines:
2024-08-08T13:59:38.891-0400 I STORAGE [initandlisten] Placing a marker at optime Aug 7 16:37:51:8
2024-08-08T13:59:38.891-0400 I STORAGE [initandlisten] Placing a marker at optime Aug 7 19:48:01:12
2024-08-08T13:59:38.891-0400 I STORAGE [initandlisten] Placing a marker at optime Aug 7 21:26:22:1
2024-08-08T13:59:38.891-0400 I STORAGE [initandlisten] Placing a marker at optime Aug 7 23:04:33:11
2024-08-08T13:59:38.891-0400 I STORAGE [initandlisten] Placing a marker at optime Aug 8 02:14:58:1
2024-08-08T13:59:38.891-0400 I STORAGE [initandlisten] Placing a marker at optime Aug 8 03:53:03:3
2024-08-08T13:59:38.891-0400 I STORAGE [initandlisten] WiredTiger record store oplog processing took 2ms
Version: Unable to find metadata for table:collection-0-7580726846594704023
2024-08-08T13:59:38.891-0400 F - [initandlisten] Fatal Assertion 34433 at src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp 644
2024-08-08T13:59:38.891-0400 F - [initandlisten] \n\n***aborting after fassert() failure\n\n
Trying to follow advice from others who had similar issues, I tried running the command cryosparcm configure db and that did not seem to change anything. I also have the following info in case it’s relevant:
(base) neher-lab@Diana:~$ cryosparcm status
----------------------------------------------------------------------------
CryoSPARC System master node installed at
/home/neher-lab/cryosparc/cryosparc_master
Current cryoSPARC version: v4.3.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 STOPPED Not started
----------------------------------------------------------------------------
*** CommandClient: (http://Diana:39002/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?
(base) neher-lab@Diana:~$ grep HOSTNAME /home/neher-lab/cryosparc/cryosparc_master/config.sh
export CRYOSPARC_MASTER_HOSTNAME="Diana"
(base) neher-lab@Diana:~$ hostname -f
Diana
(base) neher-lab@Diana:~$ host $(hostname -f)
Diana has address 127.0.1.1
(base) neher-lab@Diana:~$ grep ^127 /etc/hosts
127.0.0.1 localhost
127.0.1.1 Diana
(base) neher-lab@Diana:~$ curl pop-os.sickkids.ca:39001
curl: (6) Could not resolve host: pop-os.sickkids.ca
(base) neher-lab@Diana:~$ curl 127.0.0.1:39001
curl: (7) Failed to connect to 127.0.0.1 port 39001 after 0 ms: Couldn't connect to server
(base) neher-lab@Diana:~$ ps -eo user,pid,ppid,start,command | grep -e cryosparc_ -e mongo
neher-l+ 4981 1651 13:57:44 python /home/neher-lab/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/bin/supervisord -c /home/neher-lab/cryosparc/cryosparc_master/supervisord.conf
neher-l+ 6221 3770 14:06:21 grep --color=auto -e cryosparc_ -e mongo
(base) neher-lab@Diana:~$ ls -l /tmp/cryosparc*sock /tmp/mongo*sock
srwx------ 1 neher-lab neher-lab 0 Aug 8 13:57 /tmp/cryosparc-supervisor-8cb819b607e863420adac1a8efe81e55.sock
srwx------ 1 neher-lab neher-lab 0 Aug 8 13:59 /tmp/mongodb-39001.sock