Certbot (snap) apache plugin missing

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. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: pi.iib.unsam.edu.ar

I ran this command: sudo certbot renew --dry-run

It produced this output:


Processing /etc/letsencrypt/renewal/pi.iib.unsam.edu.ar.conf


Cert is due for renewal, auto-renewing...
Could not choose appropriate plugin: The requested apache plugin does not appear to be installed
Attempting to renew cert (pi.iib.unsam.edu.ar) from /etc/letsencrypt/renewal/pi.iib.unsam.edu.ar.conf produced an unexpected error: The requested apache plugin does not appear to be installed. Skipping.
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates below have not been saved.)

The following certs could not be renewed:
/etc/letsencrypt/live/pi.iib.unsam.edu.ar/fullchain.pem (failure)

My web server is (include version):
apache2 -v
Server version: Apache/2.4.29 (Ubuntu)
Server built: 2023-10-30T11:12:27

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

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.36.0

I have followed instructions at Certbot Instructions | Certbot which made me install certbot using snap.

From reading issues and problems elsewhere I know that the apache plugin installed by sudo apt install python3-certbot-apache would not work, as python libraries for snaps are private and snaps would not access those installed elsewhere. Anyway trying to install this plugin with apt also tries to reinstall certbot, which is not what I want.

I tried to search for plugins using snap find certbot but the list does not include apache:
snap find certbot
Name Version Publisher Notes Summary
certbot 2.8.0 certbot-eff✓ classic Automatically configure HTTPS using Let's Encrypt
certbot-dns-cloudxns 1.32.2 certbot-eff✓ - CloudXNS DNS Authenticator plugin for Certbot
certbot-dns-cloudflare 2.8.0 certbot-eff✓ - Cloudflare DNS Authenticator plugin for Certbot
certbot-dns-dnsmadeeasy 2.8.0 certbot-eff✓ - DNS Made Easy DNS Authenticator plugin for Certbot
certbot-dns-dnsimple 2.8.0 certbot-eff✓ - DNSimple DNS Authenticator plugin for Certbot
certbot-dns-digitalocean 2.8.0 certbot-eff✓ - DigitalOcean DNS Authenticator plugin for Certbot
certbot-dns-nsone 2.8.0 certbot-eff✓ - NS1 DNS Authenticator plugin for Certbot
certbot-dns-sakuracloud 2.8.0 certbot-eff✓ - Sakura Cloud DNS Authenticator plugin for Certbot
certbot-dns-rfc2136 2.8.0 certbot-eff✓ - RFC 2136 DNS Authenticator plugin for Certbot
certbot-dns-ovh 2.8.0 certbot-eff✓ - OVH DNS Authenticator plugin for Certbot
certbot-dns-luadns 2.8.0 certbot-eff✓ - LuaDNS Authenticator plugin for Certbot
certbot-dns-linode 2.8.0 certbot-eff✓ - Linode DNS Authenticator plugin for Certbot
certbot-dns-route53 2.8.0 certbot-eff✓ - Route53 DNS Authenticator plugin for Certbot
certbot-dns-gehirn 2.8.0 certbot-eff✓ - Gehirn Infrastructure Service DNS Authenticator plugin for Certbot
certbot-dns-google 2.8.0 certbot-eff✓ - Google Cloud DNS Authenticator plugin for Certbot
certbot-dns-hetzner 1.22.0 bigmichi1 - Hetzner DNS Authenticator plugin for Certbot
certbot-dns-bunny 2.3.0 mattwthomas - Bunny.net DNS Authenticator plugin for Certbot
certbot-dns-constellix 0+git.31347d7 mintopiauk - Certbot DNS Plugin for Constellix
certbot-dns-porkbun v0.8 infinityofspace - Porkbun DNS Authenticator plugin for Certbot
certbot-dns-azure 2.4.0 terrz - Azure DNS Authenticator plugin for Certbot
certbot-dns-dnspod 0.24.1 ericzhang456 - DNSPod DNS Authenticator plugin for Certbot
certbot-dns-duckdns v1.3 infinityofspace - DuckDNS Authenticator plugin for Certbot
certbot-dns-multi 4.15.0 i-alez-o - Certbot DNS plugin supporting multiple providers
certbot-dns-inwx 2.2.0 oggy - INWX DNS Authenticator plugin for Certbot
certbot-dns-cloudflare-cname 1.0.1 rsc-dev - Cloudflare DNS Authenticator with CNAME support.
certbot-dns-standalone 1.1 laurik - Standalone DNS Authenticator plugin for Certbot
certbot-dns-aliyun 2.0.0 tengattack - Aliyun DNS Authenticator plugin for Certbot
certbot-standalone-nfq 0.1.0 i-alez-o - Certbot HTTP authenticator that works with any web server.
certbot-dns-njalla 1.0.1 chaptergy - Njalla DNS Authenticator plugin for Certbot
certbot-dns-netcup 1.4.3 coldfix - Certbot DNS Authenticator plugin for netcup
passprox 2.3.2 nsg - HAProxy with a bundled Certbot (Let's Encrypt support)
dnsrobocert 3.25.0 adferrand - Deploy and orchestrate DNS-challenged Let's Encrypt TLS certificates
tomcat-with-ssl 0.1 bsuttton - Apache Tomcat with SSL activated and managed by Certbot.

So I guess that the instructions at this page are wrong?

Running sudo certbot --apache gives the same error
sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The requested apache plugin does not appear to be installed

Any ideas? Thanks in advance -- fernan

1 Like

Hi @fernan, and welcome to the LE community forum :slight_smile:

Yes; Remove the apt installed certbot and use snap.
Follow the recommended installation instructions:
Certbot Instructions | Certbot (eff.org)

Also, since we are dealing with Apache, please review the output of:

sudo apachectl -t -D DUMP_VHOSTS

[ensure there are no name:port overlaps]

Also... this is very old, and could use an update:

3 Likes

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