You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/12/17 01:54:12 UTC
[Bug 4036] New: SA and spamd should give understandable 'version error' messages rather than random errors
http://bugzilla.spamassassin.org/show_bug.cgi?id=4036
Summary: SA and spamd should give understandable 'version error'
messages rather than random errors
Product: Spamassassin
Version: unspecified
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: spamassassin
AssignedTo: dev@spamassassin.apache.org
ReportedBy: lwilton@earthlink.net
Background:
The SA team generally knows the perl modules used by SA itself and the various
ancilliary perl bits that are part of the release. In many or most cases the
minimum workable version of each module is also known, as this usually appears
somewhere in the documentation.
Problem:
Failure to have the right module versions loaded generally results in cryptic
perl syntax errors and other non-obvious malfunctions. These errors annoy the
person receiving them, take up inordinate amounts of time on the SA-talk list,
and very often can only be recognized by an SA developer for being a sign that
module X, Y or Z is the wrong version.
A typical exchange from the SA list today will illustrate this point:
----------------------------------
another list user, david baines helped me out on this one...
its very simply that your version of getopt::long is not recent enough
get the latest from cpan and install and it works perfectly from then on
ronan
Stephan Paukner wrote:
> On Wed, December 15, 2004 9:53, Ronan said:
>
>>>I actually never knew about this until i was having a hoke around...
>>>anyway cant get it to run..
>>>
>>>./sa-stats.pl -l /var/log/syslog -H -T 5 -u
>>>Error in option spec: "top|T:25"
>>>Error in option spec: "SCALAR(0x4c9a68)"
>>>bash-2.03$
>>>
>>>i presume this is to do with the per user count but it even flags when
>>>i run
>>>
>>>bash-2.03$ ./sa-stats.pl -l /var/log/syslog Error in option spec:
>>>"top|T:25"
>>>Error in option spec: "SCALAR(0x4c9a38)"
>>>
>>>
>>>and even
>>>
>>>bash-2.03$ ./sa-stats.pl Error in option spec: "top|T:25"
>>>Error in option spec: "SCALAR(0x4c9a20)"
>>>
>>>
>>>any hints? thanks.
-----------------------------------------
Solution:
If SA checked the versions of all of the modules the developers know that it
needs and made simple, clear, ERROR -- MISSING MODULE or ERROR -- WRONG VERSION
type messages when the module either wan't present or had a useless version,
then it would be a lot simpler for users to fix their stupid configuration
screwups at the outset.
It would be nice if such checks were part of the install.
But they should also be present either as a separate tool that can be run
anytime, or incorporated into spamassassin and spamd so that they get run every
time on program startup, and make appropriate clear and obvious log results.
In fact, the program should probably abort immediately after the version and
presence checks if any errors are detected, rather than continuing to run and
making cryptic and erroneous results later on.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4036] SA and spamd should give understandable 'version error' messages rather than random errors
Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4036
parkerm@pobox.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From parkerm@pobox.com 2004-12-16 17:02 -------
*** This bug has been marked as a duplicate of 3820 ***
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4036] SA and spamd should give understandable 'version error' messages rather than random errors
Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4036
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From jm@jmason.org 2004-12-16 17:15 -------
*** This bug has been marked as a duplicate of 3822 ***
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 4036] SA and spamd should give understandable 'version error' messages rather than random errors
Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4036
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
------- Additional Comments From jm@jmason.org 2004-12-16 17:15 -------
actually, 3822 is the correct bug ;)
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.