The migration is part of the [email protected] release. This error might have occurred because the migration didn’t complete on an initial run when it was first executed.
Can you restore a backup of his old db before updating?
Can you try again and make sure the migration runs through the first time?
Hi @EmeraldHerald
Thanks your prompt reply, the last DB backup is quite a long times ago, so it maybe the last option for me, Yes, I think it is auto upgrade and filed since I’m using the latest image tab in my deployment.
after I realize the n8n was down then I change tag back to 0.233.1 and the system is able to come back and up, however, I can’t create new workflow and all the current workflow can’t execute.
I have just tried again the upgrade to 0.234.0 but the DB log error message is the same.
any suggestions?
Thanks a lot.
Ah, sorry to hear that @vincentcsm Unfortunately that suggestion would have come from someone on our development team, so that would be the advice I have for you
The reason you can’t downgrade past 0.234.0 is due to this being an irreversible migration - after the database has begun the migration process, you won’t be able to go back to older versions past this point.
Hi @EmeraldHerald
so the issue is during the migration, there was an unexpected issue that interrupted the process,
anyway, I can trigger again the migration or resolve the table that is mentioned in the error logs?
Sorry for troubling you.
I checked in trying to get a second opinion here, and I’m afraid there really isn’t another option than restoring a database backup and ensuring the migration completes.
I’ll give @krynble a ping here too, just in case we’ve all missed something.
It seems the migration is failing at around line 19 of the above file. You could check if the other steps were performed and if not, then reproduce them manually.
Once you are done with all steps, all that is left to do is manually insert a single row to the migrations table reflecting the manually executed migration. Your table show look somewhat like the one in this table (the last row is the one that you must manually add)
Dear @krynble@EmeraldHerald
Thanks, both for your great help, the latest issue has been resolved by truncating the execute_entity table.
Now I can start with 0.236.1,
Let me do some functionality tests.
Thanks a lot.