-
Please try again following this guide:
https://code.onedev.io/projects/162/blob/main/pages/upgrade-guide.md
-
Previous Value Current Value Open
Closed
-
Tried that - doesn't work :(
-
Tried to upgrade to the latest 4 version (4.11.1): worked
Then upgrading to 5.3.0 doesn't work with the same error but different version numbers:
INFO - Updating program files... INFO - Restoring database with new program... INFO - >>> INFO - Launching application from '/opt/onedev'... INFO - >>> INFO - Cleaning temp directory... INFO - >>> INFO - Initializing dependency injection container... INFO - >>> INFO - Starting plugin manager... INFO - >>> INFO - Restoring database from /opt/onedev/site/db-backup/2021-10-31_17-25-01.zip... INFO - >>> INFO - Validating data file 'Roles.xml'... INFO - >>> INFO - Validating data file 'Projects.xml'... INFO - >>> INFO - Validating data file 'Users.xml'... INFO - >>> INFO - Validating data file 'Builds.xml'... INFO - >>> INFO - Validating data file 'BuildParams.xml'... INFO - >>> INFO - Validating data file 'ModelVersions.xml'... INFO - >>> INFO - Validating data file 'Settings.xml'... INFO - >>> INFO - Validating data file 'SshKeys.xml'... INFO - >>> INFO - Validating data file 'BuildDependences.xml'... INFO - >>> INFO - Validating data file 'UserAuthorizations.xml'... INFO - >>> ERROR - Data version mismatch (app data version: 69, db data version: 64) ERROR - Failed to upgrade /opt/onedev INFO - Restoring old program files due to upgrade failure... INFO - Old program files restored WARN - The database might be in inconsistent state due to upgrade failure. In that case, you need to restore the database by first cleaning it, and then running below command: INFO - /opt/onedev/bin/resto -
Previous Value Current Value Failed to upgrade /opt/onedev (4.9.4 → 5.2.1)
Failed to upgrade /opt/onedev (4.11.1 → 5.3.0)
-
Previous Value Current Value Closed
Open
-
After upgrade failure to 5.3.0, are you able to start OneDev now?
-
Also please zip all files under
<your OneDev install dir>/logsand attach here. -
Also please let me know the exact command you are using to run OneDev, as well as the OS platform.
-
Also please run below command to open terminal to OneDev container:
docker exec -it <OneDev container id> bashAnd then zip and attach all files under
/app/logshere -
After upgrade failure to 5.3.0, are you able to start OneDev now?
It starts but displays "Version 4.11.1"
Also please let me know the exact command you are using to run OneDev, as well as the OS platform.
docker run \ --name onedev \ -v /mnt/bla/onedev:/opt/onedev \ -v /var/run/docker.sock:/var/run/docker.sock \ -p 2222:2222 \ -p 6610:6610 \ -e 'ssh_port=2222' \ 1dev/server:5.3.0on Debian Buster, Docker version 20.10.8, build 3967b7d
Database: mariadb Ver 15.1 Distrib 10.3.29-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
hibernate.properties:hibernate.dialect=org.hibernate.dialect.MariaDB103Dialect hibernate.connection.driver_class=org.mariadb.jdbc.Driver hibernate.connection.url=jdbc:mariadb://myhost:3306/onedev hibernate.connection.username=onedev hibernate.connection.password=secretHere are the log files:
Hope that helps. Thanks
-
This is a bug and has now been fixed in build #1998. Also make sure to add option
-itif you run docker foreground. This will make OneDev able to print output as well as able to be terminated by ctrl-c -
Previous Value Current Value Open
Closed
-
The update is now working, Thanks
| Type |
Question
|
| Priority |
Major
|
| Assignee |
I have updated onedev today to 4.9..4 to 5.2.1 running a Docker setup.
Now I am stuck at:
The installation is still working and showing version 4.9.4.
I am not sure what to do now :(