Certbot-auto renew fails; reports Augeas error

Per email I got remembered to refresh certificates; Logged on to the server and called certbot-auto renew - It did update “python packages” and then failed to parse the apache config - which had not changed much, only log-format got a vhost entry. Undoing the change does not fix certbot. There are no other changes, /etc is under revision control. Running with “-vvv” it looks, like the certbot private python installation is missing the right augeas lens? What do you think? Below protocol:

Should renew, less than 30 days before certificate expiry 2017-11-05 18:06:00 UTC.
Cert is due for renewal, auto-renewing...
Requested authenticator apache and installer apache
No installation (PluginEntryPoint#apache): Problem in Augeas installation
Traceback (most recent call last):
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/plugins/disco.py", line 130, in prepare
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_apache/configurator.py", line 166, in prepare
raise errors.NoInstallationError("Problem in Augeas installation")
NoInstallationError: Problem in Augeas installation
No candidate plugin
No candidate plugin
Selected authenticator None and installer None
Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Problem in Augeas installation',)

Hmm, seems I still am the one to blame; The certbot private python does not include augeas but uses the system wide one. And I actually removed that between now and the last update (probably, because no dependencies required the packages)

So aptitude install augeas-lenses libaugeas0 and all’s fine now

Probably certbot-auto could check that; It once did install it too?

1 Like

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