One of our bone-headed admins was playing around on the server and "broke" something in Mailman.

Rather than try to fix it (I'm not a Python programmer!), I decided it was time for an update via ports anyway.

We get the following string of errors during the upgrade phase, then a stop:


Updating mailing list: river_city_referrals
Traceback (most recent call last):
File "bin/update", line 789, in ?
errors = main()
File "bin/update", line 679, in main
errors = errors + dolist(listname)
File "bin/update", line 192, in dolist
mlist = MailList.MailList(listname, lock=0)
File "/usr/local/mailman/Mailman/MailList.py", line 130, in __init__
self.Load()
File "/usr/local/mailman/Mailman/MailList.py", line 629, in Load
dict, e = self.__load(file)
File "/usr/local/mailman/Mailman/MailList.py", line 602, in __load
dict = loadfunc(fp)
AttributeError: 'str' object has no attribute 'append'
*** Error code 1

Stop in /usr/ports/mail/mailman/work/mailman-2.1.9.
*** Error code 1

Stop in /usr/ports/mail/mailman.
*** Error code 1

Stop in /usr/ports/mail/mailman.


In addition, when attempting to use the CGI interface, it does not run. We get the following errors (in the httpd-error log -- we're running Apache 2.0.54)

[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] [----- Mailman Version: 2.1.9 -----]
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] [----- Traceback ------]
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] Traceback (most recent call last):
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/usr/local/mailman/scripts/driver", line 82, in run_main
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] immediate=1)
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/usr/local/mailman/Mailman/Logging/StampedLogger.py", line 52, in __init__
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] Logger.__init__(self, category, nofail, immediate)
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/usr/local/mailman/Mailman/Logging/Logger.py", line 50, in __init__
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] self.__get_f()
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/usr/local/mailman/Mailman/Logging/Logger.py", line 68, in __get_f
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] 1)
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/usr/local/lib/python2.4/codecs.py", line 666, in open
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] file = __builtin__.open(filename, mode, buffering)
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] IOError: [Errno 13] Permission denied: '/usr/local/mailman/logs/error'
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] [----- Python Information -----]
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] sys.version = 2.4.3 (#2, Jul 30 2006, 19:01:16)
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] [GCC 3.4.4 [FreeBSD] 20050518]
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] sys.executable = /usr/local/bin/python2.4
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] sys.prefix = /usr/local
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] sys.exec_prefix = /usr/local
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] sys.path = /usr/local
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] sys.platform = freebsd6
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] [----- Environment Variables -----]
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tforce_response_1_0: 1
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tSERVER_SOFTWARE: Apache/2.0.58 (FreeBSD) mod_ssl/2.0.58 OpenSSL/0.9.7g DAV/2 PHP/4.4.1 mod_perl/2.0.2 Perl/v5.8.7
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tSCRIPT_NAME: /mailman/confirm
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tSERVER_SIGNATURE: <address>Apache/2.0.58 (FreeBSD) mod_ssl/2.0.58 OpenSSL/0.9.7g DAV/2 PHP/4.4.1 mod_perl/2.0.2 Perl/v5.8.7 Server at secure.downtownhelpdesk.com Port 443</address>
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42]
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tREQUEST_METHOD: GET
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tPATH_INFO: /river_city_referrals/95ea391a71ec4c05acf43009aeb2dc8e2bd26528
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tSERVER_PROTOCOL: HTTP/1.1
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tQUERY_STRING:
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tHTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.2)
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tHTTP_CONNECTION: Keep-Alive
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tSERVER_NAME: secure.downtownhelpdesk.com
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tREMOTE_ADDR: 67.103.106.42
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tPATH_TRANSLATED: /usr/www/sites/1fast.us/river_city_referrals/95ea391a71ec4c05acf43009aeb2dc8e2bd26528
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tSERVER_PORT: 443
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tSERVER_ADDR: 192.168.254.34
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tDOCUMENT_ROOT: /usr/www/sites/1fast.us
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tPYTHONPATH: /usr/local/mailman
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tSCRIPT_FILENAME: /usr/local/mailman/cgi-bin/confirm
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tSERVER_ADMIN: webmaster at downtownhelpdesk.com
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tHTTP_HOST: secure.downtownhelpdesk.com
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tHTTPS: on
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tREQUEST_URI: /mailman/confirm/river_city_referrals/95ea391a71ec4c05acf43009aeb2dc8e2bd26528
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tHTTP_ACCEPT: */*
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tnokeepalive: 1
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tGATEWAY_INTERFACE: CGI/1.1
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tREMOTE_PORT: 2126
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tHTTP_ACCEPT_LANGUAGE: en-us
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tdowngrade_1_0: 1
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tssl_unclean_shutdown: 1
[Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] \tHTTP_ACCEPT_ENCODING: gzip, deflate


Any assisstance would be most appreciated!

Search Discussions

  • Mark Sapiro at Sep 25, 2006 at 8:09 pm

    Help Desk wrote:
    We get the following string of errors during the upgrade phase, then a stop:


    Updating mailing list: river_city_referrals
    Traceback (most recent call last):
    File "bin/update", line 789, in ?
    errors = main()
    File "bin/update", line 679, in main
    errors = errors + dolist(listname)
    File "bin/update", line 192, in dolist
    mlist = MailList.MailList(listname, lock=0)
    File "/usr/local/mailman/Mailman/MailList.py", line 130, in __init__
    self.Load()
    File "/usr/local/mailman/Mailman/MailList.py", line 629, in Load
    dict, e = self.__load(file)
    File "/usr/local/mailman/Mailman/MailList.py", line 602, in __load
    dict = loadfunc(fp)
    AttributeError: 'str' object has no attribute 'append'
    *** Error code 1

    Stop in /usr/ports/mail/mailman/work/mailman-2.1.9.
    *** Error code 1

    Stop in /usr/ports/mail/mailman.
    *** Error code 1

    Stop in /usr/ports/mail/mailman.

    It appears that the list river_city_referrals may have a corrupted
    configuration file (lists/river_city_referrals/config.pck). The update
    process may or may not have updated all the lists, but they will be
    updated anyway as the lists are accessed. The software update was
    finished at this point.

    Assuming you get the same error when attempting to access the list
    (after fixing the problem below, try copying or moving the config.pck
    aside and replacing it with the config.pck.last
    In addition, when attempting to use the CGI interface, it does not run. We get the following errors (in the httpd-error log -- we're running Apache 2.0.54)

    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] [----- Mailman Version: 2.1.9 -----]
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] [----- Traceback ------]
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] Traceback (most recent call last):
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/usr/local/mailman/scripts/driver", line 82, in run_main
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] immediate=1)
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/usr/local/mailman/Mailman/Logging/StampedLogger.py", line 52, in __init__
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] Logger.__init__(self, category, nofail, immediate)
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/usr/local/mailman/Mailman/Logging/Logger.py", line 50, in __init__
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] self.__get_f()
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/usr/local/mailman/Mailman/Logging/Logger.py", line 68, in __get_f
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] 1)
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/usr/local/lib/python2.4/codecs.py", line 666, in open
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] file = __builtin__.open(filename, mode, buffering)
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] IOError: [Errno 13] Permission denied: '/usr/local/mailman/logs/error'

    There is a permissions problem on your Mailman logs. Try running
    "bin/check_perms -f" as root until it reports no errors.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Mark Nernberg at Sep 25, 2006 at 9:12 pm

    On Sep 25, 2006, at 4:09 PM, Mark Sapiro wrote:

    Help Desk wrote:
    We get the following string of errors during the upgrade phase,
    then a stop:


    Updating mailing list: river_city_referrals
    Traceback (most recent call last):
    File "bin/update", line 789, in ?
    errors = main()
    File "bin/update", line 679, in main
    errors = errors + dolist(listname)
    File "bin/update", line 192, in dolist
    mlist = MailList.MailList(listname, lock=0)
    File "/usr/local/mailman/Mailman/MailList.py", line 130, in __init__
    self.Load()
    File "/usr/local/mailman/Mailman/MailList.py", line 629, in Load
    dict, e = self.__load(file)
    File "/usr/local/mailman/Mailman/MailList.py", line 602, in __load
    dict = loadfunc(fp)
    AttributeError: 'str' object has no attribute 'append'
    *** Error code 1

    Stop in /usr/ports/mail/mailman/work/mailman-2.1.9.
    *** Error code 1

    Stop in /usr/ports/mail/mailman.
    *** Error code 1

    Stop in /usr/ports/mail/mailman.

    It appears that the list river_city_referrals may have a corrupted
    configuration file (lists/river_city_referrals/config.pck). The update
    process may or may not have updated all the lists, but they will be
    updated anyway as the lists are accessed. The software update was
    finished at this point.

    Assuming you get the same error when attempting to access the list
    (after fixing the problem below, try copying or moving the config.pck
    aside and replacing it with the config.pck.last
    I hate to say it, but I already tried that.
    In addition, when attempting to use the CGI interface, it does not
    run. We get the following errors (in the httpd-error log -- we're
    running Apache 2.0.54)

    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42]
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] [-----
    Mailman Version: 2.1.9 -----]
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] [-----
    Traceback ------]
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42]
    Traceback (most recent call last):
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/
    usr/local/mailman/scripts/driver", line 82, in run_main
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42]
    immediate=1)
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/
    usr/local/mailman/Mailman/Logging/StampedLogger.py", line 52, in
    __init__
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42]
    Logger.__init__(self, category, nofail, immediate)
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/
    usr/local/mailman/Mailman/Logging/Logger.py", line 50, in __init__
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42]
    self.__get_f()
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/
    usr/local/mailman/Mailman/Logging/Logger.py", line 68, in __get_f
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] 1)
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] File "/
    usr/local/lib/python2.4/codecs.py", line 666, in open
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] file
    = __builtin__.open(filename, mode, buffering)
    [Mon Sep 25 10:46:49 2006] [error] [client 67.103.106.42] IOError:
    [Errno 13] Permission denied: '/usr/local/mailman/logs/error'

    There is a permissions problem on your Mailman logs. Try running
    "bin/check_perms -f" as root until it reports no errors.
    Done. That part worked.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

  • Mark Sapiro at Sep 25, 2006 at 9:23 pm

    Mark Nernberg wrote:
    On Sep 25, 2006, at 4:09 PM, Mark Sapiro wrote:

    Assuming you get the same error when attempting to access the list
    (after fixing the problem below, try copying or moving the config.pck
    aside and replacing it with the config.pck.last
    I hate to say it, but I already tried that.

    Do you have more than one list? Does this affect all lists or just the
    one?

    Do you have a recent backup of the config.pck? If so try that. If not,
    and this problen just affects one list and is not systemic, I'm afraid
    you'll have to use bin/dumpdb to try to salvage as much information as
    possible from the config.pck and use it to create a new list.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedSep 25, '06 at 2:51p
activeSep 25, '06 at 9:23p
posts4
users2
websitelist.org

2 users in discussion

Mark Nernberg: 2 posts Mark Sapiro: 2 posts

People

Translate

site design / logo © 2022 Grokbase