Can not renew letsencrypt certificate

Hi Everyone

I have my Pi3 setup with Hassbian and deconz + duckdns and letscrypt. It has been running flawless for about 2½ months now.

But time has come to renew the letsencrypt certificate and I cannot get it to work :frowning:.

The command I am trying to execute is the following:
$ ./certbot-auto renew --quiet --no-self-upgrade --standalone --preferred-challenges http-01

I am not at the computer right now but it said something a long the lines of “could not bind on port 80”.

When I set it up initiall I used this guide: https://www.home-assistant.io/docs/ecosystem/certificates/lets_encrypt/

Do you have Apache running? If so you’ll have to stop it before you can renew.

I have stopped the homeassistant service if that is what you mean? :slight_smile: I dont believe I have installed apache.

no, I mean apache. Home assistant runs on port 8123. Do you have a web server on your machine that would run on port 80?
What happens when you type the IP address of your server in a browser?

Ah I think I know what you mean, I have deconz runnning and when I enter the server address I get to the “Wireless light control system”. So im guessing that is what I need to stop before renewing?

Yes that sounds like it.

Great that makes sense. I will give it a go tonight and report back. :slight_smile:

1 Like

It worked :slight_smile:

For others coming here, what I did was:

  • Login with user “pi”

  • Stop the deconz service with
    sudo systemctl stop deconz

  • Navigate to certbot folder with
    cd certbot

  • Run update script with
    sudo ./certbot-auto renew --no-self-upgrade --standalone --preferred-challenges http-01

3 Likes