-
Hi, I wanted to back up my AiiDA installation and I used Is there any possibility to unlock the profile? Thanks a lot in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Pinging @ramirezfranciscof, since I believe you worked on the |
Beta Was this translation helpful? Give feedback.
-
I checked the source code and a naive assumption is that it might be sufficient to delete the But, I would wait for your answer since I am not sure whether there could be other problems due to an interrupted |
Beta Was this translation helpful? Give feedback.
-
@sphuber Sorry for contacting you again but I further investigated the problem and I have some additional questions. After rerunning the I had some further looks into the source code and I think that the SQL database which keeps track of the pack indices is actually making problems as you assumed. I think the problem is not directly related to the index as this is determined based on the existing packs: https://github.com/aiidateam/disk-objectstore/blob/develop/disk_objectstore/container.py#L258-L283 This being said, I think it would be problematic to remove the pack files (no matter whether they are only packed or alreay repacked) as the loose files are already linked to a pack and I think it is not checked whether these packs do still exist: https://github.com/aiidateam/disk-objectstore/blob/develop/disk_objectstore/container.py#LL1334C1-L1351C60 In my current back-up, the packs already exist but as discussed, all loose files do still exist. My idea would be the following: Remove all packs and also delete the If you are busy at the moment, please take your time. But I wanted to discuss this before doing such a step as it is not easy to get the full overview of all the processes. |
Beta Was this translation helpful? Give feedback.
Correct, the locking is just done based on this lock file. So once you remove that, you can access the profile again. Note, that you should only do this if you are very sure that the process that locked it is no longer active and the lock file was not cleaned due to an improper shutdown, as in your case.