.xsession-errors filling up

Hi,

After installation of 13.2 ~/.xsession-errors file is going wild. I have red several posts about it but nevertheless, I think this should not happen. We have journal now, tmpfs, i don’t know what and - expensive SSD-s. I really don’t need my disk filling up with constant info that X can not read some UTF8 character or that indexer can not access some irrelevant file.

Found this post http://forums.opensuse.org/showthread.php/477273-home-username-xsession-errors-is-constantly-growing-to-an-enormous-size/page3 but it’s quite old to continue writing in int.

Does anybody have a solution ‘out of a sleeve’?

Thanks upfront, Ivan

Hi
What type of errors (normally it pays to check…)?

I see there is a bug here about knotify and akonadi https://bugs.kde.org/show_bug.cgi?id=234140 and many other if you google ‘suppress .xsession-errors’

Some folks just softlink it to /dev/null by the looks, but what happens if you are getting real errors…

That doesn’t have much to do with it.

When programs explicitly log errors, those may go to the journal.

However, many programs just write unexpected error reports to “stderr” (file descriptor 2). If you run a program from the command line, those will appear in your command prompt session. For graphic programs, “stderr” is redirected so that its output goes to “.xsession-errors” or similar file. Usually people only look at that if they are investigating a problem.

Maybe you should browse through that file, and see if you can identify the program that is producing too much error output. Maybe it was compiled with debug flags.

For me, the file is “.xsession-errors-:0”. It currently is around 74K in size, after being logged in for around 15 hours. I suppose that’s a bit much, but not enough to be a significant problem.

On my system this happens whenever power management puts it to sleep. When it wakes up again there’s a humongous .xsession-error file using 99% of the disk. I think it has something to do with the display being turned off.

The last post in the thread you referenced above,

https://forums.opensuse.org/showthread.php/477273-home-username-xsession-errors-is-constantly-growing-to-an-enormous-size/page3

suggests redirecting such output somewhere else:

Unfortunately, Ferenginar does not say where those two places are.:frowning: They are presumably in one or more X config files.

Right now I have a little cron job scheduled that looks for such a file and erases any it finds.

That probably removes the directory entry for the file, but leaves the file on disk (without a directory entry) still using space and still filling up until you logout from your desktop session.

On 2015-06-22 06:56, nrickert wrote:
>
> jlturriff;2716270 Wrote:
>> Right now I have a little cron job scheduled that looks for such a file
>> and erases any it finds.
>
> That probably removes the directory entry for the file, but leaves the
> file on disk (without a directory entry) still using space and still
> filling up until you logout from your desktop session.

Probably, yes. The file is permanently opened:


cer@Telcontar:~> lsof /home/cer/.xsession-errors-\:0
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
oosplash  10680  cer    1w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0
oosplash  10680  cer    2w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0
soffice.b 10697  cer    1w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0
soffice.b 10697  cer    2w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0
ck-launch 19573  cer    1w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0
ck-launch 19573  cer    2w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0
sh        19700  cer    1w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0
sh        19700  cer    2w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0
xfce4-ses 19711  cer    1w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0
xfce4-ses 19711  cer    2w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0
xfwm4     19720  cer    1w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0
xfwm4     19720  cer    2w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0
xfce4-pan 19724  cer    1w   REG  259,1   650482 134639 /home/cer/.xsession-errors-:0

....


Thus it can not be effectively truncated or rotated.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)