Bug#227664: marked as done (apache2-common: update-apache2-modules is broken python script)
Your message dated Thu, 15 Jan 2004 17:01:59 +1030
with message-id <85D4320C-4724-11D8-92E4-000393BDB390@planetarytramp.net>
and subject line Bug#227664: apache2-common: update-apache2-modules is broken python script
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 14 Jan 2004 08:05:25 +0000
>From marc@indexdata.dk Wed Jan 14 02:05:16 2004
Return-path: <marc@indexdata.dk>
Received: from user.indexdata.dk (bagel.index) [213.150.43.10]
by master.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1Agg1c-0008OS-00; Wed, 14 Jan 2004 02:05:16 -0600
Received: from user.indexdata.dk ([213.150.43.10] helo=cromme)
by bagel.index with esmtp (Exim 3.35 #1 (Debian))
id 1Agg1Z-00068k-00; Wed, 14 Jan 2004 09:05:13 +0100
Received: from marc by cromme with local (Exim 3.36 #1 (Debian))
id 1Agg1Z-0000JV-00; Wed, 14 Jan 2004 09:05:13 +0100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Marc Cromme <marc@indexdata.dk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apache2-common: update-apache2-modules is broken python script
X-Mailer: reportbug 2.37
Date: Wed, 14 Jan 2004 09:05:12 +0100
Message-Id: <[🔎] E1Agg1Z-0000JV-00@cromme>
Sender: marc <marc@cromme>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_13
(1.212-2003-09-23-exp) on master.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no
version=2.60-bugs.debian.org_2004_01_13
X-Spam-Level:
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 <module> [<sequence> <state> <depends>]
update-apache2-modules --remove <module>
update-apache2-modules --enable <module>
update-apache2-modules --disable <module>
update-apache2-modules --list <module>
<module> is the name of the module
<sequence> is used to decide the order the modules are loaded in.
The default if no sequence number is specified is 99
<state> is used to determine whether the module should be
disabled (the default) or enabled on addition.
<depends> 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.1 Miscellaneous 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.1 4.1.25-10 Berkeley v4.1 Database Libraries [
ii libexpat1 1.95.6-6 XML parsing C library - runtime li
ii libldap2 2.1.23-1 OpenLDAP libraries
ii libssl0.9.7 0.9.7c-5 SSL shared libraries
ii mime-support 3.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-3 compression library - runtime
-- no debconf information
---------------------------------------
Received: (at 227664-done) by bugs.debian.org; 15 Jan 2004 06:32:01 +0000
>From thom@planetarytramp.net Thu Jan 15 00:32:01 2004
Return-path: <thom@planetarytramp.net>
Received: from mirror.positive-internet.com [80.87.128.67]
by master.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1Ah12o-0007HC-00; Thu, 15 Jan 2004 00:31:55 -0600
Received: from [138.44.140.244] (d140244.dhcp.linux.conf.au [138.44.140.244])
by mirror.positive-internet.com (Postfix) with ESMTP
id 7BF7F43781; Thu, 15 Jan 2004 06:31:52 +0000 (GMT)
Mime-Version: 1.0 (Apple Message framework v609)
In-Reply-To: <[🔎] E1Agg1Z-0000JV-00@cromme>
References: <[🔎] E1Agg1Z-0000JV-00@cromme>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <85D4320C-4724-11D8-92E4-000393BDB390@planetarytramp.net>
Content-Transfer-Encoding: 7bit
From: Thom May <thom@planetarytramp.net>
Subject: Re: Bug#227664: apache2-common: update-apache2-modules is broken python script
Date: Thu, 15 Jan 2004 17:01:59 +1030
To: 227664-done@bugs.debian.org, Marc Cromme <marc@indexdata.dk>
X-Mailer: Apple Mail (2.609)
Delivered-To: 227664-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_14
(1.212-2003-09-23-exp) on master.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=no
version=2.60-bugs.debian.org_2004_01_14
X-Spam-Level:
Um, update-apache2-modules shouldn't be shipped, this was an error.
That crash can be fixed by mkdir'ing /var/lib/apache2 if you want to
test further.
-Thom
Reply to: