jitsi / docker-jitsi-meet

Jitsi Meet on Docker
https://hub.docker.com/u/jitsi/
Apache License 2.0
3k stars 1.34k forks source link

The problem when updating to version stable-9457-(1-2) #1799

Open sword141992 opened 2 months ago

sword141992 commented 2 months ago

Hello! Encountered a problem while updating Jitsi to version stable-9457-(1-2). The update was from version stable-7882 to stable-9457-(1-2). Followed the instructions as follows: 1) Downloaded the necessary version with wget https://github.com/jitsi/docker-jitsi-meet/archive/refs/tags/stable-9457-2.tar.gz 2) Stopped the current containers with docker compose down 3) Copied the contents from the archive stable-9457-2.tar.gz into my directory with version stable-7882 4) Ran the script ./gen-passwords.sh 5) And created directories: mkdir -p ~/.jitsi-meet-cfg/{web,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri} 6) Then started the docker compose

From the logs in the container docker-jitsi-meet-stable-9457-2-web-1, the error clearly arises due to the issuance of the certificate using acme.sh:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-set-timezone: executing... 
[cont-init.d] 01-set-timezone: exited 0.
[cont-init.d] 10-config: executing... 
/opt /
[Tue May  7 02:36:08 UTC 2024] Installing to /config/acme.sh
[Tue May  7 02:36:08 UTC 2024] Installed to /config/acme.sh/acme.sh
[Tue May  7 02:36:08 UTC 2024] Installing alias to '/root/.profile'
[Tue May  7 02:36:08 UTC 2024] OK, Close and reopen your terminal to start using acme.sh
no crontab for root
[Tue May  7 02:36:08 UTC 2024] Installing cron job
no crontab for root
[Tue May  7 02:36:08 UTC 2024] Good, bash is found, so change the shebang to use bash as preferred.
[Tue May  7 02:36:08 UTC 2024] OK
/
[Tue May  7 02:36:09 UTC 2024] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Tue May  7 02:36:09 UTC 2024] Run pre hook:'if [[ -d /var/run/s6/services/nginx ]]; then s6-svc -d /var/run/s6/services/nginx; fi'
[Tue May  7 02:36:09 UTC 2024] Standalone mode.
[Tue May  7 02:36:09 UTC 2024] Create account key ok.
[Tue May  7 02:36:09 UTC 2024] Only RSA or EC key is supported. keyfile=/config/acme.sh/ca/acme-v02.api.letsencrypt.org/account.key
[Tue May  7 02:36:09 UTC 2024] Please add '--debug' or '--log' to check more details.
[Tue May  7 02:36:09 UTC 2024] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
[Tue May  7 02:36:09 UTC 2024] Run post hook:'if [[ -d /var/run/s6/services/nginx ]]; then s6-svc -u /var/run/s6/services/nginx; fi'
Failed to obtain a certificate from the Let's Encrypt CA.

The solution that was recently suggested at did not bring the desired result.

Putting this issue aside, I decided to update to version stable-9364-1. The steps for the update were exactly the same as described earlier. And the version stable-9364-1 was successfully installed, the certificate was issued, and Jitsi is working fine.

Initially, I assumed that the entire problem was related to updating acme.sh from version 2.8.8 to 3.0.7 as mentioned in the comment However, even after updating to version stable-9457-1, the desired result was not achieved, and the error was similar: "Failed to obtain a certificate from the Let's Encrypt CA."

I'll reiterate once again that the update was successful up to stable-9364-1.

saghul commented 2 months ago

Try deleting the acme* directories in your config/web directory and restarting the latest container images.

sword141992 commented 2 months ago

It seems this point was not clearly marked, which caused a misunderstanding. Let me explain in more detail:

