Skip to content

Nginx keeps restarting after upgrade #20903

Answered by ntex777
ntex777 asked this question in Q&A
Discussion options

You must be logged in to vote

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 ?

version=2.11.1
cd /harbor/$version
docker run --rm -v /harbor/$version:/input \
    -v /harbor/$version:/compose_location \
    -v /harbor/$version/common/config:/config \
    -v /registry/harbor/data:/data 
    -v /:/hostfs 
    --privileged goharbor/prepare:v$version prepare…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ntex777
Comment options

You must be logged in to vote
1 reply
@ntex777
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants