John opened 2 years ago
|
|||||
From which version are you performing the upgrade? |
|||||
Is there an easy way to tell? I can't start the app to check the version because it just tries to upgrade again and fails/crashes |
|||||
You may stop OneDev container, and run below command:
Also please let me know your MariaDB details, including OS and version, jdbc driver version, onedev database character set, etc. |
|||||
Running the command returned "7.1.8" MariaDB Details: OS: Official MariaDB docker image JDBC driver version: 3.0.3
Database character set - Not sure how to get this, but I can provide the following: collation: utf8mb4_unicode_ci engine: InnoDB |
|||||
Just tested and it works at my side. I am starting MariaDB with below command:
Please pull your mariadb to update to latest version to see if it works. If still not work, please tell me detailed steps to reproduce this issue. |
|||||
BTW: you may still get your OneDev up and running with 7.1.8 image, although upgrade fails. |
|||||
I've made sure the mariadb docker image I'm using has been updated to the latest version, also I tried starting the app on both 7.1.8 and 7.1.7 after restoring the database from backup, and I was met with the following error:
This seems to be some sort of deserialization issue in the database possibly? I'm not sure as java isn't my thing |
|||||
Looks that some database record is corrupted for some reason. You might need to restore from an old backup to get it working. |
|||||
Or you may send the database backup (you are using to restore database) to me [robin AT onedev DOT io] and I will check what might be wrong. |
|||||
Thank you, I sent an email. Would it be easier to restart from scratch? Would I (easily) be able to grab the git repositories I have setup and just migrate them over to another instance? |
|||||
All git repositories are stored under I have not got the email yet. If attachment is too large, please share a dropbox link. |
|||||
Hi Robin, The email subject I sent you is "Issue #727 - Database Corruption", I've confirmed its not too big and was able to send it on my end. I took a look at the projects directory but I am unable to find the source code of my projects. Could you elaborate within a project folder how I can find/export the files within the project |
|||||
I ended up restoring from a waaaay older database backup taken by onedev on an older version, swapping to the latest (7.2.3) and letting the upgrade migration process take place. It took a while, but eventually succeeded. Thanks, closing. |
|||||
John changed state to 'Closed' 2 years ago
|
|||||
This upgrade failure is odd. Please take a manual backup of your database (via OneDev's database backup menu) before next upgrade. |
Type |
Bug
|
Priority |
Normal
|
Assignee | |
Affected Versions |
Not Found
|
I tried upgrading to 7.2.0 (docker image), and the upgrade process fails due to a table not existing: