You are not logged in.

#1 2017-07-05 08:57:30

Pillgar
Member
Registered: 2017-07-05
Posts: 41

"Cgroup: Remount Is Not Allowed" message on shutdown

Hello everyone.

I'm trying to figure out what's causing this message "cgroup: remount is not allowed" on shutdown.  It just showed up a few days ago.  After doing some searches, there was a bug with systemd 228 and the "systemd.unified_cgroup_hierarchy=1" option giving this error.  There was also some mention of file privilege issue's in /sys/fs/cgroup/systemd/?, though I hadn't changed anything regarding that.  Everything is still default.   I'm using v233-7 at the moment with kernel 4.11.7-1.

In case this helps:
Output of ls -l /sys/fs/

total 0
dr-xr-xr-x     2 root root       0 Jul  5 07:58 bpf
drwxr-xr-x 13 root root  340 Jul  5 07:57 cgroup
drwxr-xr-x   6 root root       0 Jul  5 07:58 ext4
drwxr-xr-x   3 root root       0 Jul  5 07:57 fuse
drwxr-xr-x   2 root root       0 Jul  5 07:57 pstore

Is this just a cosmetic error I shouldn't worry about?  The PC doesn't hang at all during shutdown and nothing seemed to stand out in journalctl, no errors in systemctl --failed either.

Offline

#2 2017-07-05 09:08:28

Pillgar
Member
Registered: 2017-07-05
Posts: 41

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

It seems to be a bug introduced in systemd v233.  I just downgraded to v232 and the message is gone.  I'm still curious if it is related to systemd.unified_cgroup_hierarchy=1.  Will post back if I find anything.

Offline

#3 2017-07-06 07:09:22

TheRinger
Member
Registered: 2015-07-02
Posts: 13

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

I'm getting the same message after upgrading systemd. I agree, it appears to be cosmetic, though I can't confirm this.

Offline

#4 2017-07-06 07:26:06

SupKurtJ
Member
Registered: 2015-07-18
Posts: 46

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

Me too, I have the same message and I don't know why.

Last edited by SupKurtJ (2017-07-06 07:26:51)

Offline

#5 2017-07-07 14:08:42

xiximitho
Member
Registered: 2017-07-07
Posts: 1

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

Me too, " Cgroup : Remount is not allowed ", is this a problem with the kernel?

Offline

#6 2017-07-07 14:47:50

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

https://wiki.archlinux.org/index.php/Co … mpty_posts

Do your homework, try to find what causes the problem and submit bug reports when you reach a conclusion. Me too posts are not magically going to help solve the problem.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#7 2017-07-08 00:12:41

Pillgar
Member
Registered: 2017-07-05
Posts: 41

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

I don't think it's related to the kernel as downgrading it did not remove the error.

Offline

#8 2017-07-08 02:49:38

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

Pillgar wrote:

I don't think it's related to the kernel as downgrading it did not remove the error.

Then the next place to look might be systemd. That said, if nothing is broken you might save some time by ignoring that message.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2017-07-08 06:04:47

Pillgar
Member
Registered: 2017-07-05
Posts: 41

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

R00KIE wrote:
Pillgar wrote:

I don't think it's related to the kernel as downgrading it did not remove the error.

Then the next place to look might be systemd. That said, if nothing is broken you might save some time by ignoring that message.

Is this your full time job or?

Offline

#10 2017-07-09 14:02:35

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 458

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

R00KIE wrote:

https://wiki.archlinux.org/index.php/Co … mpty_posts

Do your homework, try to find what causes the problem and submit bug reports when you reach a conclusion. Me too posts are not magically going to help solve the problem.


https://bugs.archlinux.org/task/54746

There is nice vote-link which should help developers and maintainers guiding attention, without disturbing and furthermore give users the feeling that they are not alone. Likely we will put it further to upstream, hopefully it is not real problem or a message which should be stored in the system-log instead of makeing users worried/paniced. Nobody likes such messages, but we need them wink

Last edited by hoschi (2017-07-09 14:12:15)

Offline

#11 2017-07-13 14:12:41

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 458

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

Update:
Systemd people think it's caused by Archlinux tongue
Ping ... Pong ... Ping ... Pong

Offline

#12 2017-07-13 14:15:21

eda2z
Member
From: Woodstock, IL
Registered: 2015-04-21
Posts: 66

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

I'm not sure if this helps but 2 of my systems are running the latest 64 bit Arch.  A desktop (AMD Phenom, NVIDIA GeForce, wired network and SATA drives) and a laptop (Intel Core I7, Intel Ivybridge Mobile, wireless and an SSD drive).  The laptop does show the message on restart/power off but not the desktop.  There are only a few packages that differ between the two.

Offline

#13 2017-07-13 16:04:20

loqs
Member
Registered: 2014-03-06
Posts: 17,320

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

@eda2x can you run `systemctl halt` on the desktop to check the message is not just being displayed at the moment the system would power off.
As noted the message is displayed after all none virtual filesystems have been unmounted and systemd (process one) has terminated so it is difficult to see how this is anything but cosmetic.
If someone wants to pursue it they would probably need to switch to using the systemd hooks so systemd is the init system in early boot then bisect between 322 and 323.
That bisection process in itself I would consider more likely to induce breakage than the original issue.
After finding the commit that causes the behavior change then discuss the issue between systemd,  linux kernel and arch developers.
Edit:
https://bugs.archlinux.org/task/54746#comment159336 so the bisect could be avoid if using systemd.legacy_systemd_cgroup_controller
demonstrates the issue is caused by the use of hybrid or unified cgroup hierarchy.  So the message from the kernel is produced when a cgroup v2 virtual filesystem is remounted ro?
Edit2:

systemctl mask mkinitcpio-generate-shutdown-ramfs.service

Disables the shutdown service that causes the remount so no message.  See https://bbs.archlinux.org/viewtopic.php?pid=1372562 for what the service does.

Last edited by loqs (2017-07-14 21:44:55)

Offline

#14 2017-07-15 13:40:42

eda2z
Member
From: Woodstock, IL
Registered: 2015-04-21
Posts: 66

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

loqs - executing 'systemctl halt' did cause the message to be displayed on the desktop.

Offline

#15 2017-07-17 06:04:21

ben781
Member
Registered: 2016-12-11
Posts: 18

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

Offline

#16 2017-07-18 17:41:03

loqs
Member
Registered: 2014-03-06
Posts: 17,320

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

As the upstream bug report has been closed,  the cosmetic message will no longer appear with linux 4.13 and there has been at least two workarounds provided,  can this thread be marked as solved?

Offline

#17 2017-09-26 17:40:08

六等星の夜
Member
Registered: 2017-09-26
Posts: 1

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

I have the same problem, how to solve it

Offline

#18 2017-09-26 17:50:24

loqs
Member
Registered: 2014-03-06
Posts: 17,320

Re: "Cgroup: Remount Is Not Allowed" message on shutdown

六等星の夜 wrote:

I have the same problem, how to solve it

What have you tried so far?

Offline

Board footer

Powered by FluxBB