Bug#771830: Fails to execute at all

Juhapekka Tolvanen juhtolv at iki.fi
Tue Dec 2 17:50:44 GMT 2014


Package: systemd-cron
Version: 1.3.1+ds1-2
Severity: grave


Here are relevant lines from output of dmesg-command:

 [   21.059257] EXT4-fs (sdb1): mounted filesystem with ordered data
 mode. Opts: (null)
  [   21.520730] systemd[1]: /usr appears to be on its own filesytem
 and is not already mounted. This is not a supported setup. Some
 things will probably break (sometimes even
   silently) in mysterious ways. Consult
 http://freedesktop.org/wiki/Software/systemd/separate-usr-is-broken
 for more information.
 *[   21.577570] systemd[123]: Failed to execute
 /lib/systemd/system-generators/systemd-crontab-generator: No such
 file or directory
 *[   21.578059] systemd[122]:
 /lib/systemd/system-generators/systemd-crontab-generator failed with
 error code 1.
  [   22.225613] fuse init (API version 7.23)


Maybe problem is this:

/usr is not mounted when it tries to run that command. That command is
actually python script. Its shebang line is this:

#!/usr/bin/python

Is it really so necessary to run that
/lib/systemd/system-generators/systemd-crontab-generator when /usr is
not mounted yet?

How about running that command by hand after boot?:

-=*[ROOT ZSH]*=- root at juhtolv | Tue 02 Dec 2014 19:43:37 | 8404 | pts/1.1
/root
# /lib/systemd/system-generators/systemd-crontab-generator
Traceback (most recent call last):
  File "/lib/systemd/system-generators/systemd-crontab-generator",
line 19, in <module>
    TARGER_DIR = sys.argv[1]
    IndexError: list index out of range
    [1]    6032 exit 1
/lib/systemd/system-generators/systemd-crontab-generator


-=*[ROOT ZSH]*=- root at juhtolv | Tue 02 Dec 2014 19:43:59 | 8405 | pts/1.1
/root
# /lib/systemd/system-generators/systemd-crontab-generator
/etc/crontab
Traceback (most recent call last):
  File "/lib/systemd/system-generators/systemd-crontab-generator",
line 32, in <module>
    os.makedirs(TIMERS_DIR)
      File "/usr/lib/python2.7/os.py", line 157, in makedirs
          mkdir(name, mode)
          OSError: [Errno 20] Not a directory:
'/etc/crontab/cron.target.wants'
[1]    6094 exit 1
/lib/systemd/system-generators/systemd-crontab-generator /etc/crontab

Is that command really so stupid, that it only accepts folders and not
files? If so, why /etc/crontab is menationed in FILES-section of man
page of systemd-crontab-generator ?


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

Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages systemd-cron depends on:
ii  init-system-helpers  1.22
ii  python               2.7.8-2
pn  python:any           <none>
ii  systemd-sysv         215-6

systemd-cron recommends no packages.

systemd-cron suggests no packages.

-- Configuration Files:
/etc/crontab changed:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@reboot /usr/bin/screen -wipe > /dev/null 2>&1 ; /usr/bin/screen -U -d -m
01 04	* * *	/root/scripts/emptypartial.sh
01 05	* * *	/root/scripts/emptypartial.sh
01 06	* * *	/root/scripts/emptypartial.sh
01 07	* * *	/root/scripts/emptypartial.sh
01 12	* * *	/root/scripts/emptypartial.sh
01 01	* * 1	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup.sh' | batch
01 02	* * 1	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup2.sh' | batch
01 01	* * 2	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup.sh' | batch
01 02	* * 2	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup2.sh' | batch
01 01	* * 3	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup.sh' | batch
01 02	* * 3	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup2.sh' | batch
01 01	* * 4	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup.sh' | batch
01 02	* * 4	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup2.sh' | batch
01 01	* * 5	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup.sh' | batch
01 02	* * 5	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup2.sh' | batch
01 01	* * 6	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup.sh' | batch
01 02	* * 6	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup2.sh' | batch
01 01	* * 7	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup.sh' | batch
01 02	* * 7	/bin/echo '/usr/bin/time -v /usr/bin/nice -n 20 /usr/local/sbin/juhtolv-backup2.sh' | batch


-- no debconf information

-- 
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
"Quidquid Latine dictum sit altum videtur."



More information about the Pkg-systemd-maintainers mailing list