1) There is a directory on the server ~/jitsi-meet where files from archive version 7882 are located. 2) When I stopped the docker-compose with version 7882, I deleted all contents from ~/.jitsi-meet-cfg/*. 3) Then, I downloaded version stable-9457-2, extracted it, and copied all contents with replacement into the directory ~/jitsi-meet. 4) I then created a new directory~/.jitsi-meet-cfg. 5) I run the command docker-compose up -d. 6) It pulls new images, and containers start with the new image. 7) The container web-1 encounters an error "Failed to obtain a certificate from the Let's Encrypt CA" and goes into an infinite restart loop.

There were no such issues when updating to version stable-9364-1. At step 6, the containers received a new image, started successfully, and the certificate was issued:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-set-timezone: executing... 
[cont-init.d] 01-set-timezone: exited 0.
[cont-init.d] 10-config: executing... 
/opt /
[Tue May  7 02:39:47 UTC 2024] Installing to /config/acme.sh
[Tue May  7 02:39:47 UTC 2024] Installed to /config/acme.sh/acme.sh
[Tue May  7 02:39:47 UTC 2024] Installing alias to '/root/.profile'
[Tue May  7 02:39:47 UTC 2024] OK, Close and reopen your terminal to start using acme.sh
[Tue May  7 02:39:47 UTC 2024] Installing cron job
no crontab for root
no crontab for root
[Tue May  7 02:39:47 UTC 2024] Good, bash is found, so change the shebang to use bash as preferred.
[Tue May  7 02:39:47 UTC 2024] OK
/
[Tue May  7 02:39:48 UTC 2024] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Tue May  7 02:39:48 UTC 2024] Run pre hook:'if [[ -d /var/run/s6/services/nginx ]]; then s6-svc -d /var/run/s6/services/nginx; fi'
[Tue May  7 02:39:48 UTC 2024] Standalone mode.
[Tue May  7 02:39:48 UTC 2024] Create account key ok.
[Tue May  7 02:39:48 UTC 2024] Registering account: https://acme-v02.api.letsencrypt.org/directory
[Tue May  7 02:39:49 UTC 2024] Registered
[Tue May  7 02:39:49 UTC 2024] ACCOUNT_THUMBPRINT=''
[Tue May  7 02:39:50 UTC 2024] Creating domain key
[Tue May  7 02:39:50 UTC 2024] The domain key is here: /config/acme.sh/meet.pro/meet.pro.key
[Tue May  7 02:39:50 UTC 2024] Single domain='meet.pro'
[Tue May  7 02:39:50 UTC 2024] Getting domain auth token for each domain
[Tue May  7 02:39:51 UTC 2024] Getting webroot for domain='meet.pro'
[Tue May  7 02:39:51 UTC 2024] Verifying: meeti.pro
[Tue May  7 02:39:51 UTC 2024] Standalone mode server
[Tue May  7 02:39:55 UTC 2024] Success
[Tue May  7 02:39:55 UTC 2024] Verify finished, start to sign.
[Tue May  7 02:39:55 UTC 2024] Lets finalize the order.
[Tue May  7 02:39:55 UTC 2024] Le_OrderFinalize='https://acme-v02.api.letsencrypt.org/acme/finalize/1712668627/267239622787'
[Tue May  7 02:39:56 UTC 2024] Downloading cert.
[Tue May  7 02:39:56 UTC 2024] Le_LinkCert='https://acme-v02.api.letsencrypt.org/acme/cert/'
[Tue May  7 02:39:57 UTC 2024] Cert success.

I tried to install the latest version from scratch, but still getting an error "Failed to obtain a certificate from the Let's Encrypt CA."

saghul commented 2 months ago

That's weird because in the latest version it uses ZeroSSL.

Can you try passing --force-recreate when doing the compose up?

kenneth-meadows commented 2 months ago

same error when trying fresh install stable-9457-2

saghul commented 2 months ago

Have you made sure to use the new images by doing the force recreation?

rvanlieshout commented 1 month ago

We have the same problemen. Even with newly built images

saghul commented 1 month ago

Sorry I couldn't reproduce the problem and I don't know what the problem is :-/

Can you try to start with an empty config directory?

rvanlieshout commented 1 month ago

Sure can. Wil do that a.s.a.p.