Bug#792777: fails to send email on failure; falls over on circle at start of systemctl status

Joey Hess id at joeyh.name
Sat Jul 18 13:50:35 BST 2015


Package: systemd-cron
Version: 1.5.2-1
Severity: normal

Jul 18 08:41:26 darkstar systemd[1]: Starting [Cron] "@reboot mpd"...
Jul 18 08:41:26 darkstar sh[1906]: Jul 18 08:41 : socket: Failed to bind to '[::]:6600': Address already in use
Jul 18 08:41:26 darkstar systemd[1]: cron-joey-joey-1.service: Main process exited, code=exited, status=1/FAILURE
Jul 18 08:41:26 darkstar systemd[1]: Failed to start [Cron] "@reboot mpd".
Jul 18 08:41:26 darkstar systemd[1]: cron-joey-joey-1.service: Unit entered failed state.
Jul 18 08:41:26 darkstar systemd[1]: cron-joey-joey-1.service: Triggering OnFailure= dependencies.
Jul 18 08:41:26 darkstar systemd[1]: cron-joey-joey-1.service: Failed with result 'exit-code'.
Jul 18 08:41:26 darkstar systemd[1]: Created slice system-cron\x2dfailure.slice.
Jul 18 08:41:26 darkstar systemd[1]: Starting system-cron\x2dfailure.slice.
Jul 18 08:41:26 darkstar systemd[1]: Starting systemd-cron OnFailure for cron-joey-joey-1...
Jul 18 08:41:26 darkstar mail_on_failure[1909]: Traceback (most recent call last):
Jul 18 08:41:26 darkstar mail_on_failure[1909]: File "/lib/systemd-cron/mail_on_failure", line 43, in <module>
Jul 18 08:41:26 darkstar mail_on_failure[1909]: systemctl = subprocess.check_output(['systemctl','status',job], universal_newlines=True)
Jul 18 08:41:26 darkstar mail_on_failure[1909]: File "/usr/lib/python3.4/subprocess.py", line 609, in check_output
Jul 18 08:41:26 darkstar mail_on_failure[1909]: output, unused_err = process.communicate(inputdata, timeout=timeout)
Jul 18 08:41:26 darkstar mail_on_failure[1909]: File "/usr/lib/python3.4/subprocess.py", line 949, in communicate
Jul 18 08:41:26 darkstar mail_on_failure[1909]: stdout = _eintr_retry_call(self.stdout.read)
Jul 18 08:41:26 darkstar mail_on_failure[1909]: File "/usr/lib/python3.4/subprocess.py", line 491, in _eintr_retry_call
Jul 18 08:41:26 darkstar mail_on_failure[1909]: return func(*args)
Jul 18 08:41:26 darkstar mail_on_failure[1909]: File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
Jul 18 08:41:26 darkstar mail_on_failure[1909]: return codecs.ascii_decode(input, self.errors)[0]
Jul 18 08:41:26 darkstar mail_on_failure[1909]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)
Jul 18 08:41:26 darkstar systemd[1]: cron-failure at cron-joey-joey-1.service: Main process exited, code=exited, status=1/FAILURE
Jul 18 08:41:26 darkstar systemd[1]: Failed to start systemd-cron OnFailure for cron-joey-joey-1.
Jul 18 08:41:26 darkstar systemd[1]: cron-failure at cron-joey-joey-1.service: Unit entered failed state.
Jul 18 08:41:26 darkstar systemd[1]: cron-failure at cron-joey-joey-1.service: Failed with result 'exit-code'.

This seems to be trying to mail the output of systemctl status.

joey at darkstar:~>systemctl  status cron-joey-joey-1.service|hexdump -C
00000000  e2 97 8f 20 63 72 6f 6e  2d 6a 6f 65 79 2d 6a 6f  |... cron-joey-jo|
00000010  65 79 2d 31 2e 73 65 72  76 69 63 65 20 2d 20 5b  |ey-1.service - [|
00000020  43 72 6f 6e 5d 20 22 40  72 65 62 6f 6f 74 20 6d  |Cron] "@reboot m|
00000030  70 64 22 0a 20 20 20 4c  6f 61 64 65 64 3a 20 6c  |pd".   Loaded: l|

So, the 0xe2 it falls over on is the very first character, the circle

● cron-joey-joey-1.service - [Cron] "@reboot mpd"

-- Package-specific info:
-- output of systemd-delta

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd-cron depends on:
ii  init-system-helpers  1.23
ii  python3              3.4.3-4
ii  systemd-sysv         222-1

Versions of packages systemd-cron recommends:
ii  postfix [mail-transport-agent]  2.11.3-1

systemd-cron suggests no packages.

-- no debconf information

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20150718/39d44501/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list