Mailing List Archive

spam_pid not found
Hi,

Trying to upgrade Mail::SpamAssassin via cpan but I get "spam_pid not
found" errors (see debug.log).

# ps ax | grep `cat /var/run/spamd.pid
  73673 ?        Ss     0:04 /usr/bin/perl -T -w /usr/sbin/spamd -d
--pidfile=/run/spamd.pid --create-prefs --max-children 5
--helper-home-dir --syslog-socket=native

I also get some warnings (see debug.log).

Most relevant Google search brings me to
https://github.com/MailScanner/v5/issues/635, but I'm not using
MailScanner. Should I?

Ubuntu 20.04.6 LTS
SpamAssassin Server version 3.4.4
  running on Perl 5.30.0
  with SSL support (IO::Socket::SSL 2.067)
  with zlib support (Compress::Zlib 2.206)

I would like to have this resolved.

- Hansa
Re: spam_pid not found [ In reply to ]
Unfortunately this is not the solution.
/run/spamd.pid exists and contains the same pid as /var/run/spamd.pid.

It is created when starting the spamd service.


On 16-08-2023 14:34, bOnK wrote:
>
>> # ps ax | grep `cat */var/run/spamd.pid *
>>   73673 ?        Ss     0:04 /usr/bin/perl -T -w /usr/sbin/spamd -d
>> --pidfile=*/run/spamd.pid* --create-prefs --max-children 5
>> --helper-home-dir --syslog-socket=native
>
> Met vriendelijke groet,
>
> bOnK / H. Rouwenhorst
> WebMeneer.nl
> +31 653 121 481
>
Re: spam_pid not found [ In reply to ]
What do you exactly mean by "removing the option in the startup unit"?
I'm not running spamd via a socket.

I commented out "PIDFILE="/var/run/spamd.pid" in default/spamassassin.
Test still results in timeout.

t/sa_check_spamd.t ................ spam_pid not found: Sleeping 5 -
Retry # 19



On 16-08-2023 15:22, Reindl Harald (privat) wrote:
>
>
> Am 16.08.23 um 15:14 schrieb Hansa via users:
>> Unfortunately this is not the solution.
>> /run/spamd.pid exists and contains the same pid as /var/run/spamd.pid.
>
> /var/run is a symlink to /run for ages
>
> just remove the option in the startup unit and case closed
>
> sa-milt      866  0.0  2.2 121356 113568 ?       SNs  Jul27   0:54
> /usr/bin/perl -T -w /usr/bin/spamd --max-children=5 --round-robin
> --max-conn-per-child=25
> --socketpath=/run/spamassassin/spamassassin.sock --socketmode=0666
>
>> It is created when starting the spamd service.
>>
>>
>> On 16-08-2023 14:34, bOnK wrote:
>>>
>>>> # ps ax | grep `cat */var/run/spamd.pid *
>>>>   73673 ?        Ss     0:04 /usr/bin/perl -T -w /usr/sbin/spamd -d
>>>> --pidfile=*/run/spamd.pid* --create-prefs --max-children 5
>>>> --helper-home-dir --syslog-socket=native
Re: spam_pid not found [ In reply to ]
On 2023-08-16 at 09:40:01 UTC-0400 (Wed, 16 Aug 2023 15:40:01 +0200)
Hansa via users <forums@logic-q.nl>
is rumored to have said:

> What do you exactly mean by "removing the option in the startup unit"?
> I'm not running spamd via a socket.

PLEASE IGNORE THE TROLL.

Harald Reindl has been banned from this mailing list for years due to
abusive behavior, but since it is a public list we can't stop him from
mailing participants directly, as he has with you.


> I commented out "PIDFILE="/var/run/spamd.pid" in default/spamassassin.
> Test still results in timeout.

Nothing you do to the operational system configuration that handles
running spamd should have any effect on how the build-time tests work.
The tests are supposed to be fully isolated from the installed instance
of SA, if there is an installed instance of SA.

>
> t/sa_check_spamd.t ................ spam_pid not found: Sleeping 5 -
> Retry # 19

You cannot expect the build-time tests to succeed if you run them as
root OR on a machine already running spamd. If this is not clear from
reading the test documentation in the source distribution, please think
about how we can make it clearer and make a suggestion...


--
Bill Cole
bill@scconsult.com or billcole@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
Re: spam_pid not found [ In reply to ]
On 8/16/2023 8:15 AM, Hansa via users wrote:
> Hi,
>
> Trying to upgrade Mail::SpamAssassin via cpan but I get "spam_pid not
> found" errors (see debug.log).
>
> # ps ax | grep `cat /var/run/spamd.pid
>   73673 ?        Ss     0:04 /usr/bin/perl -T -w /usr/sbin/spamd -d
> --pidfile=/run/spamd.pid --create-prefs --max-children 5
> --helper-home-dir --syslog-socket=native
>
>

CPAN will put stuff in the /usr/local/bin folder.  Compare
/usr/sbin/spamd -V to /usr/local/bin/spamd -V

Also, check the values in /etc/init.d/spamassassin

-- Jared Hall