Open unkcpz opened 4 months ago
Hi @sphuber, I try to implement a flag to allow disable the storage validation check in "File "/home/jyu/project/sssp-project/aiida-core/src/aiida/storage/psql_dos/backend.py", line 140" where the issue raised. But then I need to change all __init__
method of backends, which is not idea I assume.
Can you give a suggestion which is best way to fix it? I comment out the validate_storage
and it back to the first error I have ask me to input password but not actually wait me to do so.
Yeah that is a tricky one. The design intentionally only allows a StorageBackend
implementation to be instantiated if the storage is valid. I am not sure if we should start building in exceptions or workarounds to this principle.
I think we should leave that problem for now and simply change the deletion order of object-store and PSQL database. The former is very unlikely to fail compared to the latter. So if the former succeeds, we can be relatively sure that the object store deletion will also work (since it is just deleting a folder) and so the profile storage deletion should be "pseudo-atomic".
So I would for now just change that order and manually restore the container in your storage so the validation passes. You can then try to figure out why the PSQL connection fails.
aiida-core==2.6.1
I got following error when I try to delete a profile, not sure what happened. Seems it ask me for the password to DB but I got no chance to input the password.
When I run again, it failed with:
Seems DOS is deleted already but not DB so get into a break edge condition.