-
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
Cannot migrate due to container
folder being present
#4897
Comments
Hmm, that is pretty bad if this fails again, and especially that we are not catching this in our tests. Just to make sure, if you delete the folder
I removed this intentionally, because now the |
I think perhaps the |
Yes. I also updated the OP to reflect this.
That's what I thought. |
Is there a reason why the repository should be initialised by default? Can this not simply be done when migrating/setting up a profile? |
Yes, I think this is at the root of the problem. Will make a PR, but I think we really need to come up with a test to catch this, but I don't have ideas how yet. |
I suppose we'd add tests at the aiida-core/tests/manage/configuration/test_profile.py Lines 21 to 22 in fa8d05f
After the profile has been set up with the constructor here, the repository should not have been initialised. So then you can check that the |
That would only test that |
Can we have a test similar to import/export, but instead of importing from a static .aiida file, we put in the DB (and file repo) the content of (small) DB and repo dumps, created with AiiDA 1.6.x (and stored in the same way of the .aiida files). Then, we try to migrate and check that afterwards everything works (container is there, we can still get the content of a file of a node) |
Describe the bug
The issue of not being able to migrate an AiiDA database that should've been fixed in #4889 might've been undone by #4891.
I keep getting the following error (even after deleting the
container
folder):Steps to reproduce
Steps to reproduce the behavior:
Migrate a database using the latest
develop
commit (fa8d05f)Expected behavior
Successful migration.
Your environment
The text was updated successfully, but these errors were encountered: