#1099  Can't update data version
Closed
Unknown opened 1 year ago

So I have followed the guide on updating your server: https://docs.onedev.io/upgrade-guide

But despite it running and exiting saying its successfully checked the directory, I still get the following error:

00:18:02 ERROR i.o.s.persistence.DefaultDataManager - Data version mismatch (app data version: 108, db data version: 107)

What am I doing wrong?

I am using the upgrade.sh script in the latest build like it says, https://code.onedev.io/onedev/server/~builds/3271

Robin Shen commented 1 year ago

Obviously you are connecting new program to old database. Are you able to start old version now?

Unknown commented 1 year ago

@robin I have used the AUR package, its replaced the old files... oh wait that is probably the issue xD

Unknown commented 1 year ago

How should I migrate the database without the old files (I still have the data, just not the old code)

Robin Shen commented 1 year ago

You need to download the old code again and configure it to connect to your database.

Robin Shen commented 1 year ago

At this time, I'd suggest to remove ArchLinux installation instructions from installation guide as it is not completely implemented yet. Users following this guide will get in trouble.

Unknown commented 1 year ago

ok this is an issue I should address in issue #1041 for now I will downgrade the package back to the previous version, execute update.sh on it, and then install the package.

Unknown commented 1 year ago

Robin I would rather not undo the typing I have done with the entire arch section, I will PR a warning stating the AUR package is unstable and to use the generic linux install for the time being

Robin Shen commented 1 year ago

ok, a warning is fine.

Unknown commented 1 year ago

I will submit a PR into docs now

Robin Shen changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
Robin Shen commented 1 year ago

This is not a bug actually. Closing now

Unknown referenced from other issue 1 year ago
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (3)
Reference
onedev/server#1099
Please wait...
Page is in error, reload to recover