Another instance of Certbot is already running - Solved - Linux guru

Image source certbot

I got this error while configuring SSL on my website using certbot. So here is the steps which i used to resolve this `Another instance of Certbot is already running` error.

Error :

Another instance of Certbot is already running

certbot --server --manual --preferred-challenges dns  --installer nginx -d *
Another instance of Certbot is already running
Reason :
when you run certbot form your machine and unexpectedly stop the command, Then cert bot is not running but it left some .certbot.lock files behind.You need to kill the certbot instance form your machine.
Solution :
  • Run the below command to find killed certbot.
find / -type f -name ".certbot.lock"
You can see result of the command, If there are, you can remove them.
  • Run below command to remove them.
find / -type f -name ".certbot.lock" -exec rm {} \;
And try again. Hope your problem is resolved. You can read more articales on my blog about let's encrypt configuration for Nginx and for Kubernetes SSL.

Linux Guru

Welcome to my Linux blog! Hello Friends, I am Vishal Vyas. I am a DevOps engineer and expert in Linux and Cloud Computing. Also I am a Certified Kubernetes Administrator, I have a total 12 plus years of experience in the IT field and I have worked in various technologies. I write about Linux, AWS, DevOps and web Technologies, I have started this blog to share my technical knowledge with all, I am posting here what I learn from the latest web technologies and the likes.


Previous Post Next Post