# Storage schema version is incompatible with the code version 'main\_0002'

**URL:** <https://aiida.discourse.group/t/storage-schema-version-is-incompatible-with-the-code-version-main-0002/701>\
**Category:** General Usage\
**Tags:** question, discussion\
**Created:** [December 26, 2025, 1:55am UTC](https://aiida.discourse.group/t/storage-schema-version-is-incompatible-with-the-code-version-main-0002/701 "2025-12-26T01:55:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dongxinyue45-design](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/dongxinyue45-design/32/370_2.png) [@dongxinyue45-design](https://aiida.discourse.group/u/dongxinyue45-design)\
**Post date:** [December 26, 2025, 1:55am UTC](https://aiida.discourse.group/t/storage-schema-version-is-incompatible-with-the-code-version-main-0002/701/1 "2025-12-26T01:55:19Z")

</div>

There’s an error “OperationalError: database is locked” after submitting multiple tasks. I need to follow the instructions labeled “MIGRATE NOW” in the picture above. After that, do I need to reconfigure the computer and the code (or pseudo…) completely? Or will these be preserved? Does anyone know a better method? May I safely input “MIGRATE NOW”?

 ![ScreenShot_2025-12-25_205531_808](https://global.discourse-cdn.com/free1/uploads/aiida/original/1X/563fe9b26d41c9430e34b0c500160d87f50f71ca.png)

---

<div class="post-metadata">

**Author:** ![t-reents](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/t-reents/32/82_2.png) [@t-reents](https://aiida.discourse.group/u/t-reents)\
**Post date:** [January 6, 2026, 9:48am UTC](https://aiida.discourse.group/t/storage-schema-version-is-incompatible-with-the-code-version-main-0002/701/2 "2026-01-06T09:48:43Z")

</div>

Hi @dongxinyue45-design

When you do a storage migration, your computers etc. will be preserved. Nonetheless, you should typically do a backup of your profile before doing these things, just to be safe.

Moreover, I’m wondering what exactly has happened. Submitting many calculations should not cause you to do a storage migration. Did you accidentally upgrade AiiDA?

What is the output of `verdi storage version`?

---

<div class="post-metadata">

**Author:** ![dongxinyue45-design](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/dongxinyue45-design/32/370_2.png) [@dongxinyue45-design](https://aiida.discourse.group/u/dongxinyue45-design)\
**Post date:** [January 7, 2026, 2:30am UTC](https://aiida.discourse.group/t/storage-schema-version-is-incompatible-with-the-code-version-main-0002/701/3 "2026-01-07T02:30:45Z")

</div>

Thank you very much for your detailed response. I didn’t upgrade the version of AiiDA (AiiDA v2.7.1). Storage schema version of ‘presto-16’: ‘main\_0002’. It was more like I didn’t wait for the previous task to finish running, and then I modified the parameters and resubmitted it. And by following the operation instructions, this problem has now been resolved.

---

<div class="post-metadata">

**Author:** ![t-reents](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/t-reents/32/82_2.png) [@t-reents](https://aiida.discourse.group/u/t-reents)\
**Post date:** [January 7, 2026, 6:13am UTC](https://aiida.discourse.group/t/storage-schema-version-is-incompatible-with-the-code-version-main-0002/701/4 "2026-01-07T06:13:01Z")

</div>

Thanks!

OK, but still, AiiDA is definitely capable of running a lot of jobs in parallel, so this should not really cause you these problems (: Anyways, if I understood your last message correctly, your problem is solved now and you can continue running your jobs, is this correct?

(Also, it seems that there was an issue with the RabbitMQ broker in your initial message. If you run `verdi status` now, is it fine again? If not, this will of course also cause you some problems when trying to run jobs. Nonetheless, this shouldn’t result in any storage issue)

Let us know in case you have further issues!

---

<div class="post-metadata">

**Author:** ![dongxinyue45-design](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/dongxinyue45-design/32/370_2.png) [@dongxinyue45-design](https://aiida.discourse.group/u/dongxinyue45-design)\
**Post date:** [January 7, 2026, 7:23am UTC](https://aiida.discourse.group/t/storage-schema-version-is-incompatible-with-the-code-version-main-0002/701/5 "2026-01-07T07:23:49Z")

</div>

Yes, as you mentioned above, I can continue running my jobs now. When I run `verdi status,` everything has returned to normal. Thank you very much for your professional response.
