letsencrypt renew: Port 80 is already in use Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
lanznaster
Posts: 16
Joined: Thu Sep 05, 2019 9:26 am

letsencrypt renew: Port 80 is already in use

Post 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
Attachments
error.PNG

User avatar
Joulinar
Posts: 1505
Joined: Fri Nov 15, 2019 11:49 pm

Re: letsencrypt renew: Port 80 is already in use

Post 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.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team

lanznaster
Posts: 16
Joined: Thu Sep 05, 2019 9:26 am

Re: letsencrypt renew: Port 80 is already in use

Post by lanznaster »

Hi, thanks for the feedback. But same results after rebooting. in att full log
Attachments
letsencrypt.7z
(4.03 KiB) Downloaded 19 times

User avatar
Joulinar
Posts: 1505
Joined: Fri Nov 15, 2019 11:49 pm

Re: letsencrypt renew: Port 80 is already in use

Post by Joulinar »

ok pls can you try to stop your web server first an than run letsencrypt again.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team

lanznaster
Posts: 16
Joined: Thu Sep 05, 2019 9:26 am

Re: letsencrypt renew: Port 80 is already in use

Post by lanznaster »

It needs an webserver :(
Attachments
error1.PNG

User avatar
Joulinar
Posts: 1505
Joined: Fri Nov 15, 2019 11:49 pm

Re: letsencrypt renew: Port 80 is already in use

Post 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
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team

lanznaster
Posts: 16
Joined: Thu Sep 05, 2019 9:26 am

Re: letsencrypt renew: Port 80 is already in use

Post 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

lanznaster
Posts: 16
Joined: Thu Sep 05, 2019 9:26 am

Re: letsencrypt renew: Port 80 is already in use

Post 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?
Attachments
error2.PNG

User avatar
Joulinar
Posts: 1505
Joined: Fri Nov 15, 2019 11:49 pm

Re: letsencrypt renew: Port 80 is already in use

Post by Joulinar »

can you try to display/check the certificate, what the validation date is?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team

lanznaster
Posts: 16
Joined: Thu Sep 05, 2019 9:26 am

Re: letsencrypt renew: Port 80 is already in use

Post by lanznaster »

Forgot to :

service lighttpd force-reload


:roll:

Its working now

Thank you one more time :D

Post Reply