LinHES Forums http://forum.linhes.org/ |
|
why is my .xsession-errors 40 megs? http://forum.linhes.org/viewtopic.php?f=6&t=18846 |
Page 1 of 1 |
Author: | graysky [ Thu Aug 21, 2008 2:30 pm ] |
Post subject: | why is my .xsession-errors 40 megs? |
My ~/.xsession-errors log is huge (over 40 megs) and contains entries like this: Code: Xsession: X session started for mythtv at Wed Aug 20 16:28:42 EDT 2008
/home/mythtv/.fluxbox/startup: line 12: /usr/bin/bsetroot: No such file or directory Failed to read: session.styleOverlay Setting default value Failed to read: session.modKey Setting default value Failed to read: session.screen0.reversewheeling Setting default value Failed to read: session.screen0.defaultDeco Setting default value Failed to read: session.screen0.userFollowModel Setting default value Failed to read: session.screen0.allowRemoteActions Setting default value Failed to read: session.screen0.tabs.maxOver Setting default value Failed to read: session.screen0.tabs.intitlebar Setting default value BScreen::BScreen: managing screen 0 using visual 0x21, depth 24 Failed to read: session.styleOverlay Setting default value Failed to read: session.modKey Setting default value Failed to read: session.screen0.reversewheeling Setting default value Failed to read: session.screen0.defaultDeco Setting default value Failed to read: session.screen0.userFollowModel Setting default value Failed to read: session.screen0.allowRemoteActions Setting default value Failed to read: session.screen0.tabs.maxOver Setting default value Failed to read: session.screen0.tabs.intitlebar Setting default value Failed to read: session.styleOverlay Setting default value Failed to read: session.modKey Setting default value Failed to read: session.screen0.reversewheeling Setting default value Failed to read: session.screen0.defaultDeco Setting default value Failed to read: session.screen0.userFollowModel Setting default value Failed to read: session.screen0.allowRemoteActions Are these normal? Can someone else have a look at your .xsession-errors file and see: 1) How large it is ($ ls -lha /home/mythtv | grep .xsession 2) Are the contents of your file similar to mine? Thanks! |
Author: | manicmike [ Thu Aug 21, 2008 4:00 pm ] |
Post subject: | Re: why is my .xsession-errors 40 megs? |
Hi Graysky, The problem is that mythfrontend logs everything there if it can't write to /var/log/mythtv/mythfrontend. Now, when you installed KM, it probably started mythfrontend as root, and created the file as root, thus preventing any subsequent logging to that file. Have a look. If it's owned by root, change it to mythtv and re-start the frontend. The correct log file is able to be rotated easily using logrotate. Alternatively, you could write a cron job to check the size each day and truncate it. Regards Mike P.S. 40MB isn't huge: I've seen this file at 2.5GB! |
Author: | graysky [ Thu Aug 21, 2008 4:50 pm ] |
Post subject: | |
Thanks for the reply, Mike. I checked, and the log files have the correct permissions: Code: -rw-r--r-- 1 mythtv mythtv 188K Jul 14 19:06 KnoppMyth-run.log
-rw-r--r-- 1 mythtv mythtv 409K Aug 21 18:50 mythbackend.log -rw-r--r-- 1 mythtv mythtv 935K Aug 9 06:26 mythbackend.log.1 -rw-r--r-- 1 mythtv mythtv 15K Aug 16 04:54 mythfrontend.log -rw-r--r-- 1 mythtv mythtv 60K Aug 16 04:54 mythwelcome.log |
Author: | tjc [ Thu Aug 21, 2008 7:23 pm ] |
Post subject: | |
You can always truncate it and restart the FE: Code: > /home/mythtv/.xsession-errors
pkill xinit Mine is only about 70k at the moment, but I've been rebooting about once a week to keep the Nvidia drivers memory leak from sending my system off to swap thrashing land. |
Author: | jmckeown2 [ Thu Aug 21, 2008 8:06 pm ] |
Post subject: | Re: why is my .xsession-errors 40 megs? |
manicmike wrote: The problem is that mythfrontend logs everything there if it can't write to /var/log/mythtv/mythfrontend. Now, when you installed KM, it probably started mythfrontend as root, and created the file as root, thus preventing any subsequent logging to that file. Have a look. If it's owned by root, change it to mythtv and re-start the frontend.
Thanks! mine was 26MB, and I would have never thought to look. |
Author: | cahlfors [ Fri Oct 10, 2008 9:40 am ] |
Post subject: | |
Ah-ha! Hm. My permissions are right, but mythfrontend still logs to .xsession-errors on all my FE:s. How do I change that? Thanks /Chris |
Author: | manicmike [ Sun Oct 12, 2008 9:03 pm ] |
Post subject: | |
cahlfors wrote: Ah-ha!
Hm. My permissions are right, but mythfrontend still logs to .xsession-errors on all my FE:s. How do I change that? Thanks /Chris How about this: 1. su -c "mv .xsession-errors /var/log/mythtv/" <enter root passwd when prompted> 2. ln -s /var/log/mythtv/.xsession-errors .xsession-errors This will move it from the root file system to the /myth file system. If it gets big, it won't kill the system. This is just a quick fix to stop your root fs from filling. Mike |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |