bash error on entering terminal.

Archived topics about LMDE 1
Forum rules
headkase
Level 1
Level 1
Posts: 23
Joined: Tue Apr 05, 2011 5:49 am

bash error on entering terminal.

Postby headkase » Mon Apr 11, 2011 12:16 pm

Hi, today I applied the usual updates, some X updates and a new Liquorix kernel being the ones that stuck out.

Now, whenever I open a terminal I get the following message:

bash: /dev/cgroup/cpu/user/3282/tasks: No such file or directory
bash: /dev/cgroup/cpu/user/3282/notify_on_release: No such file or directory

Each time I open a terminal the number (3282) is different. It is a non-fatal error, I can continue to use the terminal without issues.

However, anyone know of a fix I can apply to get rid of these messages?

Thank you in advance,
Bill.

headkase
Level 1
Level 1
Posts: 23
Joined: Tue Apr 05, 2011 5:49 am

Re: bash error on entering terminal.

Postby headkase » Mon Apr 11, 2011 12:29 pm

Apparently it is to do with the "200 lines" patch to the kernel which improves latency.

The liquorix kernel update is likely the cause of this situation.

Any advice?

WeNG
Level 1
Level 1
Posts: 9
Joined: Wed Feb 23, 2011 2:50 am

Re: bash error on entering terminal.

Postby WeNG » Wed Apr 13, 2011 8:47 am

i got same problem here, after i update my kernel to 2.6.38-2.dmz.2-liquorix-686.
This error appears when i started shell / terminal

Code: Select all

bash: /dev/cgroup/cpu/user/17599/tasks: No such file or directory
bash: /dev/cgroup/cpu/user/17599/notify_on_release: No such file or directory

The number was automatically generated. Anyone know how to remove this error message?

User avatar
GeneC
Level 7
Level 7
Posts: 1599
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: bash error on entering terminal.

Postby GeneC » Wed Apr 13, 2011 10:23 am

Same here!
(newest liquorix kernel)
This error appears when i started shell / terminal

Code: Select all

bash: /dev/cgroup/cpu/user/17599/tasks: No such file or directory
bash: /dev/cgroup/cpu/user/17599/notify_on_release: No such file or directory



NOTE:
"headcase" and I also have a similar problem in that "Mark all Upgrades" is missing now in Synaptic.
These issues must be related.

User avatar
ukbrian
Level 4
Level 4
Posts: 274
Joined: Thu Jul 29, 2010 6:03 am
Location: Cheltenham, UK

Re: bash error on entering terminal.

Postby ukbrian » Wed Apr 13, 2011 11:54 am

"headcase" and I also have a similar problem in that "Mark all Upgrades" is missing now in Synaptic.
These issues must be related.
If you select the first, scroll down and shift+select the last , then right click you can mark all of them.

User avatar
dagon
Level 7
Level 7
Posts: 1670
Joined: Mon Dec 06, 2010 4:33 am
Location: Kungälv, Sweden
Contact:

Re: bash error on entering terminal.

Postby dagon » Thu Apr 14, 2011 1:10 am


aporter
Level 1
Level 1
Posts: 1
Joined: Thu Aug 04, 2011 7:08 pm

Re: bash error on entering terminal.

Postby aporter » Thu Aug 04, 2011 7:12 pm

The problem is with the so-called "200-line patch" to the kernel, which enables process groups called "cgroups". The Liquorix kernel includes this patch, and it also includes these lines in your /etc/bash.bashrc:

Code: Select all

if [ "$PS1" ] ; then 
   mkdir -p -m 0700 /dev/cgroup/cpu/user/$$ > /dev/null 2>&1
   echo $$ > /dev/cgroup/cpu/user/$$/tasks
   echo "1" > /dev/cgroup/cpu/user/$$/notify_on_release
fi


This is not really appropriate for the shared /etc/bash.bashrc file, which is shared by all users, because only root has access to write to /dev/cgroup.

Just comment those lines out, and you won't see the cgroup error.

Alan Porter

damentz
Level 1
Level 1
Posts: 3
Joined: Fri Nov 05, 2010 1:40 am

Re: bash error on entering terminal.

Postby damentz » Fri Aug 05, 2011 2:04 am

Actually, the Liquorix kernel cannot use cgroups because it does not use the mainline process scheduler, CFS.

However, I need to make a decision soon to temporarily use CFS in the next kernel package because 2.6.39.4 came out recently and Greg Kroah marked this branch as end-of-life. I'll see what Con does over the next week and move forward if he does not port BFS to 3.0.


Return to “Archive”

Who is online

Users browsing this forum: No registered users and 0 guests