Bug 1470180 - Certbot fails to renew LetsEncrypt certificate for Apache
Summary: Certbot fails to renew LetsEncrypt certificate for Apache
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: certbot
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: James Hogarth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-12 13:42 UTC by Jerry
Modified: 2018-05-29 12:20 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-29 12:20:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jerry 2017-07-12 13:42:14 UTC
My certificate was up for renewal this morning and I received errors from cron.  I tried running it manually, reinstalling (dnf remove, dnf reinstall), etc. to no avail.  I did renew the certificate by renaming /root/.local/share/letsencrypt temporarily and downloading certbot-auto from the eff.org site, so there has been no disruption in service on their end.

[root@myserver ~]# certbot --apache -vvv
Root logging level set at -10
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requested authenticator apache and installer apache
No candidate plugin
Selected authenticator None and installer None
The requested apache plugin does not appear to be installed

[root@myserver ~]# cat /var/log/letsencrypt/letsencrypt.log
2017-07-12 13:27:10,668:DEBUG:certbot.main:certbot version: 0.14.1
2017-07-12 13:27:10,669:DEBUG:certbot.main:Arguments: ['--apache', '-vvv']
2017-07-12 13:27:10,670:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2017-07-12 13:27:10,705:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2017-07-12 13:27:10,705:DEBUG:certbot.cli:Default Detector is Namespace(account=<certbot.cli._Default object at 0x7f8f661943c8>, agree_dev_preview=None, allow_subset_of_names=<certbot.cli._Default object at 0x7f8f661946a0>, apache=True, authenticator='apache', break_my_certs=<certbot.cli._Default object at 0x7f8f66193240>, cert_path=<certbot.cli._Default object at 0x7f8f661a3cf8>, certname=<certbot.cli._Default object at 0x7f8f66199860>, chain_path=<certbot.cli._Default object at 0x7f8f661a3f98>, checkpoints=<certbot.cli._Default object at 0x7f8f661a3828>, config_dir=<certbot.cli._Default object at 0x7f8f6612c0b8>, config_file=None, configurator=<certbot.cli._Default object at 0x7f8f6612c470>, csr=<certbot.cli._Default object at 0x7f8f661a3550>, debug=<certbot.cli._Default object at 0x7f8f661939e8>, debug_challenges=<certbot.cli._Default object at 0x7f8f66193780>, dialog=None, domains=<certbot.cli._Default object at 0x7f8f661999e8>, dry_run=<certbot.cli._Default object at 0x7f8f66199780>, duplicate=<certbot.cli._Default object at 0x7f8f661942b0>, eff_email=<certbot.cli._Default object at 0x7f8f661990f0>, email=<certbot.cli._Default object at 0x7f8f66199208>, expand=<certbot.cli._Default object at 0x7f8f66194cc0>, force_interactive=<certbot.cli._Default object at 0x7f8f66199b70>, fullchain_path=<certbot.cli._Default object at 0x7f8f661a3eb8>, func=<function run at 0x7f8f6911a0d0>, hsts=<certbot.cli._Default object at 0x7f8f66193470>, http01_port=<certbot.cli._Default object at 0x7f8f66193390>, ifaces=<certbot.cli._Default object at 0x7f8f661a3b38>, init=<certbot.cli._Default object at 0x7f8f661a3908>, installer='apache', key_path=<certbot.cli._Default object at 0x7f8f661a3dd8>, logs_dir=<certbot.cli._Default object at 0x7f8f6612c278>, manual=<certbot.cli._Default object at 0x7f8f6612ca20>, manual_auth_hook=<certbot.cli._Default object at 0x7f8f6612cc88>, manual_cleanup_hook=<certbot.cli._Default object at 0x7f8f6612cd68>, manual_public_ip_logging_ok=<certbot.cli._Default object at 0x7f8f6612ce48>, must_staple=<certbot.cli._Default object at 0x7f8f661a34a8>, nginx=<certbot.cli._Default object at 0x7f8f6612c828>, no_bootstrap=<certbot.cli._Default object at 0x7f8f66193e48>, no_self_upgrade=<certbot.cli._Default object at 0x7f8f66193f98>, no_verify_ssl=<certbot.cli._Default object at 0x7f8f66193630>, noninteractive_mode=<certbot.cli._Default object at 0x7f8f66199cc0>, num=<certbot.cli._Default object at 0x7f8f66199eb8>, os_packages_only=<certbot.cli._Default object at 0x7f8f66194160>, post_hook=<certbot.cli._Default object at 0x7f8f66194dd8>, pre_hook=<certbot.cli._Default object at 0x7f8f66194b70>, pref_challs=<certbot.cli._Default object at 0x7f8f661948d0>, prepare=<certbot.cli._Default object at 0x7f8f661a3a20>, quiet=<certbot.cli._Default object at 0x7f8f66193cf8>, reason=<certbot.cli._Default object at 0x7f8f661a3748>, redirect=<certbot.cli._Default object at 0x7f8f661a35c0>, register_unsafely_without_email=<certbot.cli._Default object at 0x7f8f66199550>, reinstall=<certbot.cli._Default object at 0x7f8f66194e10>, renew_by_default=<certbot.cli._Default object at 0x7f8f66194940>, renew_hook=<certbot.cli._Default object at 0x7f8f661990b8>, renew_with_new_domains=<certbot.cli._Default object at 0x7f8f661947f0>, rsa_key_size=<certbot.cli._Default object at 0x7f8f661a3518>, server=<certbot.cli._Default object at 0x7f8f6612c358>, staging=<certbot.cli._Default object at 0x7f8f66193b38>, standalone=<certbot.cli._Default object at 0x7f8f6612c940>, standalone_supported_challenges=<certbot.cli._Default object at 0x7f8f6612cf28>, staple=<certbot.cli._Default object at 0x7f8f661940b8>, strict_permissions=<certbot.cli._Default object at 0x7f8f66194630>, text_mode=<certbot.cli._Default object at 0x7f8f66199e10>, tls_sni_01_port=<certbot.cli._Default object at 0x7f8f661934e0>, tos=<certbot.cli._Default object at 0x7f8f66194550>, uir=<certbot.cli._Default object at 0x7f8f661939b0>, update_registration=<certbot.cli._Default object at 0x7f8f66199358>, user_agent=<certbot.cli._Default object at 0x7f8f6619d2b0>, validate_hooks=<certbot.cli._Default object at 0x7f8f66199470>, verb='run', verbose_count=True, webroot=<certbot.cli._Default object at 0x7f8f6612cb38>, webroot_map=<certbot.cli._Default object at 0x7f8f66132128>, webroot_path=<certbot.cli._Default object at 0x7f8f6612cc50>, work_dir=<certbot.cli._Default object at 0x7f8f6612c198>)
2017-07-12 13:27:10,731:DEBUG:certbot.log:Root logging level set at -10
2017-07-12 13:27:10,732:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2017-07-12 13:27:10,733:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2017-07-12 13:27:10,733:DEBUG:certbot.plugins.selection:No candidate plugin
2017-07-12 13:27:10,733:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None

