[pkg-fetchmail-maint] Bug#487943: fetchmail: fails to start with /etc/init.d after upgrade
Jean-Luc Coulon (f5ibh)
jean-luc.coulon at wanadoo.fr
Wed Jun 25 10:17:13 UTC 2008
Package: fetchmail
Version: 6.3.9~rc2-1
Severity: important
Hi,
I've updated from 6.3.8-11 to 6.3.9~rc2-1
fetchmail does start after the upgrade.
I've tried to purge everything and reinstall:
--->8----->8---------
Unpacking fetchmail (from .../fetchmail_6.3.9~rc2-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up fetchmail (6.3.9~rc2-1) ...
Adding system user `fetchmail' (UID 113) ...
Adding new user `fetchmail' (UID 113) with group `nogroup' ...
Creating home directory `/var/lib/fetchmail' ...
usermod: no changes
Starting mail retriever agent: fetchmail failed!
--->8----->8---------
Then I tried to manually start it with "set -x" in /etc/init.d/fetchmail,
I got:
[jean-luc at tangerine] % sudo /etc/init.d/fetchmail start ~
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/bin/fetchmail
+ USER=fetchmail
+ OPTIONS=
+ CONFFILE=/etc/fetchmailrc
+ PIDFILE=/var/run/fetchmail/fetchmail.pid
+ UIDL=/var/lib/fetchmail/.fetchmail-UIDL-cache
+ '[' '!' -e /etc/fetchmailrc ']'
+ test -f /etc/default/fetchmail
+ . /etc/default/fetchmail
++ START_DAEMON=yes
+ OPTIONS=' -f /etc/fetchmailrc --pidfile /var/run/fetchmail/fetchmail.pid'
+ '[' '!' xyes = xyes -a '!' start = stop ']'
+ test -f /usr/bin/fetchmail
+ . /lib/lsb/init-functions
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ '[' start = start ']'
+ '[' '!' -r /etc/fetchmailrc ']'
+ id fetchmail
+ grep -qs '^[[:space:]]*set[[:space:]]\+daemon[[:space:]]' /etc/fetchmailrc
+ grep -qs -e '^[[:space:]]*OPTIONS=.*-d[[:space:]]*[[:digit:]]\+'
/etc/default/fetchmail
+ OPTIONS=' -f /etc/fetchmailrc --pidfile /var/run/fetchmail/fetchmail.pid -d
300'
+ grep -qs '^[[:space:]]*set[[:space:]]\+no[[:space:]]\+syslog' /etc/fetchmailrc
+ OPTIONS=' -f /etc/fetchmailrc --pidfile /var/run/fetchmail/fetchmail.pid -d
300 --syslog'
+ '[' /var/run/fetchmail = /var/run/fetchmail ']'
+ '[' '!' -d /var/run/fetchmail ']'
++ stat -c '%U %a' /etc/fetchmailrc
+ '[' 'fetchmail 600' '!=' 'fetchmail 600' ']'
+ case "$1" in
+ test -e /var/run/fetchmail/fetchmail.pid
+ log_begin_msg 'Starting mail retriever agent:' fetchmail
+ '[' -z 'Starting mail retriever agent:' ']'
+ echo -n 'Starting mail retriever agent:' fetchmail
Starting mail retriever agent: fetchmail+ start-stop-daemon -S -o -q -p
/var/run/fetchmail/fetchmail.pid -x /usr/bin/fetchmail -u fetchmail -a /bin/su
-- -c '/usr/bin/fetchmail -f /etc/fetchmailrc --pidfile
/var/run/fetchmail/fetchmail.pid -d 300 --syslog' fetchmail
+ log_end_msg 1
+ '[' -z 1 ']'
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -t 1 ']'
+ '[' xxterm '!=' '' ']'
+ '[' xxterm '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z ']'
+ FANCYTTY=1
+ case "$FANCYTTY" in
+ true
++ /usr/bin/tput setaf 1
+ RED=''
++ /usr/bin/tput op
+ NORMAL=''
+ '[' 1 -eq 0 ']'
+ /bin/echo -e ' failed!'
failed!
The permissions of /etc/fetchmailrc are (unchanged):
[jean-luc at tangerine] % ls -l /etc/fetchmailrc
-rw------- 1 fetchmail root 1158 Jun 25 11:56 /etc/fetchmailrc
It works if I copy the fetchmailrc file to my home directory, change the
owner, and run fetchmail from there:
[jean-luc at tangerine] % fetchmail -v
fetchmail: 6.3.9-rc2 querying pop.orange.fr (protocol POP3) at Wed Jun 25
12:13:47 2008: poll started
Trying to connect to 80.12.242.14/110...connected.
fetchmail: POP3< +OK connected to pop3 on 2a16
fetchmail: POP3> CAPA
Regards
Jean-Luc
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-rc8-k8-1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages fetchmail depends on:
ii adduser 3.108 add and remove users and groups
ii debianutils 2.29 Miscellaneous utilities specific t
ii libc6 2.7-12 GNU C Library: Shared libraries
ii libcomerr2 1.40.11-1 common error description library
ii libkrb53 1.6.dfsg.4~beta1-3 MIT Kerberos runtime libraries
ii libssl0.9.8 0.9.8g-10.1 SSL shared libraries
ii lsb-base 3.2-12 Linux Standard Base 3.2 init scrip
Versions of packages fetchmail recommends:
ii ca-certificates 20080617 Common CA certificates
-- no debconf information
More information about the pkg-fetchmail-maint
mailing list