-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trying to delete profile: 17 other sessions using the database #3291
Comments
Depends. If you have no other instances or profiles connecting to the same database and active then in principle this shouldn't happen. Assuming there are no other applications outside AiiDA accessing this database, such as open psql sessions etc. Did you do things in the shell or run processes that causes exceptions before shutting down the daemon? I.e. might it have been possible that during some operations the database connections became orphaned and did not shutdown correctly? |
Hm... on second thought it is not entirely impossible that the REST API was still running...
Well... that is possible of course - are you saying that whenever there are exceptions people might end up with this situation? How about cases of a work station that may run for months without being restarted? |
No, I was just spitballing here. I have never encountered this problem, nor have we heard of it from users. In the case where you really did not have any other applications running, I was already hypothesizing if this potentially might be an explication, but I would be very surprised. |
Coming back to this issue. In think your current investigation on the REST API actually showed that it can open many connections and keep them open correct? Think this can be closed therefore. Feel free to reopen if you disagree. |
Yes, just linking the corresponding issue for reference: #4374 |
This is just something I encountered on the tutorial VM.
I was trying to delete an AiiDA profile and got this message:
Is this expected?
Here are these sessions:
After
sudo service postgresql restart
I was able to delete the profile.Would there have been another way?
@giovannipizzi @sphuber
The text was updated successfully, but these errors were encountered: