Package: apache2-common
Version: 2.0.47-1
Severity: normal
The update-apache2-modules debian python script is crashing like this:
sudo update-apache2-modules --list mod_info
Traceback (most recent call last):
File "/usr/sbin/update-apache2-modules", line 79, in ?
main()
File "/usr/sbin/update-apache2-modules", line 51, in main
modhandler.dolist()
File "/usr/sbin/modhandler.py", line 63, in dolist
modregistry = shelve.open("/var/lib/apache2/modules")
File "/usr/lib/python2.3/shelve.py", line 231, in open
return DbfilenameShelf(filename, flag, protocol, writeback, binary)
File "/usr/lib/python2.3/shelve.py", line 212, in __init__
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback,
binary)
File "/usr/lib/python2.3/anydbm.py", line 83, in open
return mod.open(file, flag, mode)
File "/usr/lib/python2.3/dbhash.py", line 16, in open
return bsddb.hashopen(file, flag, mode)
File "/usr/lib/python2.3/bsddb/__init__.py", line 192, in hashopen
d.open(file, db.DB_HASH, flags, mode)
bsddb._db.DBNoSuchFileError: (2, 'No such file or directory')
Exception exceptions.AttributeError: "DbfilenameShelf instance has no attribute
'writeback'" in ignored
Similary, the following fails:
sudo update-apache2-modules --add mod_info
Traceback (most recent call last):
File "/usr/sbin/update-apache2-modules", line 79, in ?
main()
File "/usr/sbin/update-apache2-modules", line 43, in main
modhandler.add(**args)
TypeError: add() argument after ** must be a dictionary
This one as well:
sudo update-apache2-modules --enable mod_info
Turning mod_info on, babee!
Traceback (most recent call last):
File "/usr/sbin/update-apache2-modules", line 79, in ?
main()
File "/usr/sbin/update-apache2-modules", line 47, in main
modhandler.enable(args[0])
File "/usr/sbin/modhandler.py", line 90, in enable
modregistry = shelve.open("/var/lib/apache2/modules")
File "/usr/lib/python2.3/shelve.py", line 231, in open
return DbfilenameShelf(filename, flag, protocol, writeback, binary)
File "/usr/lib/python2.3/shelve.py", line 212, in __init__
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback,
binary)
File "/usr/lib/python2.3/anydbm.py", line 83, in open
return mod.open(file, flag, mode)
File "/usr/lib/python2.3/dbhash.py", line 16, in open
return bsddb.hashopen(file, flag, mode)
File "/usr/lib/python2.3/bsddb/__init__.py", line 192, in hashopen
d.open(file, db.DB_HASH, flags, mode)
bsddb._db.DBNoSuchFileError: (2, 'No such file or directory')
Exception exceptions.AttributeError: "DbfilenameShelf instance has no attribute
'writeback'" in ignored
Finally, there is no man page, and the output
sudo update-apache2-modules --help
Debian update-apache2-modules 0.5
Copyright (C) 2002 Thom May, under the BSD license.
usage: update-apache2-modules --add [ ]
update-apache2-modules --remove
update-apache2-modules --enable
update-apache2-modules --disable
update-apache2-modules --list
is the name of the module
is used to decide the order the modules are loaded in.
The default if no sequence number is specified is 99
is used to determine whether the module should be
disabled (the default) or enabled on addition.
signifies any dependencies the module might have
is not very helpful on the syntax - should I invoke with
sudo update-apache2-modules --enable mod_info or with
sudo update-apache2-modules --enable info ???
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux cromme 2.4.20-knoppix #1 Mon Jun 2 10:20:36 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages apache2-common depends on:
ii debconf 1.3.22 Debian configuration management sy
ii debianutils 2.6.1Miscellaneous utilities specific t
ii libapr0 2.0.47-1 The Apache Portable Runtime
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
ii libdb4.14.1.25-10Berkeley v4.1 Database Libraries [
ii libexpat1 1.95.6-6 XML parsing C library - runtime li
ii libldap22.1.23-1 OpenLDAP libraries
ii libssl0.9.7 0.9.7c-5 SSL shared libraries
ii mime-support3.23-1 MIME files 'mime.types' & 'mailcap
ii net-tools 1.60-8 The NET-3 networking toolkit
ii openssl 0.9.7c-5 Secure Socket Layer (SSL) binary a
ii zlib1g 1:1.2.1-3compression library - runtime
-- no debconf information