LetsEncrypt renewal problem

236/31883MB	2.36 3.00 3.31 3/537 4521
[26145:26048 0:348] 05:55:37 Mon May 15 [root@circa] ~/.acme.sh 
(1:348)# ./acme.sh --apache --renew-all --debug
[Mon May 15 06:00:35 CEST 2017] Lets find script dir.
[Mon May 15 06:00:35 CEST 2017] _SCRIPT_='./acme.sh'
[Mon May 15 06:00:35 CEST 2017] _script='/root/.acme.sh/acme.sh'
[Mon May 15 06:00:35 CEST 2017] _script_home='/root/.acme.sh'
[Mon May 15 06:00:35 CEST 2017] Using default home:/root/.acme.sh
[Mon May 15 06:00:35 CEST 2017] Using config home:/root/.acme.sh
https://github.com/Neilpang/acme.sh
v2.6.7
[Mon May 15 06:00:35 CEST 2017] Using config home:/root/.acme.sh
[Mon May 15 06:00:35 CEST 2017] _stopRenewOnError
[Mon May 15 06:00:35 CEST 2017] di='/root/.acme.sh/domain.tld/'
[Mon May 15 06:00:35 CEST 2017] d='domain.tld'
[Mon May 15 06:00:35 CEST 2017] Using config home:/root/.acme.sh
[Mon May 15 06:00:35 CEST 2017] DOMAIN_PATH='/root/.acme.sh/domain.tld'
[Mon May 15 06:00:35 CEST 2017] Renew: 'domain.tld'
[Mon May 15 06:00:35 CEST 2017] Using config home:/root/.acme.sh
[Mon May 15 06:00:35 CEST 2017] Using api: https://acme-v01.api.letsencrypt.org
[Mon May 15 06:00:35 CEST 2017] Le_NextRenewTime='1493532525'
[Mon May 15 06:00:36 CEST 2017] _on_before_issue
[Mon May 15 06:00:36 CEST 2017] Le_LocalAddress
[Mon May 15 06:00:36 CEST 2017] Check for domain='domain.tld'
[Mon May 15 06:00:36 CEST 2017] _currentRoot='no'
[Mon May 15 06:00:36 CEST 2017] Standalone mode.
[Mon May 15 06:00:36 CEST 2017] _checkport='80'
[Mon May 15 06:00:36 CEST 2017] _checkaddr
[Mon May 15 06:00:36 CEST 2017] Using: ss
[Mon May 15 06:00:36 CEST 2017] LISTEN     0      511    IP:80                       *:*                   users:(("apache2",pid=32751,fd=3),("apache2",pid=29557,fd=3),("apache2",pid=25549,fd=3),("apache2",pid=24570,fd=3),("apache2",pid=14997,fd=3),("apache2",pid=14987,fd=3),("apache2",pid=14919,fd=3),("apache2",pid=14918,fd=3),("apache2",pid=14917,fd=3),("apache2",pid=14911,fd=3),("apache2",pid=14053,fd=3),("apache2",pid=11395,fd=3),("apache2",pid=11394,fd=3),("apache2",pid=3714,fd=3))
LISTEN     0      511    IP:80                       *:*                   users:(("nginx",pid=10310,fd=6),("nginx",pid=10309,fd=6),("nginx",pid=10308,fd=6),("nginx",pid=10307,fd=6),("nginx",pid=10306,fd=6),("nginx",pid=10305,fd=6),("nginx",pid=10304,fd=6),("nginx",pid=10303,fd=6),("nginx",pid=10302,fd=6))
[Mon May 15 06:00:36 CEST 2017] tcp port 80 is already used by (("apache2",pid=32751,fd=3),("apache2",pid=29557,fd=3),("apache2",pid=25549,fd=3),("apache2",pid=24570,fd=3),("apache2",pid=14997,fd=3),("apache2",pid=14987,fd=3),("apache2",pid=14919,fd=3),("apache2",pid=14918,fd=3),("apache2",pid=14917,fd=3),("apache2",pid=14911,fd=3),("apache2",pid=14053,fd=3),("apache2",pid=11395,fd=3),("apache2",pid=11394,fd=3),("apache2",pid=3714,fd=3))
(("nginx",pid=10310,fd=6),("nginx",pid=10309,fd=6),("nginx",pid=10308,fd=6),("nginx",pid=10307,fd=6),("nginx",pid=10306,fd=6),("nginx",pid=10305,fd=6),("nginx",pid=10304,fd=6),("nginx",pid=10303,fd=6),("nginx",pid=10302,fd=6))
[Mon May 15 06:00:36 CEST 2017] Please stop it first
[Mon May 15 06:00:36 CEST 2017] _on_before_issue.
[Mon May 15 06:00:36 CEST 2017] Return code: 1
[Mon May 15 06:00:36 CEST 2017] Error renew domain.tld, Go ahead to next one.

is this linked github issue the right resolution for what im getting above? i got a cert renewal email and trying to do ./acme.sh --renew-all gives me that error msg… thanks!

How did you install LetsEncrypt ?

I don’t remember exactly but I believe it was through the initial installer (if that is possible) or box install command.

If it isn’t clear from the above I also have the plex subdomain/cloudflare/nginx set up as well.

You will need to issue a stop to the nginx service first, then initiate the box install letsencrypt. If it’s just renewal you’re after you can then simply run the script you see in crontab -e. After your cert is renewed, be sure to start the nginx service once more.

thank you! worked perfectly.