Bug 22636 - certbot doesn't find augeas library
Summary: certbot doesn't find augeas library
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Dimitri Jakov
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-21 21:32 CET by Dieter Schütze
Modified: 2020-08-16 22:29 CEST (History)
6 users (show)

See Also:
Source RPM: certbot-0.20.0-1
CVE:
Status comment:


Attachments

Description Dieter Schütze 2018-02-21 21:32:33 CET
Description of problem:

certbot -d xyz.de --apache
ends up with OSError: library not found: 'augeas'

installed rpm:
certbot-0.20.0-1.mga6
certbot-apache-0.20.0-1.mga6
lib64augeas0-1.8.0-1.1.mga6
augeas-lenses-1.8.0-1.1.mga6
python3-augeas-1.0.2-3.mga6
augeas-1.8.0-1.1.mga6
python-augeas-1.0.2-3.mga6
libaugeas0-1.8.0-1.1.mga6

Debug Info:
------------------------------------------------------------------
2018-02-21 20:07:56,483:DEBUG:certbot.main:certbot version: 0.20.0
2018-02-21 20:07:56,487:DEBUG:certbot.main:Arguments: ['-d', 'xyz.de', '--apache']
2018-02-21 20:07:56,489:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,
PluginEntryPoint#webroot)
2018-02-21 20:07:56,546:DEBUG:certbot.log:Root logging level set at 20
2018-02-21 20:07:56,549:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2018-02-21 20:07:56,551:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2018-02-21 20:07:56,745:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
  File "/usr/bin/certbot", line 9, in <module>
    load_entry_point('certbot==0.20.0', 'console_scripts', 'certbot')()
  File "/usr/lib/python3.5/site-packages/certbot/main.py", line 861, in main
    return config.func(config, plugins)
  File "/usr/lib/python3.5/site-packages/certbot/main.py", line 685, in run
    installer, authenticator = plug_sel.choose_configurator_plugins(config, plugins, "run")
  File "/usr/lib/python3.5/site-packages/certbot/plugins/selection.py", line 189, in choose_configurator_plugins
    authenticator = installer = pick_configurator(config, req_inst, plugins)
  File "/usr/lib/python3.5/site-packages/certbot/plugins/selection.py", line 25, in pick_configurator
    (interfaces.IAuthenticator, interfaces.IInstaller))
  File "/usr/lib/python3.5/site-packages/certbot/plugins/selection.py", line 77, in pick_plugin
    verified.prepare()
  File "/usr/lib/python3.5/site-packages/certbot/plugins/disco.py", line 248, in prepare
    return [plugin_ep.prepare() for plugin_ep in six.itervalues(self._plugins)]
  File "/usr/lib/python3.5/site-packages/certbot/plugins/disco.py", line 248, in <listcomp>
    return [plugin_ep.prepare() for plugin_ep in six.itervalues(self._plugins)]
  File "/usr/lib/python3.5/site-packages/certbot/plugins/disco.py", line 130, in prepare
    self._initialized.prepare()
  File "/usr/lib/python3.5/site-packages/certbot_apache/configurator.py", line 189, in prepare
    self.init_augeas()
  File "/usr/lib/python3.5/site-packages/certbot_apache/augeas_configurator.py", line 38, in init_augeas
    import augeas
  File "/usr/lib/python3.5/site-packages/augeas/__init__.py", line 45, in <module>
    from augeas.ffi import ffi, lib
  File "/usr/lib/python3.5/site-packages/augeas/ffi.py", line 42, in <module>
    lib = ffi.dlopen("augeas")
  File "/usr/lib64/python3.5/site-packages/cffi/api.py", line 139, in dlopen
    lib, function_cache = _make_ffi_library(self, name, flags)
  File "/usr/lib64/python3.5/site-packages/cffi/api.py", line 782, in _make_ffi_library
    backendlib = _load_backend_lib(backend, libname, flags)
  File "/usr/lib64/python3.5/site-packages/cffi/api.py", line 770, in _load_backend_lib
    raise OSError("library not found: %r" % (name,))
