Dear all,
I have tried to connect to a MongoDB database from an HPC cluster (M100 at Cineca). I have contacted the HPC help desk and we managed to whitelist the IP address of the database. I have managed to connect successfully to it once I was on the login node. However, when I try to launch a simulation on the compute node, I received the following error message
File "/m100/home/userexternal/ochehaim/miniconda3/envs/tribchem/lib/python3.7/site-packages/pymongo/topology.py", line 220, in _select_servers_loop
(self._error_message(selector), timeout, self.description))
pymongo.errors.ServerSelectionTimeoutError: No primary available for writes, Timeout: 30s, Topology Description: <TopologyDescription id: 63089acbe8c856497cd7b78c, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('cluster0-shard-00-00.pj6wi.mongodb.net', 27017) server_type: RSSecondary, rtt: 0.021975754328072073>, <ServerDescription ('cluster0-shard-00-01.pj6wi.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('cluster0-shard-00-01.pj6wi.mongodb.net:27017: [Errno 101] Network is unreachable')>, <ServerDescription ('cluster0-shard-00-02.pj6wi.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('cluster0-shard-00-02.pj6wi.mongodb.net:27017: [Errno 101] Network is unreachable')>]>
which seems like the database is unreachable (which is not the case, since the connection on the login node works fine). Is it possible that I need to tweak Fireworks in order to make it work on the compute node? If so, is there anything I can do?
Thanks.