Devuan bug report logs - #428
cgroupfs-mount: Cannot remove cgroupfs-mount

Package: cgroupfs-mount; Reported by: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>; Keywords: debian; Forwarded to https://bugs.debian.org/950986; Maintainer for cgroupfs-mount is (unknown).
Set bug forwarded-to-address to 'https://bugs.debian.org/950986'. Request was from Mark Hindley <mark@hindley.org.uk> to control@bugs.devuan.org. Full text available.
Added tag(s) debian. Request was from Mark Hindley <mark@hindley.org.uk> to 428-submit@bugs.devuan.org. Full text available.

Message received at 428@bugs.devuan.org:


Received: (at 428) by bugs.devuan.org; 25 Apr 2020 09:10:03 +0000
Return-Path: <mark@hindley.org.uk>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Sat, 25 Apr 2020 09:10:02 +0000 (UTC)
Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id B4EEBF609E5
	for <428@bugs.devuan.org>; Sat, 25 Apr 2020 11:00:23 +0200 (CEST)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1jSGfY-0001eN-Ns; Sat, 25 Apr 2020 10:00:16 +0100
Received: (nullmailer pid 22371 invoked by uid 1000);
	Sat, 25 Apr 2020 09:00:16 -0000
Date: Sat, 25 Apr 2020 10:00:16 +0100
From: Mark Hindley <mark@hindley.org.uk>
To: 428@bugs.devuan.org, Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
Subject: Re: cgroupfs-mount: Cannot remove cgroupfs-mount
Message-ID: <20200425090016.GI22592@hindley.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20200425.045602.1002442102820500356.ryutaroh@ict.e.titech.ac.jp>
X-Debbugs-No-Ack: No Thanks
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Spam-Status: No, score=0.0 required=5.0 tests=FAKE_REPLY_C,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Control: tags -1 debian

Ryutaroh,

On Sat, 25 Apr 2020 04:56:02 +0900 (JST) Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp> wrote:
> Package: cgroupfs-mount
> Version: 1.4
> Severity: normal
> 
> Dear Maintainer,
> 
> After installation of cgroupfs-mount, tring to remove it gives
> 
> Removing cgroupfs-mount (1.4) ...
> Unmounting cgroupfs hierarchyumount: /sys/fs/cgroup/elogind: target is busy.
> invoke-rc.d: initscript cgroupfs-mount, action "stop" failed.
> dpkg: error processing package cgroupfs-mount (--remove):
>  installed cgroupfs-mount package pre-removal script subprocess returned error exit status 32
> Errors were encountered while processing:
>  cgroupfs-mount
> E: Sub-process /usr/bin/dpkg returned an error code (1)

Thanks. Yes I bumped into this a couple of days ago.

The problem appears to be that /usr/bin/cgroupfs-umount tries to unmount all the
cgroups, even if it didn't originally create them. elogind creates its own cgroupfs and is
still using it.

As cgroupfs-mount is not a forked package and Devuan uses Debian's package
directly it needs to be fixed in Debian. There is already a Debian bug about it
at https://bugs.debian.org/950986.

I do have a workaround: cgroupfs-mount removes cleanly in single user mode (when
elogind is not running), or you can stop elogind first and then remove
cgroupfs-mount. However, this will also lose your logind sessions which may or
may not matter to you. Obviously new ones are created once elogind is restarted
and you log back in.

Mark

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#428; Package cgroupfs-mount. Full text available.

Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 24 Apr 2020 20:00:02 +0000
Return-Path: <matsumoto.r.aa@m.titech.ac.jp>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Fri, 24 Apr 2020 20:00:02 +0000 (UTC)
Received: from mail002.nap.gsic.titech.ac.jp (mail002.nap.gsic.titech.ac.jp [131.112.13.102])
	by vm6.ganeti.dyne.org (Postfix) with SMTP id E2375F60902
	for <submit@bugs.devuan.org>; Fri, 24 Apr 2020 21:56:09 +0200 (CEST)
Received: from 172.22.40.202
	by mail002.nap.gsic.titech.ac.jp with Mail2000 ESMTP Server V7.00(2632:0:AUTH_RELAY)
	(envelope-from <matsumoto.r.aa@m.titech.ac.jp>); Sat, 25 Apr 2020 04:56:08 +0900 (JST)
Received: from mail002.nap.gsic.titech.ac.jp (mail002.nap.gsic.titech.ac.jp [131.112.13.102])
	by drweb05.nap.gsic.titech.ac.jp (Postfix) with SMTP id 9DC67D9B
	for <submit@bugs.devuan.org>; Sat, 25 Apr 2020 04:56:08 +0900 (JST)
Received: from 126.34.120.12
	by mail002.nap.gsic.titech.ac.jp with Mail2000 ESMTPA Server V7.00(2631:0:AUTH_LOGIN)
	(envelope-from <matsumoto.r.aa@m.titech.ac.jp>); Sat, 25 Apr 2020 04:56:05 +0900 (JST)
Date: Sat, 25 Apr 2020 04:56:02 +0900 (JST)
Message-Id: <20200425.045602.1002442102820500356.ryutaroh@ict.e.titech.ac.jp>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: cgroupfs-mount: Cannot remove cgroupfs-mount
From: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
X-Mailer: Mew version 6.8 on Emacs 26.3
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Package: cgroupfs-mount
Version: 1.4
Severity: normal

Dear Maintainer,

After installation of cgroupfs-mount, tring to remove it gives

Removing cgroupfs-mount (1.4) ...
Unmounting cgroupfs hierarchyumount: /sys/fs/cgroup/elogind: target is busy.
invoke-rc.d: initscript cgroupfs-mount, action "stop" failed.
dpkg: error processing package cgroupfs-mount (--remove):
 installed cgroupfs-mount package pre-removal script subprocess returned error exit status 32
Errors were encountered while processing:
 cgroupfs-mount
E: Sub-process /usr/bin/dpkg returned an error code (1)

Best regards, Ryutaroh Matsumoto


-- System Information:
Distributor ID:	Debian
Description:	Devuan GNU/Linux 3 (beowulf)
Release:	3
Codename:	beowulf
Architecture: x86_64

Kernel: Linux 4.19.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE=en_US:en (charmap=locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages cgroupfs-mount depends on:
ii  lsb-base  10.2019051400

cgroupfs-mount recommends no packages.

cgroupfs-mount suggests no packages.

-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US:en",
	LC_ALL = (unset),
	LC_CTYPE = "C.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Acknowledgement sent to Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>:
New bug report received and forwarded. Copy sent to devuan-dev@lists.dyne.org. Full text available.
Report forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#428; Package cgroupfs-mount. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat, 4 Jul 2020 02:39:02 UTC