OSError: library not found: 'augeas'
----------------------------------------------------------------------------

How reproducible:


Steps to Reproduce:
1. install package certbot with all dependencies
2. run certbot -d xyz.de --apache or without --apache
3. certbot crash after error
Comment 1 Marja Van Waes 2018-02-21 21:51:06 CET
Assigning to the registered maintainer.

CC: (none) => marja11
Assignee: bugsquad => mitya

Comment 2 Daniel Tartavel 2018-10-19 22:30:21 CEST
certbot need libaugeas devel package: lib64augeas-devel

But there is syntax errors in /etc/httpd/conf/conf.d/security.conf.
two double-quote are missing in line 21 and 32

so certbot package need to be updated due to security issues because of this it refuse to register.

CC: (none) => contact

Comment 3 Per Nelvig 2018-11-08 11:47:48 CET
(In reply to Daniel Tartavel from comment #2)
> certbot need libaugeas devel package: lib64augeas-devel
> 
> But there is syntax errors in /etc/httpd/conf/conf.d/security.conf.
> two double-quote are missing in line 21 and 32
> 
> so certbot package need to be updated due to security issues because of this
> it refuse to register.

Exactly where are the trailing double quotes supposed to be entered. Is it possible that I patch this temporarily in my installation until the package is fixed?

CC: (none) => pernel

Comment 4 José Jorge 2018-12-14 08:29:51 CET
I have also found that it misses a requires on python3-pyasn1. Added it to cauldron, but I want to push an update to MGA6 for that.

How about this bug? Has someone worked on it? Should I add the runtime requires on libaugeas-devel?

CC: (none) => lists.jjorge

Comment 5 Thomas Backlund 2018-12-14 08:49:18 CET
Why does it need libaugeas-devel ?

Is augeas wrongly packaged so stuff in devel should be moved out ?

Ususally we try to avoid -devel deps for other than buildrequires

CC: (none) => tmb

Comment 6 José Jorge 2018-12-14 13:42:47 CET
(In reply to Thomas Backlund from comment #5)
> Why does it need libaugeas-devel ?
> 
> Is augeas wrongly packaged so stuff in devel should be moved out ?
> 
> Ususally we try to avoid -devel deps for other than buildrequires

I have certbot in MGA6 running well without libaugeas-devel, so yes I think this bug was elsewhere.

Ever confirmed: 1 => 0
Status: NEW => UNCONFIRMED

Comment 7 Dieter Schütze 2018-12-14 23:18:05 CET
I did not write about libaugeas-devel in my bug report with debug info.
Comment 8 Daniel Tartavel 2019-01-29 12:52:52 CET
Hi,

I just install certbot and i need to install lib64sepol1 which is nedeed by libaugeas-devel.
So i think lib64sepol1 is missing in dependances
Comment 9 Daniel Tartavel 2019-01-29 13:02:27 CET
Hi,

In Mageia, certbot need the option:
 --apache-challenge-location /etc/httpd/conf/conf.d

because, in certbot, default path is /etc/httpd/conf.d
Comment 10 Aurelien Oudelet 2020-08-16 22:29:35 CEST
Mageia 6 changed to end-of-life (EOL) status on 2019-09-30. It is no longer 
maintained, which means that it will not receive any further security or bug 
fix updates.

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 Mageia version.

Bug Reporter: Thank you for reporting this issue and we are sorry that we 
weren't able to fix it before Mageia 6's end of life. If you are able to 
reproduce it against a later version of Mageia, you are encouraged to click 
on "Version" and change it against that version of Mageia.

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
Mageia release includes newer upstream software that fixes bugs or makes them
obsolete.

If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].

[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/

Best regards,
Aurélien
Bugsquad Team

CC: (none) => ouaurelien
Resolution: (none) => OLD
Status: UNCONFIRMED => RESOLVED


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