FS#51492 - [lighttpd] start failed - missing dependencie

Attached to Project: Arch Linux
Opened by ua4000 (ua4000) - Saturday, 22 October 2016, 08:16 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 25 December 2017, 14:04 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Latest lighttp update 1.4.42 contains new mod_authn_mysql. lighttpd fails to start:

Oct 22 06:41:16 xx lighttpd-angel[249]: 2016-10-22 06:41:16: (plugin.c.227) dlopen() failed for: /usr/lib/lighttpd/mod_authn_mysql.so libmysqlclient.so.18: cannot open shared object file: No such file or directory

Workaround: install missing file:
$ pkgfile libmysqlclient.so
extra/libmariadbclient

Solution:
Include libmariadbclient to *required* lighttpd dependencies.

Thanks very much!
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Monday, 25 December 2017, 14:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  currently fixed, probably via lighttpd 1.4.44-1
Comment by Pierre Schmitz (Pierre) - Tuesday, 01 November 2016, 14:17 GMT
libmariadbclient is only needed when mod_authn_mysql is enabled. As such it is an optional dependency. I updated the PKGBUILD accordingly.
Comment by ua4000 (ua4000) - Tuesday, 01 November 2016, 23:38 GMT
  • Field changed: Percent Complete (100% → 0%)
Hi, the new "mod_authn_mysql" is NOT enabled in my config, I use still the old one (mod_auth):
$ egrep server.modules /etc/lighttpd/lighttpd.conf
server.modules += ( "mod_rewrite" )
server.modules += ( "mod_auth" )
server.modules += ( "mod_proxy" )
#server.modules += ( "mod_evasive" )
server.modules += ( "mod_setenv" )
server.modules += ( "mod_accesslog" )


With the these actiated modules lightttp won't start without libmariadbclient package.

Thanks ua4000
Comment by Oleg (moonman) - Tuesday, 01 November 2016, 23:54 GMT
Same here. Something seems really off with this package. I just upgraded it without changing the config and had to install libmariadbclient to get it to run again. Inclusion of the package into the runtime deps may be not the best solution, but lighttpd won't work without it even though it should
Comment by Hannes Dinter (cdo) - Tuesday, 08 November 2016, 12:59 GMT
This is a known upstream bug: lighttpd tries to load mod_authn_mysql even if it is *not* enabled in the config (see first two comments on https://www.lighttpd.net/2016/10/31/1.4.43/)
Introduced with this revision: https://redmine.lighttpd.net/projects/lighttpd/repository/revisions/ae91578895bd7239d1bfd9f73d75a2039cb26ae3

As indicated by others, installing libmariadbclient (adding as a dependency) resolves the issue. I guess after this gets fixed upstream, the dependency on libmariadbclient can be removed again (or set to optional).
Comment by ua4000 (ua4000) - Tuesday, 22 November 2016, 18:06 GMT
Thanks for pointing out the upstream bug!

Best regards, ua4000
Comment by Tinu Weber (ayekat) - Friday, 20 January 2017, 20:51 GMT
This bug seems to have been resolved (not sure which version exactly (I just checked with 1.4.46), but taking the responses to the linked article above, I would guess 1.4.43).

Loading...