[ mailman-Bugs-1394696 ] "ValueError: day of year out of range" on Dec 31?

SourceForge.net noreply at sourceforge.net
Sat Jan 14 14:20:40 CET 2006


Bugs item #1394696, was opened at 2006-01-01 05:44
Message generated for change (Settings changed) made by tkikuchi
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1394696&group_id=103

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 2.1 (stable)
>Status: Closed
Resolution: Out of Date
Priority: 5
Submitted By: quinn comendant (quinncom)
Assigned to: Nobody/Anonymous (nobody)
Summary: "ValueError: day of year out of range" on Dec 31?

Initial Comment:
I haven't checked closely but I'm guessing the
following error is because 


[root at one /var/mailman]# /etc/init.d/mailman stop
Traceback (most recent call last):
  File "/var/mailman/bin/qrunner", line 270, in ?
    main()
  File "/var/mailman/bin/qrunner", line 230, in main
    qrunner.run()
  File "/var/mailman/Mailman/Queue/Runner.py", line 82,
in run
    self._cleanup()
  File "/var/mailman/Mailman/Queue/BounceRunner.py",
line 139, in _cleanup
    self._register_bounces()
  File "/var/mailman/Mailman/Queue/BounceRunner.py",
line 129, in _register_bounces
    mlist.registerBounce(addr, msg, day=day)
  File "/var/mailman/Mailman/Bouncer.py", line 131, in
registerBounce
[root at one /var/mailman]#     time.strftime('%d-%b-%Y',
day + (0,)*6))
ValueError: day of year out of range

[root at one /var/mailman]# date
Sat Dec 31 23:39:23 CST 2005

[root at one /var/mailman]# bin/version 
Using Mailman version: 2.1.4


----------------------------------------------------------------------

Comment By: Mark Sapiro (msapiro)
Date: 2006-01-11 04:33

Message:
Logged In: YES 
user_id=1123998

As Tokio says, this is a known incompatability between
Mailman 2.1.5 and earlier and Python 2.4 and later. It has
nothing to do with specific dates. It occurs whenever a
second or subsequent bounce is received for the same user in
the same day.

It is fixed by upgrading to Mailman 2.1.6 or later or by
changing
time.strftime('%d-%b-%Y', day + (0,)*6))
in line 131 of Mailman/Bouncer.py to
time.strftime('%d-%b-%Y', day + (0,0,0,0,1,0)))

See
<http://mail.python.org/pipermail/mailman-users/2005-March/043640.html>

And yes, disabling bounce processing will avoid the error.

----------------------------------------------------------------------

Comment By: Nate (n8wilson)
Date: 2006-01-11 03:37

Message:
Logged In: YES 
user_id=1271889

I got a similar/same error on Jan 10th - Mailman seems to
run for a while and spontaneaously do this - or maybe when
it gets a bounced message.  I disabled bounce-detection in
hopes of it not occurring.
-------

[root at gttx nwilson]# Traceback (most recent call last):
  File "/usr/lib/mailman/bin/qrunner", line 270, in ?
    main()
  File "/usr/lib/mailman/bin/qrunner", line 230, in main
    qrunner.run()
  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 87,
in run
    self._cleanup()
  File "/usr/lib/mailman/Mailman/Queue/OutgoingRunner.py",
line 134, in _cleanup
    BounceMixin._cleanup(self)
  File "/usr/lib/mailman/Mailman/Queue/BounceRunner.py",
line 132, in _cleanup
    self._register_bounces()
  File "/usr/lib/mailman/Mailman/Queue/BounceRunner.py",
line 120, in _register_bounces
    mlist.registerBounce(addr, msg, day=day)
  File "/usr/lib/mailman/Mailman/Bouncer.py", line 131, in
registerBounce
    time.strftime('%d-%b-%Y', day + (0,)*6))
ValueError: day of year out of range
Traceback (most recent call last):
  File "/usr/lib/mailman/bin/qrunner", line 270, in ?
    main()
  File "/usr/lib/mailman/bin/qrunner", line 230, in main
    qrunner.run()
  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 87,
in run
    self._cleanup()
  File "/usr/lib/mailman/Mailman/Queue/BounceRunner.py",
line 220, in _cleanup
    BounceMixin._cleanup(self)
  File "/usr/lib/mailman/Mailman/Queue/BounceRunner.py",
line 132, in _cleanup
    self._register_bounces()
  File "/usr/lib/mailman/Mailman/Queue/BounceRunner.py",
line 120, in _register_bounces
    mlist.registerBounce(addr, msg, day=day)
  File "/usr/lib/mailman/Mailman/Bouncer.py", line 131, in
registerBounce
    time.strftime('%d-%b-%Y', day + (0,)*6))
ValueError: day of year out of range
[root at gttx nwilson]# exit
exit
[nwilson at gttx ~]$ date
Tue Jan 10 22:35:01 EST 2006
You have new mail in /var/spool/mail/nwilson
[nwilson at gttx ~]$ /usr/lib/mailman/bin/version
Using Mailman version: 2.1.5
[nwilson at gttx ~]$





----------------------------------------------------------------------

Comment By: Tokio Kikuchi (tkikuchi)
Date: 2006-01-10 21:37

Message:
Logged In: YES 
user_id=67709

time.strftime('%d-%b-%Y',day + (0,)*6)) caused error in
Python 2.4 and this was fixed in Mailman 2.1.6.

Please upgrade your mailman to the latest version.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1394696&group_id=103


More information about the Mailman-coders mailing list