-
Your repositories will not lost even for a failed upgrade. Please follow below steps to diagnose the issue:
-
Take a backup of
/srv/onedev/datacp -r /srv/onedev/data /path/to/backup -
Install OpenJDK 11 on the machine
sudo apt install openjdk-11-jdk -
Run below command to chown of OneDev data directory to be current user and group:
chown -R $(id -u):$(id -g) /srv/onedev/data -
Run below command to see if OneDev can start. Please post log here otherwise.
/srv/onedev/data/bin/server.sh console
-
-
Name Previous Value Current Value Priority
Critical
Normal
-
Thanks for the help!
Starting it directly worked, and solved the issue running it from the docker container.
-
Previous Value Current Value Open
Closed
-
Fixed.
-
The upgrade is actually successful. Just that docker compose is not printing the full log. To address the issue, please enable tty mode in your docker compose file like below:
version: '3.6' services: web: image: 1dev/server container_name: onedev restart: always ports: - '6610:6610' - '6611:6611' volumes: - '/srv/onedev/data:/opt/onedev' - '/srv/run/docker.sock:/var/run/docker.sock' shm_size: '2048m' tty: true
| Type |
Build Failure
|
| Priority |
Normal
|
| Assignee | |
| Failed Build |
Not Found
|
| Labels |
No labels
|
Issue Votes (0)
I was upgrading my local onedev container from 8.x (don't remember the actual version and unable to roll back) to the latest, but the server failed to launch after upgrading in a very similar fashion to https://code.onedev.io/onedev/server/~issues/1725 .
The upgrade did create (or overwrite 🤷♂️ ) the release.properties file with the latest version. I tried downgrading to 8.1.3 and using the properties file provided in the aforementioned thread, but the server remained broken as well as after attempting to re-upgrade.
This is the docker compose file I'm using:
(changed image to
1dev/server:8.1.3when downgrading and1dev/server:latestwhen re-upgrading)What is my best course of action here to ensure I don't lose my repositories?
Thanks.