Skip to content

[BUG] "cannot load certificate" on startup because directory does not exist #533

Closed
@janipewter

Description

@janipewter

Is there an existing issue for this?

  • I have searched the existing issues

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 is renewal-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

- OS: Unraid 6.12.14
- How docker service was installed: through Community Apps store in Unraid

CPU architecture

x86-64

Docker creation

n/a

Container logs

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions