Spamassassin failed to start - Plesk 11.0.9

Discussion in 'Parallels Plesk Panel 11.x for Linux Problems, Suggested Fixes, and How-To' started by Balles, Jun 27, 2013.

  1. Balles

    Balles New Member

    Messages:
    20
    Hello,

    Spamassassin is down in my server:

    # service psa-spamassassin restart

    Shutting down psa-spamassassin service: [ OK ]
    Jun 28 08:44:33.293 [24867] warn: server socket setup failed, retry 1: spamd: already running on /tmp/spamd_full.sock, exiting
    Jun 28 08:44:34.294 [24867] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 08:44:34.295 [24867] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 08:44:34.296 [24867] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 08:44:34.296 [24867] warn: server socket setup failed, retry 2: spamd: directory for does not exist, exiting
    Jun 28 08:44:35.298 [24867] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 08:44:35.299 [24867] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 08:44:35.299 [24867] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 08:44:35.300 [24867] warn: server socket setup failed, retry 3: spamd: directory for does not exist, exiting
    Jun 28 08:44:36.301 [24867] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 08:44:36.302 [24867] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 08:44:36.302 [24867] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 08:44:36.303 [24867] warn: server socket setup failed, retry 4: spamd: directory for does not exist, exiting
    Jun 28 08:44:37.304 [24867] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 08:44:37.305 [24867] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 08:44:37.305 [24867] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 08:44:37.306 [24867] warn: server socket setup failed, retry 5: spamd: directory for does not exist, exiting
    Jun 28 08:44:38.308 [24867] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 08:44:38.308 [24867] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 08:44:38.309 [24867] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 08:44:38.309 [24867] warn: server socket setup failed, retry 6: spamd: directory for does not exist, exiting
    Jun 28 08:44:39.310 [24867] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 08:44:39.311 [24867] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 08:44:39.311 [24867] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 08:44:39.312 [24867] warn: server socket setup failed, retry 7: spamd: directory for does not exist, exiting
    Jun 28 08:44:40.313 [24867] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 08:44:40.314 [24867] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 08:44:40.314 [24867] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 08:44:40.315 [24867] warn: server socket setup failed, retry 8: spamd: directory for does not exist, exiting
    Jun 28 08:44:41.316 [24867] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 08:44:41.317 [24867] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 08:44:41.317 [24867] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 08:44:41.318 [24867] warn: server socket setup failed, retry 9: spamd: directory for does not exist, exiting
    Jun 28 08:44:42.319 [24867] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 08:44:42.320 [24867] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 08:44:42.320 [24867] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 08:44:42.321 [24867] error: spamd: directory for does not exist, exiting
    spamd: directory for does not exist, exiting
    Starting psa-spamassassin service: [FAILED]
    --------------------------------------------------------------------

    My server is:
    Plesk Panel Linux 11.0.9 #55
    Centos 5.9 (Final) x64

    Thank you
  2. IgorG

    IgorG Parallels Team

    Messages:
    15,860
    Make sure that directory /var/run/spamd exists and has correct permissions:

    # stat /var/run/spamd
    File: `/var/run/spamd'
    Size: 4096 Blocks: 8 IO Block: 4096 directory
    Device: 1dh/29d Inode: 18108599 Links: 2
    Access: (0755/drwxr-xr-x) Uid: ( 110/ popuser) Gid: ( 0/ root)
  3. Balles

    Balles New Member

    Messages:
    20
    Yes, exists and has correct permissions:

    # stat /var/run/spamd
    File: `/var/run/spamd'
    Size: 27 Blocks: 0 IO Block: 4096 directory
    Device: fd01h/64769d Inode: 4198791 Links: 2
    Access: (0755/drwxr-xr-x) Uid: ( 110/ popuser) Gid: ( 0/ root)
  4. IgorG

    IgorG Parallels Team

    Messages:
    15,860
    Try to remove spamassassin with

    # rpm -e psa-spamassassin spamassassin

    and then install it back with autoinstaller.
  5. Balles

    Balles New Member

    Messages:
    20
    When I remove spamassassin rpms this is the message with errors:
    ----------------------------------------------------------------------------
    warning: /etc/mail/spamassassin/local.cf saved as /etc/mail/spamassassin/local.cf.rpmsave
    warning: /etc/cron.d/sa-update saved as /etc/cron.d/sa-update.rpmsave
    Delete spamassassin preferences from .qmail files for mailnames
    Delete for "xxxxx@xxxx.com"
    Can't locate Mail/SpamAssassin.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8 /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/local/psa/lib/perl5/5.8.8 /usr/local/psa/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/local/psa/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/local/psa/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl) at /usr/local/psa/admin/sbin/spammng line 77.
    BEGIN failed--compilation aborted at /usr/local/psa/admin/sbin/spammng line 77.
    Delete for "xxxxx@xxxx.com"
    Can't locate Mail/SpamAssassin.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8 /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/local/psa/lib/perl5/5.8.8 /usr/local/psa/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/local/psa/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/local/psa/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl) at /usr/local/psa/admin/sbin/spammng line 77.
    BEGIN failed--compilation aborted at /usr/local/psa/admin/sbin/spammng line 77.
    ---------------------------------------------------------------------------------------------


    I have re-installed again spamassassin from plesk installer, and SpamAssassin continues down:
    -------------------------------------------------------------------------------------------------------
    # service psa-spamassassin restart
    Shutting down psa-spamassassin service: [ OK ]
    Jun 28 11:29:35.289 [9069] warn: server socket setup failed, retry 1: spamd: already running on /tmp/spamd_full.sock, exiting
    Jun 28 11:29:36.290 [9069] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 11:29:36.291 [9069] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 11:29:36.291 [9069] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 11:29:36.292 [9069] warn: server socket setup failed, retry 2: spamd: directory for does not exist, exiting
    Jun 28 11:29:37.294 [9069] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 11:29:37.295 [9069] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 11:29:37.295 [9069] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 11:29:37.296 [9069] warn: server socket setup failed, retry 3: spamd: directory for does not exist, exiting
    Jun 28 11:29:38.298 [9069] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 11:29:38.299 [9069] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 11:29:38.299 [9069] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 11:29:38.300 [9069] warn: server socket setup failed, retry 4: spamd: directory for does not exist, exiting
    Jun 28 11:29:39.301 [9069] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 11:29:39.302 [9069] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 11:29:39.302 [9069] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 11:29:39.303 [9069] warn: server socket setup failed, retry 5: spamd: directory for does not exist, exiting
    Jun 28 11:29:40.304 [9069] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 11:29:40.305 [9069] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 11:29:40.305 [9069] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 11:29:40.306 [9069] warn: server socket setup failed, retry 6: spamd: directory for does not exist, exiting
    Jun 28 11:29:41.307 [9069] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 11:29:41.307 [9069] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 11:29:41.329 [9069] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 11:29:41.329 [9069] warn: server socket setup failed, retry 7: spamd: directory for does not exist, exiting
    Jun 28 11:29:42.331 [9069] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 11:29:42.331 [9069] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 11:29:42.332 [9069] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 11:29:42.332 [9069] warn: server socket setup failed, retry 8: spamd: directory for does not exist, exiting
    Jun 28 11:29:43.334 [9069] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 11:29:43.335 [9069] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 11:29:43.335 [9069] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 11:29:43.336 [9069] warn: server socket setup failed, retry 9: spamd: directory for does not exist, exiting
    Jun 28 11:29:44.338 [9069] warn: Use of uninitialized value in -e at /usr/bin/spamd line 769.
    Jun 28 11:29:44.338 [9069] warn: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 262.
    Jun 28 11:29:44.339 [9069] warn: Use of uninitialized value in concatenation (.) or string at /usr/bin/spamd line 787.
    Jun 28 11:29:44.339 [9069] error: spamd: directory for does not exist, exiting
    spamd: directory for does not exist, exiting
    Starting psa-spamassassin service: [FAILED]
    ------------------------------------------------------------------------------------------------------------

    Thank you
  6. IgorG

    IgorG Parallels Team

    Messages:
    15,860
    Most probably something wrong with required perl modules. I suggest you contact Support Team. They will check and fix this issue directly on your server.
  7. Balles

    Balles New Member

    Messages:
    20
    I found a solution:

    # killall -9 spamd
    # service psa-spamassassin restart

Share This Page