-
-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] "cannot load certificate" on startup because directory does not exist #533
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
Docker run and full container logs are needed. You might think they're n/a but we ask for them for a reason. |
A human has marked this issue as invalid, this likely happened because the issue template was not used in the creation of the issue. |
I don't have the full logs now because I already fixed the issue temporarily. Where can I find the docker run in Unraid? |
When you deploy a container on unraid, it displays the docker run for you. |
Thanks, got it.
|
This is the same issue for 5 other unraid users as well that I know of, anything past, lscr.io/linuxserver/swag:3.0.1-ls345 is breaking certs. one thing that I did see happen after this version is certbot update.. We are also using DNS Cloudflare for verification like @janipewter is as well using. |
Latest build is 3.1.0-ls354 - this should've fixed any issues. |
You likely have old/custom configs somewhere directly pointing to /etc/letsencrypt Run As nobody has provided any logs I can't give you anything more specific than that. |
@thespad this is going to be it without checking. I looked for release notes and I must have missed it, I don't see a directory change I only see certbot version update.. Where is the new location if you don't mind? thanks |
It's the same path but prefixed with /config You shouldn't generally need to set an explicit path as we do it in the ssl.conf anyway so you should just be including that. |
Thanks all, as @thespad correctly pointed out I had a number of custom configs which were looking in |
Is there an existing issue for this?
Current Behavior
Docker image in Unraid automatically updated and now does not start due to the following error:
2025/01/08 18:51:27 [emerg] 21557#21557: cannot load certificate "/etc/letsencrypt/live/mydomain.com/fullchain.pem": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/letsencrypt/live/mydomain.con/fullchain.pem, r) error:10000080:BIO routines::no such file)
Strangely I checked in console and the only directory that exists under
/etc/letsencrypt
isrenewal-hooks
. All of the expected data still exists in the persistent storage and I can also see it in the container under/config/etc/letsencrypt
so I removed/etc/letsencrypt
and created a symbolic link of/config/etc/letsencrypt
at/etc/letsencrypt
and it fixed this issue. However it does not persist across reboot.Expected Behavior
Not this.
Steps To Reproduce
Run the image in Unraid
Environment
CPU architecture
x86-64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: