FAQ
Hi Guys:

I'm getting the following errors in my log after upgrading to mailman 2.1.5 from 2.1.2

I need this news to email gateway functionality as we are the de facto proxy for users on the soc.org.nonprofit list.

Please advise ASAP on how I can get the list server linked back up to my news server.

Thanks,

Eric

Jun 01 14:50:12 2004 gate_news(27744): Traceback (most recent call last):
Jun 01 14:50:12 2004 gate_news(27744): File "/usr/local/mailman/cron/gate_news", line 284, in ?
Jun 01 14:50:12 2004 gate_news(27744): main()
Jun 01 14:50:12 2004 gate_news(27744): File "/usr/local/mailman/cron/gate_news", line 264, in main
Jun 01 14:50:12 2004 gate_news(27744): process_lists(lock)
Jun 01 14:50:12 2004 gate_news(27744): File "/usr/local/mailman/cron/gate_news", line 208, in process_lists
Jun 01 14:50:12 2004 gate_news(27744): conn, first, last = open_newsgroup(mlist)
Jun 01 14:50:12 2004 gate_news(27744): File "/usr/local/mailman/cron/gate_news", line 94, in open_newsgroup
Jun 01 14:50:12 2004 gate_news(27744): nntp_host, nntp_port = Utils.nntpsplit(mlist.nntp_host)
Jun 01 14:50:12 2004 gate_news(27744): AttributeError : 'module' object has no attribute 'nntpsplit'
Jun 01 16:33:04 2004 (6937) Uncaught runner exception: 'str' object has no attribute 'get_sender'
Jun 01 16:33:05 2004 (6937) Traceback (most recent call last):
File "/usr/local/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/mailman/Mailman/Queue/Runner.py", line 159, in _onefile
sender = msg.get_sender()
AttributeError: 'str' object has no attribute 'get_sender'

Jun 01 16:33:05 2004 (6937) SHUNTING: 1086127558.5522461+433e09262469428e6a5b0db171f88cc065c4a323
**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or the
sender immediately and do not disclose the contents to any one or make copies.

** eSafe scanned this email for viruses, vandals (DBSB) and malicious content **
**************************************************************************************************

