Bug#864810: spamassassin: fails to initialize on IPv6 and then breaks
Hi Noah, > It's worse than that. The spamassassin.service unit that we're shipping > doesn't even have a dependency on the network at all. The improvements Umpf, indeed, so my server was lucky that IPv4 was fast up and running. > Specifically, what's missing is "After=syslog.target network.target" Thanks, I have added that manually to the service file for now, just to make sure that the next reboot doesn't create problems. Thanks and all the best Norbert -- PREINING Norbert http://www.preining.info Accelia Inc. +JAIST +TeX Live +Debian Developer GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Bug#864810: spamassassin: fails to initialize on IPv6 and then breaks
Control: tags -1 + pending On Thu, Jun 15, 2017 at 04:23:22AM -0400, Norbert Preining wrote: > It seems that the systemctl service files do not require a working > ipv6 setup It's worse than that. The spamassassin.service unit that we're shipping doesn't even have a dependency on the network at all. The improvements to the unit file were committed to git some time ago, but never made it into an upload. Specifically, what's missing is "After=syslog.target network.target" This will be fixed in unstable shortly, and in an update to stable ASAP. > Also, it seems that the /etc/default/spamassassin file is not used. That does not seem to be the case: root@stretch:~# grep OPTIONS /etc/default/spamassassin OPTIONS="--create-prefs --max-children 5 --helper-home-dir --min-children 7 --timeout-child=360" root@stretch:~# ps aux|grep spamassassin root 493 4.8 8.2 162060 83924 ?Ss 17:38 0:00 /usr/sbin/spamd -d --pidfile=/var/run/spamassassin.pid --create-prefs --max-children 5 --helper-home-dir --min-children 7 --timeout-child=360 Thanks for your report. noah
Bug#864810: spamassassin: fails to initialize on IPv6 and then breaks
Package: spamassassin Version: 3.4.1-6 Severity: important Dear Maintainer, * What led up to the situation? normal reboot * What exactly did you do (or not do) that was effective (or ineffective)? nothing, normal reboot * What was the outcome of this action? spamd cannot initialize an ipv6 socket: Jun 15 04:14:15 kimsufi spamd[427]: spamd: created IO::Socket::IP socket on [127.0.0.1]:783 Jun 15 04:14:15 kimsufi spamd[427]: spamd: could not create IO::Socket::IP socket on [::1]:783: Invalid argument Jun 15 04:14:15 kimsufi kernel: [ 13.418338] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready But afterwards spamc tries to connect via IPv6 and gives up. * What outcome did you expect instead? Working startup on both ipv4 and ipv6 It seems that the systemctl service files do not require a working ipv6 setup Also, it seems that the /etc/default/spamassassin file is not used. All the best Norbert -- System Information: Debian Release: 9.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Init: systemd (via /run/systemd/system) Versions of packages spamassassin depends on: ii adduser 3.115 ii curl 7.52.1-5 ii init-system-helpers 1.48 ii libhtml-parser-perl 3.72-3 ii libhttp-date-perl6.02-1 ii libmail-dkim-perl0.40-1 ii libnet-dns-perl 1.07-1 ii libnetaddr-ip-perl 4.079+dfsg-1+b1 ii libsocket6-perl 0.27-1+b1 ii libsys-hostname-long-perl1.5-1 ii libwww-perl 6.15-1 ii lsb-base 9.20161125 ii perl 5.24.1-3 ii perl-modules-5.24 [libarchive-tar-perl] 5.24.1-3 Versions of packages spamassassin recommends: ii gnupg 2.1.18-6 ii libio-socket-inet6-perl 2.72-2 ii libmail-spf-perl 2.9.0-4 ii libperl5.24 [libsys-syslog-perl] 5.24.1-3 ii sa-compile3.4.1-6 ii spamc 3.4.1-6+b1 Versions of packages spamassassin suggests: ii libdbi-perl 1.636-1+b1 pn libencode-detect-perl pn libgeo-ip-perl ii libio-socket-ssl-perl2.044-1 pn libnet-patricia-perl ii libperl5.24 [libcompress-zlib-perl] 5.24.1-3 pn pyzor pn razor -- Configuration Files: /etc/default/spamassassin changed: ENABLED=0 OPTIONS="--create-prefs --max-children 5 --helper-home-dir" PIDFILE="/var/run/spamd.pid" CRON=1 -- no debconf information