Cannot upgrade (OD-586)
Closed
Quin opened 2 years ago

Hi I cannot upgrade from 6.2.3 to 6.3.9.

I am running on bare metal, and originally wget'd the zip file and extracted it in the home folder. 6.2.3 works perfectly fine there.

However, when I try and run the upgrade script, changing the paths to where onedev is installed (i.e. [home]/onedev-6.2.3), I get this:

ERROR - Unable to find directory: /home/[user]/onedev-6.3.9/bin/onedev-6.2.3
<-- Wrapper Stopped
Robin Shen commented 2 years ago

Just tested here and it works fine. Make sure do the following from terminal:

  1. Change to directory /home/[user]/onedev-6.3.9/bin
  2. Run command ./upgrade.sh /path/to/onedev-6.2.3

After upgrading /path/to/onedev-6.2.3 will be running 6.3.9 (I suggest to rename /path/to/onedev-6.2.3 as /path/to/onedev to avoid confusion)

Quin commented 2 years ago

That seems to have done the trick! I guess I got my numbers mixed up.

I tried to change it from onedev-6.2.3 to onedev, but when I go to start the service, I get:

Feb 23 08:16:17 onedev systemd[1]: Starting OneDev...
Feb 23 08:16:17 onedev systemd[3484]: onedev.service: Failed to execute command: No such file or directory
Feb 23 08:16:17 onedev systemd[3484]: onedev.service: Failed at step EXEC spawning /home/[user]/onedev-6.2.3/bin/server.sh: No such file or directory
Feb 23 08:16:17 onedev systemd[1]: onedev.service: Control process exited, code=exited, status=203/EXEC
Feb 23 08:16:17 onedev systemd[1]: onedev.service: Failed with result 'exit-code'.
Feb 23 08:16:17 onedev systemd[1]: Failed to start OneDev.
Robin Shen commented 2 years ago

Uninstall the service first, then re-install it:

sudo /path/to/onedev/bin/server.sh remove
sudo /path/to/onedev/bin/server.sh install
Robin Shen changed state to 'Closed' 2 years ago
Previous Value Current Value
Open
Closed
Quin referenced from other issue 2 years ago
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (4)
Reference
OD-586
Please wait...
Page is in error, reload to recover