-
Are you still able to start 8.2.7?
-
Yes, that still runs flawlessly after restarting it.
-
Please check if your OneDev 8.2.7 root directory has file
release.properties, and that file contains a version property with value8.2.7. If not, that file might get deleted for some reason, and you may copy attached file to that directory and try upgrade again -
Wow, great find! I now upgraded without issue restoring that file. The root directory had a release.properties_BAK file (no release.properties file). This looks like my own naming-convention when creating a backup copy of a file (postfix with '_BAK'). Apparently I had issues with the installation and renaming/removing that file fixed something? I wouldn't know why else I'd rename such a file. It's been a while, else I would've remembered. Thus, an error/oversight on my side. I'm terribly sorry for spending your time on the problem I created myself. But many thanks for pointing out the cause!
-
Previous Value Current Value Open
Closed
-
No problem. Closing this now.
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
It's been a while since I've updated the bare-metal (Ubuntu) server installation, which is still running on 8.2.7 using an external MySQL database without problems. I've followed the upgrade guide: https://docs.onedev.io/upgrade-guide/bare-metal, but I can't upgrade, I get the following error:
This probably is because the versions lie too far apart. I'd hoped to install some late 8.X.X version or early 9.X.X version as an intermediate upgrade step, but the oldest still available build is 9.2.0, which gives the same error:
The 9.7.0 service installs fine, but cannot start because of the data version mismatch.
How best to tackle this problem? Making a backup of the data on the old version and trying to import/restore that backup in the newer version using restore-db.sh gives the same data version mismatch error. Do I need older builds to run multiple upgrades using in-between versions? And if so, where to get them since https://code.onedev.io/onedev/server/~builds does not show older builds than 9.2.0. Thank you for you time!
FYI: these are the /opt folder contents: