Bug 231560 - checkdbs script run by cron fails with error
checkdbs script run by cron fails with error
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: mailman (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tomas Smetana
Depends On:
  Show dependency treegraph
Reported: 2007-03-08 18:13 EST by Magnus Morén
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-15 04:41:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Magnus Morén 2007-03-08 18:13:59 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20061023 SUSE/ Firefox/

Description of problem:
The file /etc/cron.d/mailman has this cron job entry:
  0 8 * * * mailman /usr/lib/mailman/cron/checkdbs

This script produces the following error (and mail the output to mailman@my.list.server) every morning:

Traceback (most recent call last):
  File "/usr/lib/mailman/cron/checkdbs", line 178, in ?
  File "/usr/lib/mailman/cron/checkdbs", line 109, in main
    text += '\n' + pending_requests(mlist)
  File "/usr/lib/mailman/cron/checkdbs", line 128, in pending_requests
    for id in mlist.GetSubscriptionIds():
  File "/usr/lib/mailman/Mailman/ListAdmin.py", line 140, in GetSubscriptionIds
    return self.__getmsgids(SUBSCRIPTION)
  File "/usr/lib/mailman/Mailman/ListAdmin.py", line 132, in __getmsgids
    ids = [k for k, (op, data) in self.__db.items() if op == rtype]
ValueError: unpack tuple of wrong size

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install and configure mailman
2. Wait for cron to run the script


3. su mailman -c /usr/lib/mailman/cron/checkdbs

Actual Results:
Error code as described above

Expected Results:
No error code

Additional info:
The maillist server are in others parts working fine and serves about 200 mailing lists
Comment 1 Tomas Smetana 2007-04-27 08:48:48 EDT
This seems to be the same as the following:
Comment 2 Magnus Morén 2007-04-27 10:26:48 EDT

The method described in this article helped me to find a corrupt request.pck in
*one* of the lists on this server.

/usr/lib/mailman/bin/dumpdb ./request.pck on that file showed a lot of data but
I could not see anything strange (and if I had, I have no clue on how to fix this).

My solution was to remove the file. It is recreated when you "Tend to pending
moderator requests" in the web front-end.
Comment 3 RHEL Product and Program Management 2007-05-09 01:48:58 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
Comment 5 RHEL Product and Program Management 2007-05-15 04:41:07 EDT
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request. 

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