You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS. if there a faster way to get to 2.9.0 from 1.10.18 while keeping my data, even with a reinstall or whatever, I'm all ears :)
Ubuntu 16.04.7 LTS
Docker version 20.10.7, build f0df350
I keep getting an error in the harbor-db container after the install.sh and the containers are running except harbor-db which keeps restarting. btw, I use LDAP for auth.
I do run the prepare migrate and it succeeds:
docker run -it --rm -v /:/hostfs goharbor/prepare:v2.1.6 migrate -i /root/harbor/harbor/harbor.yml
migrating to version 2.0.0
migrating to version 2.1.0
Written new values to /root/harbor/harbor/harbor.yml
/docker-pool/database/pg13/PG_VERSION contains the number 13.
docker logs on harbor-db shows: initdb: directory "/var/lib/postgresql/data" exists but is not empty
I mv the contents of /docker-pool/database/pg13/ to /docker-pool/database/ and removed pg13 directory. That produced this error: /var/lib/postgresql/data" is not a valid data directory
If I empty the database directory it will create a new empty data and of course all my stuff is gone.
My file permissions are fine. Below is from host and "docker" is id 999. I did try privileged but I don't believe it has to do with permissions.
Thanks @YangJiao0817 . I didn't see those when I was searching and the info looks useful. I ended up just installing a fresh 2.9 then migrating everything using skopeo. Only had 25 projects an ~200 images.
PS. if there a faster way to get to 2.9.0 from 1.10.18 while keeping my data, even with a reinstall or whatever, I'm all ears :)
I keep getting an error in the harbor-db container after the install.sh and the containers are running except harbor-db which keeps restarting. btw, I use LDAP for auth.
I do run the prepare migrate and it succeeds:
/docker-pool/database/pg13/PG_VERSION contains the number 13.
docker logs on harbor-db shows:
initdb: directory "/var/lib/postgresql/data" exists but is not empty
I mv the contents of /docker-pool/database/pg13/ to /docker-pool/database/ and removed pg13 directory. That produced this error:
/var/lib/postgresql/data" is not a valid data directory
If I empty the database directory it will create a new empty data and of course all my stuff is gone.
My file permissions are fine. Below is from host and "docker" is id 999. I did try privileged but I don't believe it has to do with permissions.
The text was updated successfully, but these errors were encountered: