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

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. https://crt.sh/?q=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: goravani.com

I ran this command: renew

It produced this output: The following error was encountered:

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

Either run as root, or set --config-dir, --work-dir, and --logs-dir to writeable paths.

My question is what do I do about the above error. I want to run my first renew of my certificate. I have set up this server with bare minimum knowledge. I have not locked anything down so I don't know why those paths are not read write at this time.. I dont know where they are located on my Mac server.. can you tell me where they are so that I can set them to read write? What is the right command for renewing automatically.. everything is in it's right original location where certbot put them.. these certs are 3 months old this is my first renew. Thank you for your time and consideration.

My web server is (include version): Apache 2.4 I think

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

My hosting provider, if applicable, is:

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

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):

1 Like

There is probably another copy of certbot "running" and waiting for input (maybe in the background).

READERS: Get involved. Be heard. Do your part, it starts with: If you read something you like; then like it :heart: !

1 Like

Certbot produces a different error message in this case:

Another instance of Certbot is already running.

I think @Daniel3 just needs to run Certbot as root (i.e. sudo certbot renew).

3 Likes

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