Crontab - local changes would be overwritten by merge

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:

from crontab: cd /opt/letsencrypt && git reset --hard && git pull
from cli: cd /opt/letsencrypt && git reset --hard && git pull

It produced this output:

crontab: error: Your local changes to the following files would be overwritten by merge: letsencrypt-auto
cli: success

My web server is (include version): Apache

The operating system my web server runs on is (include version): Linux

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

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

1 Like

Your error comes from git itself. But I’m wondering: why would you run these commands in the first place? Using git to get access to the certbot-auto script is not the recommended way. The script updates itself and keeps certbot updated as well. No need for git.


Thanks, I hadn’t spotted certbot-auto was doing it:

Upgrading certbot-auto 0.38.0 to 0.39.0…
Replacing certbot-auto…
Creating virtual environment…
Installing Python packages…
Installation succeeded.
Saving debug log to /var/log/letsencrypt/letsencrypt.log

The Git Pull was from a Linode tutorial -

Thanks for your help, I’ll delete that line.

That guide has been deprecated as it says on the page itself. There’s a link to the current guide if you’re interested.

1 Like

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