package cgroup-bin 0.37.1-1ubuntu2 failed to install/upgrade: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück

Bug #803604 reported by Uwe Merkle
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libcgroup (Ubuntu)
Expired
High
Unassigned

Bug Description

Ubuntu release is Mythbuntu 11.04 with a self compiled 2.6.39 kernel

Tried to install package with sudo apt-get install cgroup-bin
It says:
start: Job failed to start
invoke-rc.d: initscript cgconfig, action "start" failed.

ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: cgroup-bin 0.37.1-1ubuntu2
ProcVersionSignature: Ubuntu 2.6.39-0.5~20110427-generic 2.6.39-rc5
Uname: Linux 2.6.39-rc5-some-string-here i686
AptOrdering: cgroup-bin: Configure
Architecture: i386
Date: Tue Jun 28 18:40:54 2011
DpkgTerminalLog:
 cgroup-bin (0.37.1-1ubuntu2) wird eingerichtet ...
 start: Job failed to start
 invoke-rc.d: initscript cgconfig, action "start" failed.
 dpkg: Fehler beim Bearbeiten von cgroup-bin (--configure):
  Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
ErrorMessage: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
InstallationMedia: Mythbuntu 11.04 "Natty Narwhal" - Release i386 (20110426)
SourcePackage: libcgroup
Title: package cgroup-bin 0.37.1-1ubuntu2 failed to install/upgrade: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Uwe Merkle (umerkle) wrote :
Changed in libcgroup (Ubuntu):
status: New → Confirmed
Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

it seems to fail on that:

sudo /usr/sbin/cgconfigparser -l /etc/cgconfig.conf
Loading configuration file /etc/cgconfig.conf failed
Cgroup mounting failed

etc/cgconfig.conf contains
# lots of comments
#
mount {
        cpu = /sys/fs//cgroup/cpu;
        cpuacct = /sys/fs/cgroup/cpuacct;
        devices = /sys/fs/cgroup/devices;
        memory = /sys/fs/cgroup/memory;
}

yes with the double //, removing it don't fix the problem

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

the content of cgroup-bin.postinst
#!/bin/sh
set -e
# Automatically added by dh_installinit
if [ -e "/etc/init/cgconfig.conf" ]; then
        invoke-rc.d cgconfig start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f cgconfig remove >/dev/null || exit $?
# End automatically added section
# Automatically added by dh_installinit
if [ -e "/etc/init/cgred.conf" ]; then
        invoke-rc.d cgred start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f cgred remove >/dev/null || exit $?
# End automatically added section
# Automatically added by dh_installinit
if [ -e "/etc/init/libvirt-cgred-wait.conf" ]; then
        invoke-rc.d libvirt-cgred-wait start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f libvirt-cgred-wait remove >/dev/null || exit $?
# End automatically added section

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for submitting this bug report.

Can you reproduce this with the stock natty kernel?

Changed in libcgroup (Ubuntu):
importance: Undecided → High
status: Confirmed → Incomplete
Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

Hi Serge,

yes I can, I though It could be caused by my custom kernel but it didn't.

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

Hmm actually I don't tested on the stock kernel, when I tested. I'm using an hosted server with a custom kernel provided by the hosting company, I'll try to test with a stock kernel and I'll come back to you (not sure when as I'm going to vacation soon).

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 803604] Re:package cgroup-bin 0.37.1-1ubuntu2 failed to install/upgrade: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück

Thanks for that. Unfortunately I can't reproduce it on natty myself.

You can also look through /boot/config* for CGROUP entries, which might
show the problem. I get:

$ grep CGROUP /boot/config-2.6.38-10-virtual
CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
CONFIG_CGROUP_NS=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_MEM_RES_CTLR=y
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED=y
CONFIG_CGROUP_SCHED=y
CONFIG_BLK_CGROUP=y
# CONFIG_DEBUG_BLK_CGROUP is not set
CONFIG_NET_CLS_CGROUP=y

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libcgroup (Ubuntu) because there has been no activity for 60 days.]

Changed in libcgroup (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.