Letsencrypt verification fails because certificate renew time isn't due - Seafile Pro 9.0.10 Docker

When ssl.sh is called it exits with status code 2, seemingly because the renewal time isn’t due. If I add –force tag it gets a new certificate and starts up normally.

*** Running /etc/my_init.d/01_create_data_links.sh…
*** Booting runit daemon…
*** Runit started as PID 25
*** Running /scripts/enterpoint.sh…
2022-10-30 02:58:27 Nginx ready
2022-10-30 02:58:27 This is an idle script (infinite loop) to keep container running.
[Sun 30 Oct 2022 02:58:29 AM CEST] Lets find script dir.
[Sun 30 Oct 2022 02:58:29 AM CEST] SCRIPT=’/root/.acme.sh/acme.sh’
[Sun 30 Oct 2022 02:58:29 AM CEST] _script=’/root/.acme.sh/acme.sh’
[Sun 30 Oct 2022 02:58:29 AM CEST] _script_home=’/root/.acme.sh’
[Sun 30 Oct 2022 02:58:29 AM CEST] Using config home:/shared/ssl/
https://github.com/acmesh-official/acme.sh
v3.0.2
[Sun 30 Oct 2022 02:58:29 AM CEST] Running cmd: renew
[Sun 30 Oct 2022 02:58:29 AM CEST] Using config home:/shared/ssl/
[Sun 30 Oct 2022 02:58:29 AM CEST] default_acme_server
[Sun 30 Oct 2022 02:58:29 AM CEST] ACME_DIRECTORY=‘https://acme.zerossl.com/v2/DV90
[Sun 30 Oct 2022 02:58:29 AM CEST] DOMAIN_PATH=’/shared/ssl//my.domain.com’
[Sun 30 Oct 2022 02:58:29 AM CEST] Renew: ‘my.domain.com
[Sun 30 Oct 2022 02:58:29 AM CEST] Le_API=‘https://acme-v02.api.letsencrypt.org/directory
[Sun 30 Oct 2022 02:58:29 AM CEST] Using config home:/shared/ssl/
[Sun 30 Oct 2022 02:58:29 AM CEST] ACME_DIRECTORY=‘https://acme-v02.api.letsencrypt.org/directory
[Sun 30 Oct 2022 02:58:29 AM CEST] Skip, Next renewal time is: Wed 28 Dec 2022 11:24:07 PM UTC
[Sun 30 Oct 2022 02:58:29 AM CEST] Add ‘–force’ to force to renew.
[2022-10-30 02:58:27] Preparing for letsencrypt …
[2022-10-30 02:58:27] Starting letsencrypt verification
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 51, in main
init_letsencrypt()
File “/scripts/bootstrap.py”, line 83, in init_letsencrypt
call(’/scripts/ssl.sh {0} {1}’.format(ssl_dir, domain))
File “/scripts/utils.py”, line 70, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python3.8/subprocess.py”, line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/scripts/ssl.sh /shared/ssl my.domain.com’ returned non-zero exit status 2.
*** Shutting down /scripts/enterpoint.sh (PID 26)…
*** Shutting down runit daemon (PID 25)…

Apart from editing the ssl.sh file im out of ideas on how to fix this.