You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Rich Shepard <rs...@appl-ecosys.com> on 2010/01/11 17:07:40 UTC

spamassassin bug

   At the suggestion of a local user I ran 'sa-update -D' to bring my
Slackware-12.2 system running SA-3.2.5 up to date. Instead, I just dug
myself a hole and fell in by running the above. Sigh.

    What I see as a result is:

[6753] error: check: no loaded plugin implements 'check_main': cannot scan!
at /usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/PerMsgStatus.pm line
164.
check: no loaded plugin implements 'check_main': cannot scan! at
/usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/PerMsgStatus.pm line
164.

    My Google search found one thread on this subject from 2007, but he was
running amavisd, too, and it could not find the *.pre files. No help for me
there. In /etc/mail/spamassassin/rules/ I have init.pre, v310.pre, and
v312.pre files.

    SA has been running so I am totally clueless why this attempted update
finds an error that prevents /usr/bin/spamd from starting again. Perhaps
someone here can tell me how to resolve this problem so I can once again
invoke spamd.

Rich

Re: spamassassin bug

Posted by David Michaels <mi...@ucrwcu.rwc.uc.edu>.
Quoting "Rich Shepard" <rs...@appl-ecosys.com>:

> On Mon, 11 Jan 2010, Warren Togami wrote:
>
>> Try wiping out /var/lib/spamassassin/*, does spamassassin work then?
>
> Warren,
>
>   I don't have a spamassassin directory in /var/lib/.
>
> Rich
>


Sorry but I must insert a smiley...

:)


Re: spamassassin bug

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
> On Mon, 11 Jan 2010, Warren Togami wrote:
>> Try wiping out /var/lib/spamassassin/*, does spamassassin work then?

On 11.01.10 08:28, Rich Shepard wrote:
>   I don't have a spamassassin directory in /var/lib/.

FreeBSD uses /var/db/spamassassin. Or do:

# grep LOCAL_STATE_DIR `whichspamassassin spamd`


-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
It's now safe to throw off your computer.

Re: spamassassin bug

Posted by Rich Shepard <rs...@appl-ecosys.com>.
On Mon, 11 Jan 2010, Warren Togami wrote:

> Try wiping out /var/lib/spamassassin/*, does spamassassin work then?

Warren,

   I don't have a spamassassin directory in /var/lib/.

Rich

Re: spamassassin bug

Posted by Warren Togami <wt...@redhat.com>.
On 01/11/2010 11:07 AM, Rich Shepard wrote:
>   At the suggestion of a local user I ran 'sa-update -D' to bring my
> Slackware-12.2 system running SA-3.2.5 up to date. Instead, I just dug
> myself a hole and fell in by running the above. Sigh.
>
> What I see as a result is:
>
> [6753] error: check: no loaded plugin implements 'check_main': cannot scan!
> at /usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/PerMsgStatus.pm line
> 164.
> check: no loaded plugin implements 'check_main': cannot scan! at
> /usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/PerMsgStatus.pm line
> 164.
>
> My Google search found one thread on this subject from 2007, but he was
> running amavisd, too, and it could not find the *.pre files. No help for me
> there. In /etc/mail/spamassassin/rules/ I have init.pre, v310.pre, and
> v312.pre files.
>
> SA has been running so I am totally clueless why this attempted update
> finds an error that prevents /usr/bin/spamd from starting again. Perhaps
> someone here can tell me how to resolve this problem so I can once again
> invoke spamd.
>
> Rich

Try wiping out /var/lib/spamassassin/*, does spamassassin work then?

Warren

Re: spamassassin bug

Posted by Rich Shepard <rs...@appl-ecosys.com>.
On Mon, 11 Jan 2010, David Michaels wrote:

> find / -name spamassassin -print

/etc/mail/spamassassin
/etc/mail/spamassassin/blib/script/spamassassin
/etc/mail/spamassassin/spamassassin
/opt/src/slackbuilds/spamassassin
/usr/bin/spamassassin
/usr/share/spamassassin

Rich

Re: spamassassin bug

Posted by David Michaels <mi...@ucrwcu.rwc.uc.edu>.
Quoting "Rich Shepard" <rs...@appl-ecosys.com>:

> On Mon, 11 Jan 2010, Kai Schaetzl wrote:
>
>>> In /etc/mail/spamassassin/rules/ I have init.pre, v310.pre, and
>>> v312.pre files.
>>
>> which would be a non-default location.
>
> Kai,
>
>   Almost all SA-related files are in /etc/mail/spamassassin/; that's where
> the Slackware package installs everything. If this is a non-default
> location, where should they be? FWIW, that's were everything's been for
> years and I've had no problems until yesterday when running sa-learn kicked
> up that error.
>
> Thanks,
>
> Rich
>

find / -name spamassassin -print




Re: spamassassin bug -- RESOLVED!

Posted by Kai Schaetzl <ma...@conactive.com>.
How come that you messed this up with regards to that arbitrary rules 
directory?

Kai

-- 
Get your web at Conactive Internet Services: http://www.conactive.com




RE: spamassassin bug -- RESOLVED!

Posted by Rich Shepard <rs...@appl-ecosys.com>.
On Mon, 11 Jan 2010, Benny Pedersen wrote:

> mv /etc/mail/spamassassin/rules /etc/mail/spamassassin
> no ?

Benny:

   You and Larry gave me the solution. I found v320.pre and put it in
/etc/mail/spamassassin/rules. Then, based on your suggestion above, I copied
it up one directory level to /etc/mail/spamassassin. Now everything's
working.

   It was the missing v320.pre file, and the .pre files need to be in
/etc/mail/spamassassin and not the rules subdirectory.

Many thanks to everyone!

Rich

RE: spamassassin bug

Posted by Benny Pedersen <me...@junc.org>.
On Mon 11 Jan 2010 08:45:40 PM CET, "Rosenbaum, Larry M." wrote
>> check: no loaded plugin implements 'check_main': cannot scan! at
>> /usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/PerMsgStatus.pm
>> line 164.
>> What plugin do I need to have loaded to resolve this error?
> It looks like you are missing the v320.pre file, which contains
> loadplugin Mail::SpamAssassin::Plugin::Check
> along with several other important loadplugin lines.

mv /etc/mail/spamassassin/rules /etc/mail/spamassassin

no ?

installer build error maybe

-- 
xpoint http://www.unicom.com/pw/reply-to-harmful.html


RE: spamassassin bug

Posted by John Hardin <jh...@impsec.org>.
On Mon, 11 Jan 2010, Rich Shepard wrote:

> So I found and downloaded v320.pre into /etc/mail/spamassassin/rules and 
> still get the error. What have I missed in getting SA to see the new 
> .pre file is now present and calls for the check_main to be run?

Putting them into the rules subdirectory under /etc/mail/spamassassin does 
not sound right, as has been stated before.

Benny _almost_ gave you the right thing to do.  Try this:

   spamassassin --lint -D config

(--lint by itself is quiet) and look for lines like this:

[22650] dbg: config: using "/etc/mail/spamassassin" for site rules pre files
[22650] dbg: config: read file /etc/mail/spamassassin/init.pre
[22650] dbg: config: read file /etc/mail/spamassassin/v310.pre
[22650] dbg: config: read file /etc/mail/spamassassin/v312.pre
[22650] dbg: config: read file /etc/mail/spamassassin/v320.pre

What do you get?

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   No representation without taxation!
-----------------------------------------------------------------------
  6 days until Benjamin Franklin's 304th Birthday

RE: spamassassin bug

Posted by Rich Shepard <rs...@appl-ecosys.com>.
On Mon, 11 Jan 2010, Rosenbaum, Larry M. wrote:

> It looks like you are missing the v320.pre file, which contains

Larry,

   Yes, that's true. I have v310.pre and v312.pre.

> loadplugin Mail::SpamAssassin::Plugin::Check
> along with several other important loadplugin lines.

   So I found and downloaded v320.pre into /etc/mail/spamassassin/rules and
still get the error. What have I missed in getting SA to see the new .pre
file is now present and calls for the check_main to be run?

Thanks,

Rich

RE: spamassassin bug

Posted by "Rosenbaum, Larry M." <ro...@ornl.gov>.
> check: no loaded plugin implements 'check_main': cannot scan! at
> /usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/PerMsgStatus.pm
> line
> 164.
> 
>    What plugin do I need to have loaded to resolve this error?

It looks like you are missing the v320.pre file, which contains

loadplugin Mail::SpamAssassin::Plugin::Check

along with several other important loadplugin lines.

Re: spamassassin bug

Posted by Rich Shepard <rs...@appl-ecosys.com>.
On Mon, 11 Jan 2010, Benny Pedersen wrote:

> no do not copy, edit the files in there place where thay got installed

Benny,

   OK.

> where is your pre files located ?
> if thay are in /etc/mail/spamassassin/rules ?

   /etc/mail/spamassassin/rules

> output from --lint tells where thay should be

   I don't see this:

[root@salmo /etc/postfix]# spamassassin --lint
[22649] warn: netset: cannot include 127.0.0.1/32 as it has already been
included
check: no loaded plugin implements 'check_main': cannot scan! at
/usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/PerMsgStatus.pm line
164.

> the above error says me you dont have any pre files loaded at all

   What do I do to load them?

Thanks,

Rich

Re: spamassassin bug

Posted by Benny Pedersen <me...@junc.org>.
On Mon 11 Jan 2010 08:07:12 PM CET, Rich Shepard wrote
> Should I copy the .pre files to /usr/share/spamassassin?

no do not copy, edit the files in there place where thay got installed

>> spamassassin 2>&1 -D --lint | less
>   I can post the results, but the final error still is:
> check: no loaded plugin implements 'check_main': cannot scan! at
> /usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/PerMsgStatus.pm line
> 164.
> What plugin do I need to have loaded to resolve this error?

where is your pre files located ?

if thay are in /etc/mail/spamassassin/rules ?

output from --lint tells where thay should be

the above error says me you dont have any pre files loaded at all

check plugin is optional, but some code have it required, this might  
be a bug ?, others please comment on this here also

in less press s for save and pastebinn it if more help is needed

-- 
xpoint http://www.unicom.com/pw/reply-to-harmful.html


Re: spamassassin bug

Posted by Rich Shepard <rs...@appl-ecosys.com>.
On Mon, 11 Jan 2010, Benny Pedersen wrote:

> rules dir error

Benny,

   Should I copy the .pre files to /usr/share/spamassassin?

> spamassassin 2>&1 -D --lint | less

   I can post the results, but the final error still is:

check: no loaded plugin implements 'check_main': cannot scan! at
/usr/lib/perl5/vendor_perl/5.10.0/Mail/SpamAssassin/PerMsgStatus.pm line
164.

   What plugin do I need to have loaded to resolve this error?

Rich

Re: spamassassin bug

Posted by Benny Pedersen <me...@junc.org>.
On Mon 11 Jan 2010 07:01:04 PM CET, Rich Shepard wrote
>>> In /etc/mail/spamassassin/rules/ I have init.pre, v310.pre, and
>>> v312.pre files.
>> which would be a non-default location.
> Almost all SA-related files are in /etc/mail/spamassassin/; that's where
> the Slackware package installs everything. If this is a non-default

rules dir error

> location, where should they be? FWIW, that's were everything's been for
> years and I've had no problems until yesterday when running sa-learn kicked
> up that error.

spamassassin 2>&1 -D --lint | less

-- 
xpoint http://www.unicom.com/pw/reply-to-harmful.html


Re: spamassassin bug

Posted by Rich Shepard <rs...@appl-ecosys.com>.
On Mon, 11 Jan 2010, Kai Schaetzl wrote:

>> In /etc/mail/spamassassin/rules/ I have init.pre, v310.pre, and
>> v312.pre files.
>
> which would be a non-default location.

Kai,

   Almost all SA-related files are in /etc/mail/spamassassin/; that's where
the Slackware package installs everything. If this is a non-default
location, where should they be? FWIW, that's were everything's been for
years and I've had no problems until yesterday when running sa-learn kicked
up that error.

Thanks,

Rich

Re: spamassassin bug

Posted by Kai Schaetzl <ma...@conactive.com>.
Rich Shepard wrote on Mon, 11 Jan 2010 08:07:40 -0800 (PST):

> In /etc/mail/spamassassin/rules/ I have init.pre, v310.pre, and
> v312.pre files.

which would be a non-default location.

Kai

-- 
Get your web at Conactive Internet Services: http://www.conactive.com