Replies: 1 comment 2 replies
-
Could it be that the SLURM job is running on a compute node that cannot connect to the database? However, when I run the script directly using 'python try.py', it is on the login node that can access the database (note that the database is on my local computer, and the remote HPC uses an SSH tunnel to connect to it). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This issue was relevant to #2502 (comment)
I am trying to let quacc be interacted with maongodb, but unsure if the following issue was caused by quacc or mongodb itself or just my incorrect workflow. If it's not appropriate to propose this issue here, please feel free to let me know about it.
The example code by Andrew in #2502 (comment) could carry out the VASP calculations by submitting it via slurm, but it raised errors when connecting to the database:
However, if I wrote a simple python script "try.py" and run it directly using "python try.py", it could write to the database.
try.py:
This simple script returns "Successfully connected to MongoDB!
Inserted document ID: 671446cc4c5ce16433exxxxxx
"
I crosschecked by mongosh and found it was indeed in the database:
Could an expert make any comments? Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions