# Ubuntu 18.04 - certbot-auto renew fails

**URL:** <https://community.letsencrypt.org/t/ubuntu-18-04-certbot-auto-renew-fails/103023>\
**Category:** Help\
**Created:** [September 28, 2019, 6:06pm UTC](https://community.letsencrypt.org/t/ubuntu-18-04-certbot-auto-renew-fails/103023 "2019-09-28T18:06:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mario-85](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Mario-85](https://community.letsencrypt.org/u/Mario-85)\
**Post date:** [September 28, 2019, 6:06pm UTC](https://community.letsencrypt.org/t/ubuntu-18-04-certbot-auto-renew-fails/103023/1 "2019-09-28T18:06:30Z")

</div>

I had setup a mailserver and webserver on ubuntu 18.04 and get my certificate with certbot (certbot-auto). All works fine, but the auto renrew fails anytime.  
I read the other topics, but this errors or solutions don’t help me, because i don’t have the paths or have other errors or so.

The error is:  
###############  
Attempting to renew cert (mail.XXXXXXXXX.eu) from /etc/letsencrypt/renewal/mail.eichner-regensburg.eu.conf produced an unexpected error: The nginx plugin is not working; there may be problems with your existing configuration.  
The error was: NoInstallationError(“Could not find a usable ‘nginx’ binary. Ensure nginx exists, the binary is executable, and your PATH is set correctly.”,). Skipping.  
All renewal attempts failed. The following certs could not be renewed:  
/etc/letsencrypt/live/mail.XXXXXXXXXXXXX.eu/fullchain.pem (failure)  
1 renew failure(s), 0 parse failure(s)

The command in “crontab -e” is:  
@daily /opt/certbot-auto renew --quiet --no-self-upgrade --force-renewal && systemctl reload postfix dovecot nginx

[There is no line with 'Path= ’ or so in creontab]

My web server is (include version):  
nginx version: nginx/1.14.0 (Ubuntu)

The operating system my web server runs on is (include version):  
Description: Ubuntu 18.04.3 LTS

The version of my client is (e.g. output of `certbot --version` or `certbot-auto --version` if you’re using Certbot):

certbot 0.23.0

The path of certbot-auto is “/opt/”. When i run certbot-auto --version, i get “command not found” but there is certbot-auto in /opt… (this is additional error i think).

How can i get the “auto renew” running.

I’m from germany. Hope my english is ok.

Thanks.

---

<div class="post-metadata">

**Author:** ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)\
**Post date:** [September 28, 2019, 9:30pm UTC](https://community.letsencrypt.org/t/ubuntu-18-04-certbot-auto-renew-fails/103023/2 "2019-09-28T21:30:40Z")

</div>

```
grep PATH /etc/crontab
command -v nginx
```

---

<div class="post-metadata">

**Author:** ![Mario-85](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Mario-85](https://community.letsencrypt.org/u/Mario-85)\
**Post date:** [October 1, 2019, 5:16pm UTC](https://community.letsencrypt.org/t/ubuntu-18-04-certbot-auto-renew-fails/103023/3 "2019-10-01T17:16:36Z")

</div>

I found the solution.

There was an additional cron job in /etc/cron.d/certbot (i think automated created). I’m uncommented this cron job and now there is only my job in crontab (crontab -e):  
@daily /opt/certbot-auto renew --quiet --no-self-upgrade && systemctl reload postfix dovecot nginx

Actually i don’t see any errors in /var/mail/root (like before), because there is actually no file called “root” in this folder as before. So i think all is ok.

But thanks for your reply.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [October 31, 2019, 5:16pm UTC](https://community.letsencrypt.org/t/ubuntu-18-04-certbot-auto-renew-fails/103023/4 "2019-10-31T17:16:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
