bash error on entering terminal.

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

bash error on entering terminal.

Postby headkase on 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

Linux Mint is funded by ads and donations.
 

Re: bash error on entering terminal.

Postby headkase on 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?
headkase
Level 1
Level 1
 
Posts: 23
Joined: Tue Apr 05, 2011 5:49 am

Re: bash error on entering terminal.

Postby WeNG on 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?
WeNG
Level 1
Level 1
 
Posts: 9
Joined: Wed Feb 23, 2011 2:50 am

Re: bash error on entering terminal.

Postby GeneC on 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.
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

Qiana (Cinnamon)
Sparky XFCE (Debian Testing)
EvolveOS (Budgie)
User avatar
GeneC
Level 7
Level 7
 
Posts: 1560
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: bash error on entering terminal.

Postby ukbrian on 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
ukbrian
Level 4
Level 4
 
Posts: 276
Joined: Thu Jul 29, 2010 6:03 am
Location: Cheltenham, UK

Re: bash error on entering terminal.

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

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

Re: bash error on entering terminal.

Postby aporter on 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
aporter
Level 1
Level 1
 
Posts: 1
Joined: Thu Aug 04, 2011 7:08 pm

Re: bash error on entering terminal.

Postby damentz on 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.
damentz
Level 1
Level 1
 
Posts: 3
Joined: Fri Nov 05, 2010 1:40 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 4 guests