Certbot Free SSL Certificate installation issue in GCP

Issue: Another instance of Certbot is running

while working in the GCP shell, if the ssl certification installation process or its setup get stopped due to some technical issues (like, system shutdown, power off, network failure etc.), then there have to start the process from the beginning. So, if we start it again there is a probability of facing the below-mentioned issue.

Text Box

The following steps are given to solve the issue mentioned above:

Step 1:

  • First, we need to remove the Certbot -auto and any Certbot OS packages.
  • If you have any Certbot packages installed using an OS package manager like apt, dnf, or yum, you should remove them before installing the Certbot snap to ensure that when you run the command certbot the snap is used rather than the installation from your OS package manager.
  • The exact command to do this depends on your OS, but common examples are sudo apt-get remove certbot, sudo dnf remove certbot, or sudo yum remove certbot.
  • Later after apache restart, do the SSL setup steps once more. If there face the same issue again, then move on to Step 2

Step 2: 

  • Kill the specific Certbot process
    • – Find the certbot process :  ps -ef | grep certb
    • – The process ID would be the first number after the user, like:root 5555 5100   kill the process :  kill 5555 (replace 5555 with your actual certbot PID#)[Text Wrapping Break]
    • NOTE: Most probably, there will be some permission issue for the Certbot process kill. So, use its root access (sudo su) to complete the process. 

Leave a comment

Your email address will not be published. Required fields are marked *