Dear community!
I’ve sucessfully configured and installed Atomate. However, when I try to run a test calculation described here Installing atomate — atomate 1.0.3 documentation, in particular, when I run qlaunch rapidfire -m 1
, an error occurs printed to FW.job-.error file:
Traceback (most recent call last):
File "/home1/theory/fil/atomate/atomate_env/bin/rlaunch", line 8, in <module>
sys.exit(rlaunch())
File "/home1/theory/fil/atomate/atomate_env/lib/python3.9/site-packages/fireworks/scripts/rlaunch_run.py", line 160, in rlaunch
rapidfire(
File "/home1/theory/fil/atomate/atomate_env/lib/python3.9/site-packages/fireworks/core/rocket_launcher.py", line 106, in rapidfire
while (skip_check or launchpad.run_exists(fworker)) and time_ok():
File "/home1/theory/fil/atomate/atomate_env/lib/python3.9/site-packages/fireworks/core/launchpad.py", line 900, in run_exists
return bool(self._get_a_fw_to_run(query=q, checkout=False))
File "/home1/theory/fil/atomate/atomate_env/lib/python3.9/site-packages/fireworks/core/launchpad.py", line 1173, in _get_a_fw_to_run
m_fw = self.fireworks.find_one(m_query, {"fw_id": 1, "spec": 1}, sort=sortby)
File "/home1/theory/fil/atomate/atomate_env/lib/python3.9/site-packages/pymongo/collection.py", line 1459, in find_one
for result in cursor.limit(-1):
File "/home1/theory/fil/atomate/atomate_env/lib/python3.9/site-packages/pymongo/cursor.py", line 1248, in next
if len(self.__data) or self._refresh():
File "/home1/theory/fil/atomate/atomate_env/lib/python3.9/site-packages/pymongo/cursor.py", line 1139, in _refresh
self.__session = self.__collection.database.client._ensure_session()
File "/home1/theory/fil/atomate/atomate_env/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1740, in _ensure_session
return self.__start_session(True, causal_consistency=False)
File "/home1/theory/fil/atomate/atomate_env/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1685, in __start_session
self._topology._check_implicit_session_support()
File "/home1/theory/fil/atomate/atomate_env/lib/python3.9/site-packages/pymongo/topology.py", line 538, in _check_implicit_session_support
self._check_session_support()
File "/home1/theory/fil/atomate/atomate_env/lib/python3.9/site-packages/pymongo/topology.py", line 554, in _check_session_support
self._select_servers_loop(
File "/home1/theory/fil/atomate/atomate_env/lib/python3.9/site-packages/pymongo/topology.py", line 238, in _select_servers_loop
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused, Timeout: 30s, Topology Description: <TopologyDescription id: 63be813ab4bac8a04a1736e2, topology_type: Unknown, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:27017: [Errno 111] Connection refused')>]>
The status of the flow remains “ready”.
As I understand, there is a problem with connection to the Mongo database. However, I have configured everything regarding Mongo and the server indeed runs locally on the default 27017 port. Moreover, the test described on the above mentioned webpage (via x = VaspCalcDb.from_db_file(“db.json”) x.reset() ) also finishes successfully. Please advice me, what else can I check to understand the reason of the problem?