-
Hi Our registry was a bit outdated back in version 2.4.1, so we decided to upgrade using these versions -> 2.5.6 -> 2.7.4 -> 2.9.5 -> 2.11.1 - keeping the rule no more than 2 previous minor builds. We have HTTPS enabled, but as soon we jumped to 2.5.6 nginx keeps restarting:
Being the same cert from our internal PKI, with previous files on volumes mounted on compose, also being system docker folder and also at ca-trust OS folder, this shouldn't be breaking or ? Does the install needs something at folder where script is despite we've mapped /:hostfs and also the previous /registry/data has old secret ?
Did something change or we missed some step during the prepare with harbor.yml ? In the end, we upgraded to 2.11.1 easily, just nginx not working. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I found the underlying cause, after the first install some years ago, someone changed the filenames while renewing the cert last year. Now, I'm still curious on this step, do you have to do prepare step when you need to renew certs ?
Or we can just replace the ones in data/ and docker/certs.d and restart the stack ? |
Beta Was this translation helpful? Give feedback.
-
yes, you need to execute the prepare step once the certs is renewed. |
Beta Was this translation helpful? Give feedback.
I found the underlying cause, after the first install some years ago, someone changed the filenames while renewing the cert last year.
So the file named as PEM was in fact binary and Binary filename was PEM, so when Upgrade (migrate step) picks these certs, was overwriting the good one PEM with a binary format instead.
Now, I'm still curious on this step, do you have to do prepare step when you need to renew certs ?