Relative directory passed to upgrade script should be calculated based on current working directory (OD-642)
Quin opened 4 years ago

Howdy

I'm trying to upgrade (again) and I'm getting an error different to issue #586

onedev-6.3.20/bin/upgrade.sh onedev
Running OneDev Upgrade...
--> Wrapper Started as Console
Java Service Wrapper Standard Edition 64-bit 3.5.48
  Copyright (C) 1999-2021 Tanuki Software, Ltd. All Rights Reserved.
    http://wrapper.tanukisoftware.com
  Licensed to OneDev for Service Wrapping

Launching a JVM...
WrapperManager: Initializing...
INFO  - Launching application from '/home/[user]/onedev-6.3.20'...
INFO  - Starting server...
ERROR - Unable to find directory: /home/[user]/onedev-6.3.20/bin/onedev
<-- Wrapper Stopped

I've got OneDev installed at /home/[user]/onedev/. I wget 6.3.20 to the user dir (home/[user]/onedev-6.3.20.zip), and extracted it there too (so home/[user]/onedev-6.3.20/) Then I ran onedev-6.3.20/bin/upgrade.sh onedev, from the /home/[user] dir.

  • Robin Shen changed state to 'Closed' 4 years ago
    Previous Value Current Value
    Open
    Closed
  • Robin Shen commented 4 years ago

    The relative directory is calculated based on the directory containing upgrade script which is /home[user]/onedev-6.3.20. This seems confusing and I will change that.

    For now, please specify absolute path to your old OneDev directory as the upgrade param:

    onedev-6.3.20/bin/upgrade.sh /home/[user]/onedev

  • Robin Shen changed title 4 years ago
    Previous Value Current Value
    Cannot upgrade from 6.3.9 to 6.3.20
    Relative directory passed to upgrade script should be calculated based on current working directory
  • Robin Shen changed state to 'Open' 4 years ago
    Previous Value Current Value
    Closed
    Open
  • OneDev changed state to 'Closed' 4 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 4 years ago

    State changed as code fixing the issue is committed

  • OneDev changed state to 'Released' 4 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 4 years ago

    State changed as build #2398 is successful

issue 1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (4)
Reference
OD-642
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover