[Errno 13] Permission denied: '/var/log/letsencrypt/letsencrypt.log'

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: kalevent.com

I ran this command: command: certonly --config /etc/letsencrypt/cli.ini -d kalevent.com -d www.kalevent.com --config-dir /etc/letsencrypt/config --work-dir /etc/letsencrypt/work --logs-dir /var/log/letsencrypt

It produced this output: (.venv) kofi (ci-cd *) kalevent $ docker logs a212679d02d5
The following error was encountered:
[Errno 13] Permission denied: '/var/log/letsencrypt/letsencrypt.log'
Either run as root, or set --config-dir, --work-dir, and --logs-dir to writeable paths.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-gi8sjy6v/log or re-run Certbot with -v for more details. The container exits as soon as it starts

My web server is (include version): nginx proxy server container for the frontend

The operating system my web server runs on is (include version): Mac

My hosting provider, if applicable, is: Mac desktop docker app

I can login to a root shell on my machine (yes or no, or I don't know): Yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 2.7.4

Lets be clear, I have checked the permission: There is read and write permissions

How did you check that the container had r/w permissions?

Is there anything that might allow whatever test you used to work but yet block Certbot (which is written in Python)? Like some sort of antivirus.

4 Likes

ls -ld /var/log/letsencrypt/letsencrypt.log. This file now has the right permissions but I now have new limit restrictions

Which one? There are several

I am guessing it's the too many failures per hour limit. If so just wait an hour. Otherwise post the message here for advice or just view the topic below.

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.