New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After upgrade, docker login breaks #2744
Comments
@carlsone Erin let me confirm, are you testing with the deployment with Harbor only? or with Harbor+Admiral? |
Harbor only. But I think I tried it on a Harbor+Admiral VM and got the same error. |
Hi @carlsone, For the latest version of harbor, the DB scheme changes. You need update DB firstly, and then to start latest harbor. I will let you know how to update DB, but it's still changing before FC. -Yan |
Is there a way to replace the database with the version included in the installer bundle? I do not need to preserve or upgrade the old database. I am happy to replace it with a fresh db. |
@carlsone You can clean up the directory
Note that in VIC product Harbor will be deployed with Notary and Clair, if you need that you need more options when deploying Harbor. |
@reasonerjt, I will not need Nortary or Clair. I have tried cleaning-up the database directory, but get the same login error as before. Please let me know if you see a mistake in the following repro:
Login works for 1.1. Now shut-down old harbor:
(clean up database)
(install new harbor)
(rebuild database?)
(No errors)
(Try login)
|
hi @carlsone , can you use this build https://storage.googleapis.com/harbor-builds/harbor-offline-installer-v1.1.2-802-g2e3c257.tgz? Please make sure to remove /data before using. |
Thank you @wy65701436, I have now tried version harbor-offline-installer-v1.1.2-802-g2e3c257.tgz If I remove /data before using, I get this error when I run the prepare script:
So I tried again. This time, I made a copy of /data/harbor/cert and /data/harbor/ca_download/, so I could put them back before running the prepare script:
But I still see the login error:
Logs: |
May I have your env to have a debug? |
Thank you for offering. I have sent you credentials over email. Erin |
It's due to the upgrade process, not an issue of Harbor. The predefined docker-compose.yml points to v1.1.1 Harbor images, it must align with offline installer version. |
Thanks for your analysis @wy65701436. I will need additional help to align the v1.1.1 docker-compose.yml with the offline installer. I sent an email requesting more information. Thank you. |
@carlsone, do you need further support for this issue. If not, can I close it? |
You can close this bug. I would still like to see Issue 2134 fixed though. |
I have been using Harbor version 1.1.1 ok. When I do an upgrade to version 1.1.2 (https://github.com/vmware/harbor/releases/tag/v1.1.2), it works ok too.
But when I try to upgrade to a newer version found on https://console.cloud.google.com/storage/browser/harbor-builds/ using the same upgrade steps, I am not able to do a docker login anymore, due to these errors:
I have done this with version 640 and 734. Both fail the same way. Logs and more info below:
If you are reporting a problem, please make sure the following information are provided:
1)Version of docker engine and docker-compose.
Docker version 1.13.1, build 092cba3
docker-compose version 1.11.1, build 7c5d5e4
2)Config files of harbor, you can get them by packaging "harbor.cfg" and files in the same directory, including subdirectory.
See harbor_logs.ZIP below (actually a .tgz file).
3)Log files, you can get them by package the /var/log/harbor/ .
harbor_logs.ZIP
Download any of the v1.1.2 installers from https://console.cloud.google.com/storage/browser/harbor-builds/
Run install script (which I got from #2208 ):
See Output:
Now try to log into harbor after the install:
The text was updated successfully, but these errors were encountered: