Seafile in docker not working with letsencrypt=true

Installed and launched Seafile in docker-compose. If you run it without ssl and with the letsencrypt=false option, then everything works fine. But if you enable ssl (uncomment port 443) and set the letsencrypt=true value, then the service does not work. Neither on port 80 nor 443. This does not update the nginx configuration. Such a problem when using version 9.0.13. The installation was carried out in full accordance with the manual on the official website. Installation on a clean Ubuntu 20.04 system. Here is the log.

~# docker-compose logs -f seafile
Attaching to seafile
seafile          | *** Running /etc/my_init.d/01_create_data_links.sh...
seafile          | *** Booting runit daemon...
seafile          | *** Runit started as PID 16
seafile          | *** Running /scripts/enterpoint.sh...
seafile          | 2022-11-14 22:24:35 Nginx ready 
seafile          | 2022-11-14 22:24:35 This is an idle script (infinite loop) to keep container running. 
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] Selected server: https://acme-v02.api.letsencrypt.org/directory
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] Lets find script dir.
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] _SCRIPT_='/root/.acme.sh/acme.sh'
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] _script='/root/.acme.sh/acme.sh'
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] _script_home='/root/.acme.sh'
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] Using config home:/shared/ssl/
seafile          | https://github.com/acmesh-official/acme.sh
seafile          | v3.0.2
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] Using server: letsencrypt
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] Running cmd: issue
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] _main_domain='mysefiledomain.com'
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] _alt_domains='no'
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] Using config home:/shared/ssl/
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] DOMAIN_PATH='/shared/ssl//mysefiledomain.com'
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] Using ACME_DIRECTORY: https://acme-v02.api.letsencrypt.org/directory
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] _init api for server: https://acme-v02.api.letsencrypt.org/directory
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] Retrying GET
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] GET
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] url='https://acme-v02.api.letsencrypt.org/directory'
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] timeout=
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] displayError='1'
seafile          | [Mon 14 Nov 2022 10:24:37 PM MSK] _CURL='curl --silent --dump-header /shared/ssl//http.header  -L  -g '
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] ret='0'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] _hcode='0'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] ACME_KEY_CHANGE='https://acme-v02.api.letsencrypt.org/acme/key-change'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] ACME_NEW_AUTHZ
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] ACME_NEW_ORDER='https://acme-v02.api.letsencrypt.org/acme/new-order'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] ACME_NEW_ACCOUNT='https://acme-v02.api.letsencrypt.org/acme/new-acct'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] ACME_REVOKE_CERT='https://acme-v02.api.letsencrypt.org/acme/revoke-cert'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] ACME_AGREEMENT='https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] ACME_NEW_NONCE='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] Using CA: https://acme-v02.api.letsencrypt.org/directory
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] _on_before_issue
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] _chk_main_domain='mysefiledomain.com'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] _chk_alt_domains
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] Le_LocalAddress
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] d='mysefiledomain.com'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] Check for domain='mysefiledomain.com'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] _currentRoot='/var/www/'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] d
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] config file is empty, can not read CA_KEY_HASH
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] Using config home:/shared/ssl/
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] _init api for server: https://acme-v02.api.letsencrypt.org/directory
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] Use default length 2048
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] length='2048'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] Using config home:/shared/ssl/
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] Use length 2048
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] Using RSA: 2048
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] Create account key ok.
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] RSA key
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] config file is empty, can not read CA_EAB_KEY_ID
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] config file is empty, can not read CA_EAB_HMAC_KEY
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] config file is empty, can not read CA_EMAIL
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] config file is empty, can not read ACCOUNT_EMAIL
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] Registering account: https://acme-v02.api.letsencrypt.org/directory
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] url='https://acme-v02.api.letsencrypt.org/acme/new-acct'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] payload='{"termsOfServiceAgreed": true}'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] Retrying post
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] HEAD
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] _CURL='curl --silent --dump-header /shared/ssl//http.header  -L  -g  -I  '
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] _ret='0'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] _hcode='0'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] Retrying post
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] POST
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-acct'
seafile          | [Mon 14 Nov 2022 10:24:38 PM MSK] _CURL='curl --silent --dump-header /shared/ssl//http.header  -L  -g '
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] _ret='0'
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] _hcode='0'
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] code='201'
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] Registered
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] _accUri='https://acme-v02.api.letsencrypt.org/acme/acct/824055837'
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] Calc CA_KEY_HASH='Sf6pspjGnXh94xpo0ZgqVEXS+dAqROSHQN9svHamndc='
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] ACCOUNT_THUMBPRINT='pV_xxNBHKUscKh90PLmDyaRqkPTyqfkTGVX09NQ1tNA'
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] Read key length:
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] Creating domain key
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] Use DEFAULT_DOMAIN_KEY_LENGTH=2048
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] Using config home:/shared/ssl/
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] Use length 2048
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] Using RSA: 2048
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] The domain key is here: /shared/ssl//mysefiledomain.com/mysefiledomain.com.key
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] _createcsr
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] Single domain='mysefiledomain.com'
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] Getting domain auth token for each domain
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] d
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] url='https://acme-v02.api.letsencrypt.org/acme/new-order'
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] payload='{"identifiers": [{"type":"dns","value":"mysefiledomain.com"}]}'
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] Retrying post
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] POST
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-order'
seafile          | [Mon 14 Nov 2022 10:24:39 PM MSK] _CURL='curl --silent --dump-header /shared/ssl//http.header  -L  -g '
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] _ret='0'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] _hcode='0'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] code='201'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] Le_LinkOrder='https://acme-v02.api.letsencrypt.org/acme/order/824055837/144052504507'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] Le_OrderFinalize='https://acme-v02.api.letsencrypt.org/acme/finalize/824055837/144052504507'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/176191167367'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] payload
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] Retrying post
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] POST
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] _post_url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/176191167367'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] _CURL='curl --silent --dump-header /shared/ssl//http.header  -L  -g '
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] _ret='0'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] _hcode='0'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] code='200'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] d='mysefiledomain.com'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] Getting webroot for domain='mysefiledomain.com'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] _w='/var/www/'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] _currentRoot='/var/www/'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] entry='"type":"http-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/176191167367/qkL9Wg","token":"TSwPXbCX624EaaCx2_S6h7JLGgAsECKJtp4Y5JKSSrE"'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] token='TSwPXbCX624EaaCx2_S6h7JLGgAsECKJtp4Y5JKSSrE'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/176191167367/qkL9Wg'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] keyauthorization='TSwPXbCX624EaaCx2_S6h7JLGgAsECKJtp4Y5JKSSrE.pV_xxNBHKUscKh90PLmDyaRqkPTyqfkTGVX09NQ1tNA'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] dvlist='mysefiledomain.com#TSwPXbCX624EaaCx2_S6h7JLGgAsECKJtp4Y5JKSSrE.pV_xxNBHKUscKh90PLmDyaRqkPTyqfkTGVX09NQ1tNA#https://acme-v02.api.letsencrypt.org/acme/chall-v3/176191167367/qkL9Wg#http-01#/var/www/'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] d
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] vlist='mysefiledomain.com#TSwPXbCX624EaaCx2_S6h7JLGgAsECKJtp4Y5JKSSrE.pV_xxNBHKUscKh90PLmDyaRqkPTyqfkTGVX09NQ1tNA#https://acme-v02.api.letsencrypt.org/acme/chall-v3/176191167367/qkL9Wg#http-01#/var/www/,'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] d='mysefiledomain.com'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] ok, let's start to verify
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] Verifying: mysefiledomain.com
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] d='mysefiledomain.com'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] keyauthorization='TSwPXbCX624EaaCx2_S6h7JLGgAsECKJtp4Y5JKSSrE.pV_xxNBHKUscKh90PLmDyaRqkPTyqfkTGVX09NQ1tNA'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/176191167367/qkL9Wg'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] _currentRoot='/var/www/'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] wellknown_path='/var/www//.well-known/acme-challenge'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] writing token:TSwPXbCX624EaaCx2_S6h7JLGgAsECKJtp4Y5JKSSrE to /var/www//.well-known/acme-challenge/TSwPXbCX624EaaCx2_S6h7JLGgAsECKJtp4Y5JKSSrE
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] Changing owner/group of .well-known to root:root
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/176191167367/qkL9Wg'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] payload='{}'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] Retrying post
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] POST
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/176191167367/qkL9Wg'
seafile          | [Mon 14 Nov 2022 10:24:40 PM MSK] _CURL='curl --silent --dump-header /shared/ssl//http.header  -L  -g '
seafile          | [Mon 14 Nov 2022 10:24:41 PM MSK] _ret='0'
seafile          | [Mon 14 Nov 2022 10:24:41 PM MSK] _hcode='0'
seafile          | [Mon 14 Nov 2022 10:24:41 PM MSK] code='200'
seafile          | [Mon 14 Nov 2022 10:24:41 PM MSK] trigger validation code: 200
seafile          | [Mon 14 Nov 2022 10:24:41 PM MSK] Pending, The CA is processing your order, please just wait. (1/30)
seafile          | [Mon 14 Nov 2022 10:24:41 PM MSK] sleep 2 secs to verify again
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] checking
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/176191167367/qkL9Wg'
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] payload
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] Retrying post
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] POST
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/176191167367/qkL9Wg'
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] _CURL='curl --silent --dump-header /shared/ssl//http.header  -L  -g '
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] _ret='0'
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] _hcode='0'
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] code='200'
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] mysefiledomain.com:Verify error:185.174.137.174: Invalid response from http://mysefiledomain.com/.well-known/acme-challenge/TSwPXbCX624EaaCx2_S6h7JLGgAsECKJtp4Y5JKSSrE: 404
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] Debug: get token url.
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] Retrying GET
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] GET
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] url='http://mysefiledomain.com/.well-known/acme-challenge/TSwPXbCX624EaaCx2_S6h7JLGgAsECKJtp4Y5JKSSrE'
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] timeout=1
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] displayError='1'
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] _CURL='curl --silent --dump-header /shared/ssl//http.header  -L  -g  --connect-timeout 1'
seafile          | <html>
seafile          | <head><title>404 Not Found</title></head>
seafile          | <body>
seafile          | <center><h1>404 Not Found</h1></center>
seafile          | <hr><center>nginx/1.18.0 (Ubuntu)</center>
seafile          | </body>
seafile          | </html>
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] ret='0'
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] _hcode='0'
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] Debugging, skip removing: /var/www//.well-known/acme-challenge/TSwPXbCX624EaaCx2_S6h7JLGgAsECKJtp4Y5JKSSrE
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] pid
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] No need to restore nginx, skip.
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] _clearupdns
seafile          | [Mon 14 Nov 2022 10:24:43 PM MSK] dns_entries
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] skip dns.
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] _on_issue_err
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] Please add '--debug' or '--log' to check more details.
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/176191167367/qkL9Wg'
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] payload='{}'
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] Retrying post
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] POST
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/176191167367/qkL9Wg'
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] _CURL='curl --silent --dump-header /shared/ssl//http.header  -L  -g '
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] _ret='0'
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] _hcode='0'
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] code='400'
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] socat doesn't exist.
seafile          | [Mon 14 Nov 2022 10:24:44 PM MSK] Diagnosis versions: 
seafile          | openssl:openssl
seafile          | OpenSSL 1.1.1f  31 Mar 2020
seafile          | apache:
seafile          | apache doesn't exist.
seafile          | nginx:
seafile          | nginx version: nginx/1.18.0 (Ubuntu)
seafile          | built with OpenSSL 1.1.1f  31 Mar 2020
seafile          | TLS SNI support enabled
seafile          | configure arguments: --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-7KvRN5/nginx-1.18.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-compat --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module
seafile          | socat:
seafile          | [2022-11-14 22:24:35] Preparing for letsencrypt ...
seafile          | [2022-11-14 22:24:35] Starting letsencrypt verification
seafile          | Traceback (most recent call last):
seafile          |   File "/scripts/start.py", line 86, in <module>
seafile          |     main()
seafile          |   File "/scripts/start.py", line 51, in main
seafile          |     init_letsencrypt()
seafile          |   File "/scripts/bootstrap.py", line 83, in init_letsencrypt
seafile          |     call('/scripts/ssl.sh {0} {1}'.format(ssl_dir, domain))
seafile          |   File "/scripts/utils.py", line 70, in call
seafile          |     return subprocess.check_call(*a, **kw)
seafile          |   File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
seafile          |     raise CalledProcessError(retcode, cmd)
seafile          | subprocess.CalledProcessError: Command '/scripts/ssl.sh /shared/ssl mysefiledomain.com' returned non-zero exit status 1.
1 Like

It would be helpful if you posted your docker-compose.yml as well.

This issue has already been resolved:

But then the following problem with the certificate appeared:

Run with:

docker run -d --name seafile
-e SEAFILE_SERVER_LETSENCRYPT=true
-e SEAFILE_SERVER_HOSTNAME=seafile.example.com
-e SEAFILE_ADMIN_EMAIL=me@example.com
-e SEAFILE_ADMIN_PASSWORD=a_very_secret_password
-v /opt/seafile-data:/shared
-p 80:80
-p 443:443
{pro-host}/seafileltd/seafile-pro:latest