[Errno -2] Name or service not known

Hi Stephan,

I have a similar problem when I installed cryosparc. Do you have any suggestions about it?
"cryosparcm log command_core " output:

COMMAND CORE STARTED === 2022-08-03 08:57:12.115882 ==========================
*** BG WORKER START

  • Serving Flask app “command_core” (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: off
    [JSONRPC ERROR 2022-08-03 08:57:47.216214 at get_config_var ]

Traceback (most recent call last):
File “/data/soft/cryosparc2/cryosparc_master/cryosparc_command/command_core/init.py”, line 131, in wrapper
res = func(*args, **kwargs)
File “/data/soft/cryosparc2/cryosparc_master/cryosparc_command/command_core/init.py”, line 550, in get_config_var
res = mongo.db[colname].find_one({‘name’ : name})
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/collection.py”, line 1319, in find_one
for result in cursor.limit(-1):
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/cursor.py”, line 1207, in next
if len(self.__data) or self._refresh():
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/cursor.py”, line 1100, in _refresh
self.__session = self.__collection.database.client._ensure_session()
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/mongo_client.py”, line 1816, in _ensure_session
return self.__start_session(True, causal_consistency=False)
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/mongo_client.py”, line 1766, in __start_session
server_session = self._get_server_session()
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/mongo_client.py”, line 1802, in _get_server_session
return self._topology.get_server_session()
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/topology.py”, line 488, in get_server_session
None)
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/topology.py”, line 217, in _select_servers_loop
(self._error_message(selector), timeout, self.description))
pymongo.errors.ServerSelectionTimeoutError: t5820:39001: [Errno -2] Name or service not known, Timeout: 30s, Topology Description: <TopologyDescription id: 62e9c7e83e39add476287f36, topology_type: Single, servers: [<ServerDescription (‘t5820’, 39001) server_type: Unknown, rtt: None, error=AutoReconnect(‘t5820:39001: [Errno -2] Name or service not known’)>]>

**custom thread exception hook caught something
**** handle exception rc
Traceback (most recent call last):
File “/data/soft/cryosparc2/cryosparc_master/cryosparc_compute/jobs/runcommon.py”, line 1790, in run_with_except_hook
run_old(*args, **kw)
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/threading.py”, line 870, in run
self._target(*self._args, **self._kwargs)
File “/data/soft/cryosparc2/cryosparc_master/cryosparc_command/command_core/init.py”, line 208, in background_worker
last_audit_date = get_config_var(‘audit’, fail_notset=False, default={})
File “/data/soft/cryosparc2/cryosparc_master/cryosparc_command/command_core/init.py”, line 140, in wrapper
raise e
File “/data/soft/cryosparc2/cryosparc_master/cryosparc_command/command_core/init.py”, line 131, in wrapper
res = func(*args, **kwargs)
File “/data/soft/cryosparc2/cryosparc_master/cryosparc_command/command_core/init.py”, line 550, in get_config_var
res = mongo.db[colname].find_one({‘name’ : name})
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/collection.py”, line 1319, in find_one
for result in cursor.limit(-1):
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/cursor.py”, line 1207, in next
if len(self.__data) or self._refresh():
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/cursor.py”, line 1100, in _refresh
self.__session = self.__collection.database.client._ensure_session()
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/mongo_client.py”, line 1816, in _ensure_session
return self.__start_session(True, causal_consistency=False)
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/mongo_client.py”, line 1766, in __start_session
server_session = self._get_server_session()
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/mongo_client.py”, line 1802, in _get_server_session
return self._topology.get_server_session()
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/topology.py”, line 488, in get_server_session
None)
File “/data/soft/cryosparc2/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/site-packages/pymongo/topology.py”, line 217, in _select_servers_loop
(self._error_message(selector), timeout, self.description))
pymongo.errors.ServerSelectionTimeoutError: t5820:39001: [Errno -2] Name or service not known, Timeout: 30s, Topology Description: <TopologyDescription id: 62e9c7e83e39add476287f36, topology_type: Single, servers: [<ServerDescription (‘t5820’, 39001) server_type: Unknown, rtt: None, error=AutoReconnect(‘t5820:39001: [Errno -2] Name or service not known’)>]>

Welcome to the forum @Jerry_01.
Can the master hostname (variable CRYOSPARC_MASTER_HOSTNAME defined in /data/soft/cryosparc2/cryosparc_master/config.sh, presumably t5820 in your case) be “resolved”?
You may check with this command:
host t5820