Package: calendarserver
Version: 2.4.dfsg-7.1
Severity: important
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Since the upgrade to 2.4.dfsg-7.1, calendarserver would not start:

> [....] Starting calendarserver: caldavdinvoke-rc.d: initscript 
> calendarserver, action "start" failed.
> dpkg: error processing calendarserver (--configure):
>  subprocess installed post-installation script returned error exit status 3
> Errors were encountered while processing:
>  calendarserver

   This seems to be caused by the effect of the "set -e" directive (on
line 30 of /etc/init.d/calendarserver) on the "start-stop-daemon
- --status" invocation on line 45. If the service is not running,
start-stop-daemon returns 3 here, and "set -e" causes the script to
stop running if "a pipeline [...] exits with a non-zero status" (from
the bash manual.

   Commenting out the "set -e" directive allows calendarserver to
start; although probably not the best solution, it at least allowed me
to get the thing running.

- -- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.7-tinkerbell-0
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages calendarserver depends on:
ii  adduser                        3.113+nmu2
ii  lsb-base                       4.1+Debian4
ii  memcached                      1.4.13-0.1
ii  python                         2.7.2-10
ii  python-central                 0.6.17
ii  python-dateutil                1.5-1
ii  python-kerberos                1.1+svn4895-1+b2
ii  python-openssl                 0.13-2
ii  python-plist                   1.8-1
ii  python-pysqlite2               2.6.3-2
ii  python-twisted-calendarserver  8.2.0.svn27622-2+b1
ii  python-vobject                 0.8.1c-4
ii  python-xattr                   0.6.4-1
ii  ssl-cert                       1.0.28

Versions of packages calendarserver recommends:
pn  python-ldap        2.4.9-1
pn  python-pydirector  <none>

calendarserver suggests no packages.

- -- Configuration Files:
/etc/caldavd/accounts.xml [Errno 13] Permission denied: 
u'/etc/caldavd/accounts.xml'
/etc/caldavd/caldavd.plist [Errno 13] Permission denied: 
u'/etc/caldavd/caldavd.plist'
/etc/caldavd/sudoers.plist [Errno 13] Permission denied: 
u'/etc/caldavd/sudoers.plist'
/etc/default/calendarserver changed:
start_calendarserver=yes

/etc/init.d/calendarserver changed:
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/caldavd
NAME=caldavd
DESC=calendarserver
RUNDIR=/var/run/caldavd/
SPOOLDIR=/var/spool/caldavd/
test -x $DAEMON || exit 0
if [ -f /etc/default/calendarserver ] ; then
        . /etc/default/calendarserver
fi
. /lib/lsb/init-functions
check_start_daemon() {
  if [ ! "$start_calendarserver" = "yes" ]; then
    log_warning_msg "Not starting calendarserver, disabled via 
/etc/default/calendarserver"
    return 1
  else
    return 0
  fi
}
case "$1" in
  start)
        if check_start_daemon; then
            log_daemon_msg "Starting $DESC" "$NAME"
            start-stop-daemon --status --quiet --pidfile $RUNDIR$NAME.pid > 
/dev/null
            if [ $? = 0 ] ; then
                log_end_msg 0
                exit 0
            fi
            mkdir -p $RUNDIR
            chown --reference=$SPOOLDIR $RUNDIR
            if start-stop-daemon --start --quiet --pidfile $RUNDIR$NAME.pid \
                    --exec $DAEMON -- $DAEMON_OPTS 2>/dev/null; then
                log_end_msg 0
                RET=0
            else
                log_end_msg 1
                RET=1
            fi
        fi
        ;;
  stop)
        log_daemon_msg "Stopping $DESC" "$NAME"
        if start-stop-daemon --oknodo --stop --quiet --pidfile $RUNDIR$NAME.pid 
\
                --exec /usr/bin/python; then
            log_end_msg 0
            RET=0
        else
            log_end_msg 1
            RET=1
        fi
        ;;
  restart|force-reload)
        #
        #       If the "reload" option is implemented, move the "force-reload"
        #       option to the "reload" entry above. If not, "force-reload" is
        #       just the same as "restart".
        #
        if check_start_daemon; then
            log_daemon_msg "Restarting $DESC" "$NAME"
            start-stop-daemon --stop --quiet --oknodo  --pidfile \
                    $RUNDIR$NAME.pid --exec /usr/bin/python
            sleep 1
            if start-stop-daemon --start --quiet --pidfile \
                    $RUNDIR$NAME.pid --exec $DAEMON -- $DAEMON_OPTS 
2>/dev/null; then
                log_end_msg 0
                RET=0
            else
                log_end_msg 1
                RET=1
            fi
        fi
        ;;
  status)
        status_of_proc -p $RUNDIR$NAME.pid "$DAEMON" "$NAME" && exit 0 || exit 
$?
        ;;
  *)
        N=/etc/init.d/$NAME
        # echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2
        echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
        exit 1
        ;;
esac
exit $RET


- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJP0pdRAAoJEDHYrtWvbQ1Kr08P/RBY0kAbRm+LOWeXoeYwij4W
yJkGNRofZTBY18Et7lgqgSJEJMcq8MCOg/xX1FczQj8bFmOAOGOuH6L+dXdSxZwi
423noVoBh0WPfmdyEr4a2TOAq3HBT0hKmvDmBjZSIsiWxPZEj55fgoXbUSLPwA+Z
ukFBM3DdAMtQ2xAS5dmj8e8H5mqoYy00Aj9k5wwVFM+ULvecPENLdoTOTnXsNHFc
ClMuXbVaXHIOn6QKuyxl0oqDbXwrXq9CT2wKtdz0slXsrdpGxoWtqI/yHsZoT1iM
h41nAhsMgcLDZIcnYp6yXqhenXHQ+qkZZ3+xYOfRYLwi1P3i8Fg2vY1HED1wh3vA
L+AJ8npFwLEI5CnFy+NN5Z48Dhm3qA+jHYdvV9IR0v5ymZOW20Iv1mGPtzX9Cy4j
mJcOPB1tnNTIxAj5N9fcYxvDJ12NII8b8oJ8sq4NC2DhltJFOxeplSnVp8XL8Lil
p9OHFGawcg7cULJCWEdNcijBOmrGXW2VDi6D13RfU87qpYIgsn+jzSk6g+UDx8bw
htg1mGqpxZgnpPK7sgIJZw9dPr6uFOCiNHFEWoWutYZSzMMqKoCazLoFQYoioA2d
tSrNFGh3Ca1TV6qFL/kkZyb7GabzQjRrjS32yK+ArhTGs+NZMHtpKjlpPyVessvh
UMPMuXBvpXxJk3oef8tp
=4YcI
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to