Spamassassin 无法启动

Spamassassin 无法启动

我在 Debian bullseye armel 上安装了 spamassassin (3.4.6-1)。当我尝试使用 sudo systemctl start spamassassin 启动它时:

Job for spamassassin.service failed because a timeout was exceeded. See "systemctl status spamassassin.service" and "journalctl -xe" for details.

systemctl status spamassassin 的输出是:

    ● spamassassin.service - Perl-based spam filter using text analysis
     Loaded: loaded (/lib/systemd/system/spamassassin.service; disabled; vendor preset: enabled)
     Active: deactivating (final-sigterm) (Result: timeout)
    Process: 17612 ExecStart=/usr/sbin/spamd -d --pidfile=/run/spamd.pid $OPTIONS (code=killed, signal=TERM)
      Tasks: 3 (limit: 855)
     Memory: 66.0M
        CPU: 1min 55.519s
     CGroup: /system.slice/spamassassin.service
             ├─17616 /usr/bin/perl -T -w /usr/sbin/spamd -d --pidfile=/run/spamd.pid --create-prefs --max-children 5 --helper-home-dir
             ├─17621 spamd child
             └─17622 spamd child

May 13 10:05:48 computer spamd[17612]: logger: removing stderr method
May 13 10:07:05 computer systemd[1]: spamassassin.service: start operation timed out. Terminating.
May 13 10:07:09 computer spamd[17616]: spamd: server killed by SIGTERM, shutting down
May 13 10:07:09 computer spamd[17616]: replacetags: regexp compilation failed '(?i)(?:^|\s)(?:(?:[pP\xd1\xf1\xfe]|[\xce][\xa1]|[\xcf][\x81\xb7\xb8]|[\xd0][\x>
May 13 10:07:31 computer spamd[17616]: spamd: server started on IO::Socket::IP [::1]:783, IO::Socket::IP [127.0.0.1]:783 (running version 3.4.6)
May 13 10:07:31 computer spamd[17616]: spamd: server pid: 17616
May 13 10:07:31 computer spamd[17616]: spamd: server successfully spawned child process, pid 17621
May 13 10:07:31 computer spamd[17616]: spamd: server successfully spawned child process, pid 17622
May 13 10:07:31 computer spamd[17616]: prefork: child states: IS
May 13 10:07:31 computer spamd[17616]: prefork: child states: II

journalctl -xe 的输出是:

░░ The unit spamassassin.service completed and consumed the indicated resources.
May 13 10:11:36 computer systemd[1]: spamassassin.service: Scheduled restart job, restart counter is at 17.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ Automatic restarting of the unit spamassassin.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
May 13 10:11:36 computer systemd[1]: Stopped Perl-based spam filter using text analysis.
░░ Subject: A stop job for unit spamassassin.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A stop job for unit spamassassin.service has finished.
░░
░░ The job identifier is 4819 and the job result is done.
May 13 10:11:36 computer systemd[1]: spamassassin.service: Consumed 1min 55.652s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit spamassassin.service completed and consumed the indicated resources.
May 13 10:11:36 computer systemd[1]: Starting Perl-based spam filter using text analysis...
░░ Subject: A start job for unit spamassassin.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit spamassassin.service has begun execution.
░░
░░ The job identifier is 4819.
May 13 10:11:50 computer spamd[17638]: logger: removing stderr method
May 13 10:12:27 computer kernel: [UFW BLOCK] IN=wlan0 OUT= MAC=01:00:5e:00:00:01:08:7a:4c:4a:ac:19:08:00 SRC=192.168.2.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0>
May 13 10:13:06 computer systemd[1]: spamassassin.service: start operation timed out. Terminating.
May 13 10:13:09 computer spamd[17642]: spamd: server killed by SIGTERM, shutting down
May 13 10:13:09 computer spamd[17642]: replacetags: regexp compilation failed '(?i)(?:^|\s)(?:(?:[pP\xd1\xf1\xfe]|[\xce][\xa1]|[\xcf][\x81\xb7\xb8]|[\xd0][\x>
May 13 10:13:11 computer sudo[17623]: pam_unix(sudo:session): session closed for user root
May 13 10:13:18 computer sudo[17648]:    luigi : TTY=pts/0 ; PWD=/home/luigi ; USER=root ; COMMAND=/usr/bin/journalctl -xe
May 13 10:13:18 computer sudo[17648]: pam_unix(sudo:session): session opened for user root(uid=0) by luigi(uid=1000)
lines 4242-4280/4280 (END)

我不知道该怎么办,但我觉得问题出在“正则表达式编译失败”错误。有什么想法吗?谢谢!

编辑:令人惊讶的是,似乎有一个 spamd 进程,尽管我仍然无法启动或重新启动 spamassassin.service:

    ps aux | grep spam
root      1219 29.5  4.7  26232 20988 ?        Ss   12:00   0:13 /usr/bin/perl -T -w /usr/sbin/spamd -d --pidfile=/run/spamd.pid --create-prefs --max-children 5 --helper-home-dir
root      1227 89.6  9.2  48684 41012 ?        Rs   12:01   0:26 /usr/bin/perl -T -w /usr/sbin/spamd -d --pidfile=/run/spamd.pid --create-prefs --max-children 5 --helper-home-dir

EIDT 2:“sudo spamd -D”按预期工作。但我无法启动 spamassassin.service。

相关内容