cgroup lite postinst fails (init script doesn't start)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cgroup-lite (Ubuntu) |
Fix Released
|
High
|
Serge Hallyn | ||
Precise |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
High
|
Serge Hallyn |
Bug Description
=======
SRU Justification:
1. Impact: Customized installations which mount cgroups in nonstandard
locations may cause cgroup-lite to fail to start correctly
2. Development fix: have cgroup-lite do nothing if cgroups are found mounted
anywhere at all
3. Stable fix: same as development fix.
4. Test case:
Create an upstart job:
{{{
start on starting cgroup-lite
pre-start script
mkdir -p /mnt2
mount -t cgroup -o freezer freezer /mnt2
end script
}}}
reboot and check whether cgroup-lite is working. Manually try
{{{
stop cgroup-lite; start cgroup-lite
}}}
and check for errors
5. Regression potential: If a system has a mount with 'cgroup' in the
name which is not a cgroup mount, cgroup-lite will no longer mount cgroups.
=======
Similar symptom to https:/
$ sudo apt-get install cgroup-lite
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
cgroup-lite
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,490 B of archives.
After this operation, 46.1 kB of additional disk space will be used.
Selecting previously unselected package cgroup-lite.
(Reading database ... 241656 files and directories currently installed.)
Unpacking cgroup-lite (from .../cgroup-
Processing triggers for ureadahead ...
Setting up cgroup-lite (1.1) ...
start: Job failed to start
invoke-rc.d: initscript cgroup-lite, action "start" failed.
dpkg: error processing cgroup-lite (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
cgroup-lite
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo start cgroup-lite
start: Job failed to start
$ ls -ld /usr/bin/
-rwxr-xr-x 1 root root 850 Feb 9 00:56 /usr/bin/
$ ls -ld /sys/fs/cgroup
drwxr-xr-x 2 root root 0 Apr 19 13:37 /sys/fs/cgroup
$ sudo /usr/bin/
mount: cgroup already mounted or /sys/fs/cgroup/cpu busy
mount: according to mtab, cgroup is mounted on /sys/fs/cgroup
$ echo $?
32
$ mount | grep cgroup
none on /dev/cgroup/cpu type cgroup (rw,cpu,cpuacct)
none on /dev/cgroup/devices type cgroup (rw,devices)
cgroup on /sys/fs/cgroup type tmpfs (rw,uid=
$ sudo /usr/bin/
umount: cpu: not mounted
umount: cpuacct: not found
umount: memory: not found
umount: devices: not found
umount: freezer: not found
umount: net_cls: not found
umount: perf_event: not found
$ mount | grep cgroup
none on /dev/cgroup/cpu type cgroup (rw,cpu,cpuacct)
none on /dev/cgroup/devices type cgroup (rw,devices)
$ sudo /usr/bin/
mount: cgroup already mounted or /sys/fs/cgroup/cpu busy
mount: according to mtab, cgroup is mounted on /sys/fs/cgroup
$ echo $?
32
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Hi Thomas,
Does this mean something else on your system had already mounted cgroups?