Page 1 of 2

letsencrypt renew: Port 80 is already in use

Posted: Sun Jan 19, 2020 3:38 pm
by lanznaster
I'm trying to renew my certificate via dietpi-launcher and getting the following error:
Attempting to renew cert from /etc/letsencrypt/renewal/XXXXXX.duckdns.org.conf produced an unexpected error: At least one of the required ports is already taken.. Skipping.

Full log att.

I usually do this once the certificate expires,I never used the auto renew. But this time I get this error. Any ideias?

I'm using lighttpd, port 80 and 443 are port forward.

tks

Re: letsencrypt renew: Port 80 is already in use

Posted: Sun Jan 19, 2020 4:09 pm
by Joulinar
Hi,
many thanks for your report.

There might be some stuck process from the past. pls try to reboot your system and rerun letsencrypt again.

Re: letsencrypt renew: Port 80 is already in use

Posted: Sun Jan 19, 2020 5:33 pm
by lanznaster
Hi, thanks for the feedback. But same results after rebooting. in att full log

Re: letsencrypt renew: Port 80 is already in use

Posted: Sun Jan 19, 2020 5:56 pm
by Joulinar
ok pls can you try to stop your web server first an than run letsencrypt again.

Re: letsencrypt renew: Port 80 is already in use

Posted: Sun Jan 19, 2020 6:23 pm
by lanznaster
It needs an webserver :(

Re: letsencrypt renew: Port 80 is already in use

Posted: Sun Jan 19, 2020 7:04 pm
by Joulinar
ok let's try this :)

stop lighttpd first

Code: Select all

dietpi-services stop lighttpd
and than try to renew the certificate

Code: Select all

certbot renew --standalone

Re: letsencrypt renew: Port 80 is already in use

Posted: Sun Jan 19, 2020 7:12 pm
by lanznaster
Sucess :D Thank you very much

What is the difference between

service lighttpd start - I used this one to stop it

and

dietpi-services stop lighttpd

Re: letsencrypt renew: Port 80 is already in use

Posted: Sun Jan 19, 2020 7:14 pm
by lanznaster
lanznaster wrote:
Sun Jan 19, 2020 7:12 pm
Sucess :D Thank you very much

What is the difference between

service lighttpd start - I used this one to stop it

and

dietpi-services stop lighttpd
Spoke to soon, now when trying to open something i got the error below. Do I need to do anything else?

Re: letsencrypt renew: Port 80 is already in use

Posted: Sun Jan 19, 2020 7:16 pm
by Joulinar
can you try to display/check the certificate, what the validation date is?

Re: letsencrypt renew: Port 80 is already in use

Posted: Sun Jan 19, 2020 7:17 pm
by lanznaster
Forgot to :

service lighttpd force-reload


:roll:

Its working now

Thank you one more time :D