Your help will be appreciated!

Thanks.

Comment 1 Jerry 2017-07-12 14:23:59 UTC
Okay, as usual, after posting a bug, I found a solution.  It appears that Fedora 26 needs the python3 apache certbot plugin?  This was my output below:

[root@myserver ~]# certbot plugins
Saving debug log to /var/log/letsencrypt/letsencrypt.log
* standalone
Description: Spin up a temporary webserver
Interfaces: IAuthenticator, IPlugin
Entry point: standalone = certbot.plugins.standalone:Authenticator

* webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot.plugins.webroot:Authenticator
[root@myserver ~]# rpm -qa | grep certbot
certbot-0.14.1-3.fc26.noarch
python2-certbot-apache-0.14.1-1.fc26.noarch
python3-certbot-0.14.1-3.fc26.noarch
python2-certbot-0.14.1-3.fc26.noarch
[root@myserver ~]# dnf install python3-certbot-apache-0.14.1-1.fc26.noarch 

...

[root@myserver ~]# certbot plugins
Saving debug log to /var/log/letsencrypt/letsencrypt.log
* apache
Description: Apache Web Server plugin - Beta
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.configurator:ApacheConfigurator

* standalone
Description: Spin up a temporary webserver
Interfaces: IAuthenticator, IPlugin
Entry point: standalone = certbot.plugins.standalone:Authenticator

* webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot.plugins.webroot:Authenticator
[root@myserver ~]#

I upgraded from Fedora 25 to Fedora 26 a few weeks ago.  I did not alter these rpm files until this morning, so I think perhaps the python3 apache certbot plugin should now be required, or the python2 plugin should be fixed.

Thanks!

Comment 2 Sten Turpin 2017-11-01 19:02:02 UTC
After upgrading f25 -> f26, certbot renew failed, and I had to install python3-certbot-apache. This let the renew run successfully. I stepped through my dnf history like this: 

[root@serv01 ~]# for id in $(seq 1 $(dnf history info | awk '/ID/ {print $NF}')); do dnf history info $id | grep certbot && echo $id ; done

it looks like I manually installed certbot with "dnf -y install certbot" which pulled in python2-certbot as a dependency, then manually installed python2-certbot-apache afterward to let it set up apache. The next hit is when I did the dnf system-upgrade to 26, which appears to have pulled in python3-certbot as a dependency: 


[root@serv01 ~]#  sudo dnf history info 69 | grep -A1 certbot
    Upgraded   certbot-0.14.1-3.fc25.noarch                                        @updates/25
    Upgrade            0.14.1-3.fc26.noarch                                        @@commandline
--
    Upgraded   python2-certbot-0.14.1-3.fc25.noarch                                @updates/25
    Upgrade                    0.14.1-3.fc26.noarch                                @@commandline
    Upgraded   python2-certbot-apache-0.14.1-1.fc25.noarch                         @updates/25
    Upgrade                           0.14.1-1.fc26.noarch                         @@commandline
--
    Install    python3-certbot-0.14.1-3.fc26.noarch                                @@commandline
    Install    python3-cffi-1.9.1-2.fc26.armv7hl                                   @@commandline
--


Not sure what could be done better to make sure the python3-certbot-apache plugin gets installed where it's needed, there's not a simple matter of a missing dep here.

Comment 3 Fedora End Of Life 2018-05-03 07:58:36 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2018-05-29 12:20:02 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
is no longer maintained, which means that it will not receive any
further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.