Search Discussions

  • Brad Knowles at Jun 1, 2004 at 11:52 pm

    At 1:38 PM -1000 2004/06/01, Eric McDonald wrote:

    Jun 01 14:50:12 2004 gate_news(27744): Traceback (most recent call last):
    Jun 01 14:50:12 2004 gate_news(27744): File
    "/usr/local/mailman/cron/gate_news", line 284, in ?
    Mailman 2.1.x doesn't use cron anymore. The fact that "cron"
    appears in this URL would seem to be an indicator that you are
    upgrading from version 2.0.x to 2.1.5, not 2.1.2 to 2.1.5. Is that
    correct?
    Jun 01 14:50:12 2004 gate_news(27744): AttributeError : 'module'
    object has no attribute 'nntpsplit'
    Jun 01 16:33:04 2004 (6937) Uncaught runner exception: 'str' object
    has no attribute 'get_sender'
    Jun 01 16:33:05 2004 (6937) Traceback (most recent call last):
    File "/usr/local/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop
    self._onefile(msg, msgdata)
    File "/usr/local/mailman/Mailman/Queue/Runner.py", line 159, in _onefile
    sender = msg.get_sender()
    AttributeError: 'str' object has no attribute 'get_sender'
    You don't tell us anything about the OS you're using, what
    version of Python you have, etc.... However, I would ask if you've
    seen the FAQ entry at
    <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq05.008.htp>?

    --
    Brad Knowles, <brad.knowles at skynet.be>

    "They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety."
    -Benjamin Franklin, Historical Review of Pennsylvania.

    SAGE member since 1995. See <http://www.sage.org/> for more info.
  • Todd at Jun 2, 2004 at 12:14 am

    Brad Knowles wrote:
    Mailman 2.1.x doesn't use cron anymore. The fact that "cron"
    appears in this URL would seem to be an indicator that you are
    upgrading from version 2.0.x to 2.1.5, not 2.1.2 to 2.1.5. Is that
    correct?
    The qrunners aren't called via cron anymore, but there are still other
    functions that Mailman 2.1+ uses cron for. From the INSTALL file for
    2.1.5:

    - Set up the crontab entries. Mailman runs a number of cron jobs
    for its basic functionality. Note that if you're upgrading from
    a previous version of Mailman, you'll want to install the new
    crontab, but be careful if you're running multiple Mailman
    installations on your site! Changing the crontab could mess
    with other parallel Mailman installations.

    - --
    Todd OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
    ======================================================================
    To err is human; to blame it on somebody else is even more human.
    -- John Nadeau
  • Brad Knowles at Jun 2, 2004 at 12:45 am

    At 8:14 PM -0400 2004/06/01, Todd wrote:

    The qrunners aren't called via cron anymore, but there are still other
    functions that Mailman 2.1+ uses cron for. From the INSTALL file for
    2.1.5:
    Sorry, I completely spaced out. I don't know what I was smoking
    at the time I said that -- I remember full well needing to set up the
    news gateway cron jobs when we set up our first gateway.

    Beats the hell out of me why I didn't remember that....

    --
    Brad Knowles, <brad.knowles at skynet.be>

    "They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety."
    -Benjamin Franklin, Historical Review of Pennsylvania.

    SAGE member since 1995. See <http://www.sage.org/> for more info.
  • Todd at Jun 2, 2004 at 1:02 am

    Brad Knowles wrote:
    At 8:14 PM -0400 2004/06/01, Todd wrote:

    The qrunners aren't called via cron anymore, but there are still other
    functions that Mailman 2.1+ uses cron for. From the INSTALL file for
    2.1.5:
    Sorry, I completely spaced out. I don't know what I was smoking
    at the time I said that
    Hehe, I won't ask -- I'll just drool jealously.
    Beats the hell out of me why I didn't remember that....
    Perhaps 'cause you're busy answering tons of questions here and being
    an all around helpful fellow? :)

    - --
    Todd OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
    ======================================================================
    It is easier to fight for one's principles than to live up to them.
    -- Alfred Adler
  • Eric McDonald at Jun 2, 2004 at 12:02 am
    Hi:

    Thanks for getting back to me. Python 2.3 on Solaris 2.6 It was working fine with version 2.1.2? Which I just upgraded from?

    Yes, I do have an entry in my crontab file for this:

    # crontab -l mailman
    # At 8AM every day, mail reminders to admins as to pending requests.
    # They are less likely to ignore these reminders if they're mailed
    # early in the morning, but of course, this is local time... ;)
    0 8 * * * /usr/local/bin/python -S /usr/local/mailman/cron/checkdbs
    #
    # At 9AM, send notifications to disabled members that are due to be
    # reminded to re-enable their accounts.
    0 9 * * * /usr/local/bin/python -S /usr/local/mailman/cron/disabled
    #
    # Noon, mail digests for lists that do periodic as well as threshhold delivery.
    0 12 * * * /usr/local/bin/python -S /usr/local/mailman/cron/senddigests
    #
    # 5 AM on the first of each month, mail out password reminders.
    0 5 1 * * /usr/local/bin/python -S /usr/local/mailman/cron/mailpasswds
    #
    # Every 5 mins, try to gate news to mail. You can comment this one out
    # if you don't want to allow gating, or don't have any going on right now,
    # or want to exclusively use a callback strategy instead of polling.
    0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/python -S /usr/local/mailman/cron/gate_news
    #
    # At 3:27am every night, regenerate the gzip'd archive file. Only
    # turn this on if the internal archiver is used and
    # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py
    27 3 * * * /usr/local/bin/python -S /usr/local/mailman/cron/nightly_gzip
    # Remove any camp held message more than three days old
    0 0 * * * /usr/local/mailman/bin/removecampheld.sh
    0 1 * * * /usr/local/mailman/bin/mailmanctl -s stop
    1 1 * * * /usr/local/mailman/bin/mailmanctl -s start

    _None_ of these entries are needed anymore? Including sending out passwords and digests?

    Thanks,

    Eric

    -----Original Message-----
    From: Brad Knowles [mailto:brad.knowles at skynet.be]
    Sent: Tuesday, June 01, 2004 1:52 PM
    To: Eric McDonald
    Cc: mailman-users at python.org
    Subject: Re: [Mailman-Users] Problems with news2email gateway after
    upgrading from 2.1.2 to 2.1.5

    At 1:38 PM -1000 2004/06/01, Eric McDonald wrote:

    Jun 01 14:50:12 2004 gate_news(27744): Traceback (most recent call last):
    Jun 01 14:50:12 2004 gate_news(27744): File
    "/usr/local/mailman/cron/gate_news", line 284, in ?
    Mailman 2.1.x doesn't use cron anymore. The fact that "cron"
    appears in this URL would seem to be an indicator that you are
    upgrading from version 2.0.x to 2.1.5, not 2.1.2 to 2.1.5. Is that
    correct?
    Jun 01 14:50:12 2004 gate_news(27744): AttributeError : 'module'
    object has no attribute 'nntpsplit'
    Jun 01 16:33:04 2004 (6937) Uncaught runner exception: 'str' object
    has no attribute 'get_sender'
    Jun 01 16:33:05 2004 (6937) Traceback (most recent call last):
    File "/usr/local/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop
    self._onefile(msg, msgdata)
    File "/usr/local/mailman/Mailman/Queue/Runner.py", line 159, in _onefile
    sender = msg.get_sender()
    AttributeError: 'str' object has no attribute 'get_sender'
    You don't tell us anything about the OS you're using, what
    version of Python you have, etc.... However, I would ask if you've
    seen the FAQ entry at
    <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq05.008.htp>?

    --
    Brad Knowles, <brad.knowles at skynet.be>

    "They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety."
    -Benjamin Franklin, Historical Review of Pennsylvania.

    SAGE member since 1995. See <http://www.sage.org/> for more info.
    **************************************************************************************************
    The contents of this email and any attachments are confidential.
    It is intended for the named recipient(s) only.
    If you have received this email in error please notify the system manager or the
    sender immediately and do not disclose the contents to any one or make copies.

    ** eSafe scanned this email for viruses, vandals (DBSB) and malicious content **
    **************************************************************************************************

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedJun 1, '04 at 11:38p
activeJun 2, '04 at 1:02a
posts6
users3
websitelist.org

People

Translate

site design / logo © 2022 Grokbase