-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
notary-server and notary-signer cannot start after upgrading to 1.7.4 #7091
Comments
Upgraded from 1.4.0 -> 1.6.3 without issue, was about to upgrade to 1.7.4 but saw the warning... |
The script is to fix the issue goharbor#7091, notary upgrade failure from mysql to pqsl. Signed-off-by: wang yan <[email protected]>
The script is to fix the issue goharbor#7091, notary upgrade failure from mysql to pqsl. Signed-off-by: wang yan <[email protected]>
@RRAlex it happens on v1.7.4 forward, and we will provide a manual workaround, you have to run a script at your end to fix it. |
The script is to fix the issue goharbor#7091, notary upgrade failure from mysql to pqsl. Signed-off-by: wang yan <[email protected]>
Just run the script(https://github.com/goharbor/harbor/blob/master/tools/notary-migration-fix.sh) to fix notary DB before launching Harbor. |
I've upgraded from 1.6.0 to 1.8.1 and came accross the same issue and did run the notary-migration-fix.sh script but still get the "file does not exist" error. Any idea?
When running the script it uses the goharbor/harbor-db:v1.6.0 instead of v1.8.1 image. Is this correct? The script also stops with the message "Harbor DB cannot reach within one minute." |
Hi, I have the same issue and same behavior as @Madic- when I run the script on a 1.8.2 upgrade. |
"Fixed" the problem by dropping and then re-creating the databases notaryserver and notarysigner. |
the log of notary-server container:
The
file does not exist
error was due to an inconsistecy introduced in migration that switch Harbor DB from mysql/mariadb to postgresqlThere's no good way to fix it easily, a quick fix is to drop all tables of the
notaryserver
andnotarysigner
databases, and re-sign the images that were signed previously.A better workaround involve some manual work is in progress.
The text was updated successfully, but these errors were encountered: