Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288331 - www-servers/apache-2.2.13-r1: Invalid command 'DavLockDB'
Summary: www-servers/apache-2.2.13-r1: Invalid command 'DavLockDB'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-09 15:58 UTC by Martin Mokrejš
Modified: 2009-11-13 07:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2009-10-09 15:58:23 UTC
# /etc/init.d/apache2 start
* Caching service dependencies...                                                                                                                                                                [ ok ]
* apache2 has detected a syntax error in your configuration files:
Syntax error on line 2 of /etc/apache2/modules.d/45_mod_dav.conf:
Invalid command 'DavLockDB', perhaps misspelled or defined by a module not included in the server configuration
* ERROR: apache2 failed to start


I appears I have in APACHE2_OPTS="... -D DAV" in /etc/conf.d/apache2.

# cat /etc/apache2/modules.d/45_mod_dav.conf
<IfDefine DAV>
DavLockDB "/var/lib/dav/lockdb"

# The following directives disable redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a
# problem with several clients that do not appropriately handle
# redirects for folders with DAV methods.
<IfModule setenvif_module>
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012345678]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
</IfModule>
</IfDefine>

# vim: ts=4 filetype=apache


Hmm, I will upgrade to apache-2.2.14-r1 but am pretty sure this is not problem 
with me not running revdep-rebuild.

# emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30.6 i686)
=================================================================
System uname: Linux-2.6.30.6-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 09 Oct 2009 09:45:02 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.5.4-r3, 2.6.3, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r4
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS="-Wl,-O1"
LINGUAS="en cs cz"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache audacious audiofile bash-completion bcmath berkdb blas bluetooth boost branding bzip2 cairo caps cblas cddb cdparanoia cdr clamav cli colordiff compress consolekit cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbi dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat faad fam fame fat fbcon ffmpeg fftw firefox flac flash foomaticdb fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gsm gstreamer gtk gtkhtml hal hdf hdf5 hp2xx i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb isdnlog ithreads jack java javascript jbig jce jikes jpeg jpeg2k kdtree kerberos lame lapack laptop lcms leim libcaca libedit libnotify libwww live lzo lzw mad maildir matroska mhash mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug modules motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mpich2 mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp openssl pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3 qt3support qt4 quicktime rar raw readline recode reflection reiserfs rpm samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl startup-notification subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads thunar tidy tiff tk transcode truetype unicode urandom usb userlocales utils uuencode v4l v4l2 vcd vhook vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcf xfs xft xinerama xinetd xml xorg xpm xsl xslt xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2009-10-10 20:39:28 UTC
do you actually have the dav modules installed? since 2.2.13 the config does not silently ignore configuration snippets from /etc/apache2/modules.d/ if the module is missing.
Comment 2 Martin Mokrejš 2009-10-11 18:46:27 UTC
Truly said I have no idea. If I remember right I had portage dependency issues with git or svn and somehow was forced to include dav USE flag, something along that. Well, this is what I put in package.use:

dev-util/subversion -dso
www-servers/apache -svn -git -cvs dav


And, some details:

# equery belongs /var/lib/dav/
 * Searching for /var/lib/dav/ ... 
www-servers/apache-2.2.14-r1 (/var/lib/dav)
# ls -la /var/lib/dav/lockdb
ls: cannot access /var/lib/dav/lockdb: No such file or directory
# equery belongs 45_mod_dav.conf
 * Searching for 45_mod_dav.conf ... 
www-servers/apache-2.2.14-r1 (/etc/apache2/modules.d/45_mod_dav.conf)
#

It looks to me the file should be provided by the DAV stuff, whatever it is. ;-)
What package should I look for, net-fs/davfs2? That one is not installed. Would be glad to drop that USE flag instead. And if I do so, I get:

# emerge -uNDNpv apache

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

#

Huh, so I can drop that USE flag, why did I include it some while ago then? :(
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2009-10-11 21:03:41 UTC
you need to add all three dav modules (dav, dav_lock, dav_fs) to APACHE2_MODULES or remove -D DAV from APACHE2_OPTS if you don't need it
Comment 4 Martin Mokrejš 2009-10-11 21:29:49 UTC
Please do me a favor and improve the doc line here:

# cat /etc/conf.d/apache2 
# /etc/conf.d/apache2: config file for /etc/init.d/apache2

# When you install a module it is easy to activate or deactivate the modules
# and other features of apache using the APACHE2_OPTS line. Every module should
# install a configuration in /etc/apache2/modules.d. In that file will have an
# <IfDefine NNN> directive where NNN is the option to enable that module.
#
# Here are the options available in the default configuration:
#
#  AUTH_DIGEST  Enables mod_auth_digest
#  AUTHNZ_LDAP  Enables authentication through mod_ldap (available if USE=ldap)
#  CACHE        Enables mod_cache
#  DAV          Enables mod_dav

Thanks.
;-)
Comment 5 Martin Mokrejš 2009-10-13 22:43:45 UTC
This is what fooled me and am getting it on x86 stable now on another machine:


emerge: there are no ebuilds built with USE flags to satisfy "www-servers/apache[apache2_modules_dav]".
!!! One of the following packages is required to complete your request:
- www-servers/apache-2.2.11-r2 (Change USE: +apache2_modules_dav)
(dependency required by "dev-util/subversion-1.6.5" [ebuild])
(dependency required by "dev-util/subversion:0" [argument])

Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2009-10-14 06:18:17 UTC
(In reply to comment #5)
> This is what fooled me and am getting it on x86 stable now on another machine:
> 
> 
> emerge: there are no ebuilds built with USE flags to satisfy
> "www-servers/apache[apache2_modules_dav]".
> !!! One of the following packages is required to complete your request:
> - www-servers/apache-2.2.11-r2 (Change USE: +apache2_modules_dav)
> (dependency required by "dev-util/subversion-1.6.5" [ebuild])
> (dependency required by "dev-util/subversion:0" [argument])

this has nothing to do with this bug report. but in order to use subvresion with apache you need the DAV module.
Comment 7 Christopher Head 2009-11-10 23:06:07 UTC
I agree with #6: the comment (and indeed the very *name* of the define flag: "DAV") suggest that its purpose is to enable *mod_dav* (and its configuration directives), NOT mod_dav_fs. And yet DavLockDB, a mod_dav_fs-specific directive, is enabled by it.

What is the proper way to enable mod_dav but not mod_dav_fs? In other words, what should I do where I used to do "-D DAV"?
Comment 8 Benedikt Böhm (RETIRED) gentoo-dev 2009-11-11 07:54:34 UTC
(In reply to comment #7)
> What is the proper way to enable mod_dav but not mod_dav_fs? In other words,
> what should I do where I used to do "-D DAV"?

well, the sample config in 45_mod_dav.conf assumes you have all the dav modules compiled. if not, just remove DavLockDB or comment it, and you're done.
Comment 9 Christopher Head 2009-11-13 07:37:58 UTC
(In reply to comment #8)
> well, the sample config in 45_mod_dav.conf assumes you have all the dav modules
> compiled. if not, just remove DavLockDB or comment it, and you're done.
> 

Understood, thanks; I wasn't entirely sure how much these files were supposed to be universal and work out-of-the-box, versus just being examples to season to taste.