Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36

Thread: Huge .xsession-errors

  1. #21
    Join Date
    Jun 2012
    Beans
    1

    Re: Huge .xsession-errors

    this works for me

    rm ~/.xsession-errors
    touch ~/.xsession-errors
    sudo chattr +i ~/.xsession-errors


    http://ubuntuforums.org/showthread.php?t=1946716

  2. #22
    Join Date
    Sep 2012
    Beans
    6

    Re: Huge .xsession-errors

    Do not rm ~/.xsession-errors!
    The processes that have it open will hang on to it, and keep writing, and eating up your disk space.
    Linking to /dev/null seems to help for a while, but then something seems to recreate the damn file!
    I tried many different ways, and here is what worked:


    sudo echo "*/1 * * * * $USER echo>$HOME/.xsession-errors" > /etc/cron.d/truncate-stupid-xerr

    The stupid thing was eating like a GIGABYTE per minute. Now it is under control.

  3. #23
    Join Date
    Mar 2009
    Location
    The Freight Yard
    Beans
    177
    Distro
    Xubuntu 14.10 Utopic Unicorn

    Re: Huge .xsession-errors

    I'm Using Xubuntu 12.04/ Xfce 4.8 and am wondering what did I do wrong? I tried what you said here:
    Code:
    # initialize variables for use by all session scripts
    
    OPTIONFILE=/etc/X11/Xsession.options
    
    SYSRESOURCES=/etc/X11/Xresources
    USRRESOURCES=$HOME/.Xresources
    
    SYSSESSIONDIR=/etc/X11/Xsession.d
    USERXSESSION=$HOME/.xsession
    USERXSESSIONRC=$HOME/.xsessionrc
    ALTUSERXSESSION=$HOME/.Xsession
    ERRFILE=/dev/null
    I then deleted the .xsession-errors file by right clicking & clicking delete. I then rebooted. After it booted, I opened Thunar & a new one was generated.

    Did I type it wrong?


    Whoops, didn't see the post just above me when I replied. Still would like to know why it doesn't seem to work for me though.
    Last edited by SantaFe; September 6th, 2012 at 03:06 AM.
    I'm a man, I can re-install, if I have to, I guess!

  4. #24
    Join Date
    Mar 2009
    Location
    The Freight Yard
    Beans
    177
    Distro
    Xubuntu 14.10 Utopic Unicorn

    Re: Huge .xsession-errors

    Quote Originally Posted by weaselman View Post
    Do not rm ~/.xsession-errors!
    The processes that have it open will hang on to it, and keep writing, and eating up your disk space.
    Linking to /dev/null seems to help for a while, but then something seems to recreate the damn file!
    I tried many different ways, and here is what worked:


    sudo echo "*/1 * * * * $USER echo>$HOME/.xsession-errors" > /etc/cron.d/truncate-stupid-xerr

    The stupid thing was eating like a GIGABYTE per minute. Now it is under control.
    Tried that, assumed you meant for me to replace USER with my user name. Got "bash: /etc/cron.d/truncate-stupid-xerr: Permission denied" back in Thunar. Even tried it unchanged, got the same error message.
    Last edited by SantaFe; September 6th, 2012 at 03:07 AM.
    I'm a man, I can re-install, if I have to, I guess!

  5. #25
    Join Date
    Sep 2012
    Beans
    6

    Re: Huge .xsession-errors

    Quote Originally Posted by SantaFe View Post
    Tried that, assumed you meant for me to replace USER with my user name. Got "bash: /etc/cron.d/truncate-stupid-xerr: Permission denied" back in Thunar. Even tried it unchanged, got the same error message.
    Hm. You didn't forget the "sudo" in the beginning of the command, did you?
    $USER is a shell variable, that is automatically set to your username. You don't need to replace it with anything, just make sure you don't miss the dollar sign. Same goes for $HOME (that would be your home directory).

  6. #26
    Join Date
    Mar 2009
    Location
    The Freight Yard
    Beans
    177
    Distro
    Xubuntu 14.10 Utopic Unicorn

    Re: Huge .xsession-errors

    Nope, I highlighted the whole line and opened the Xfce terminal & pasted it. Then when I hit enter got the above text.
    I'm a man, I can re-install, if I have to, I guess!

  7. #27
    Join Date
    Mar 2012
    Beans
    3

    Talking Re: Huge .xsession-errors

    this was very good info .. i found this hidden file in my home directory and was shocked at the size .. i delegated 100GB to my linux partition and somehow 82GB was taken by ~/. and the xsession-errors was 80GB of that .. whew ! what a relief .. there was no way i was occupying 99% of the drive as there are NO media files (photos, videos, music, etc) at all on the linux partition

  8. #28
    Join Date
    Jul 2007
    Beans
    4

    Re: Huge .xsession-errors

    .
    Last edited by ginsujim; October 10th, 2012 at 04:10 PM.

  9. #29
    Join Date
    Oct 2008
    Location
    Ottawa, Canada
    Beans
    804
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Huge .xsession-errors

    Quote Originally Posted by weaselman View Post
    Do not rm ~/.xsession-errors!
    The processes that have it open will hang on to it, and keep writing, and eating up your disk space.
    You CAN rm the file if you replace it with an immutable block of granite which is what the sudo chattr +i command does. Nothing can write to an immutable file.
    husband@wife$ make sandwich
    Permission denied
    husband@wife$ sudo make sandwich

  10. #30
    Join Date
    Sep 2010
    Location
    Las Vegas
    Beans
    54
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Huge .xsession-errors

    will the chattr command work if I already rm'd the file and created a new blank one? I also redirected the error output to /dev/null yet I'm still getting a full hard drive, and lsof returns this:

    Code:
    bob@Newton:~$ lsof |grep -i deleted
    gnome-ses 2686           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    gnome-set 2736           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    gsd-print 2753           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    metacity  2755           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    gnome-pan 2771           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    nm-applet 2779           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    bluetooth 2780           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    polkit-gn 2781           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    nautilus  2782           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    vino-serv 2786           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    gnome-fal 2793           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    dropbox   2809           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    dropbox   2809           bob    3u      REG               8,49           0  270905 /tmp/tmpfP0B-G (deleted)
    gdu-notif 3028           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    telepathy 3031           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    gnome-scr 3039           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    zeitgeist 3040           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    update-no 3098           bob    2w      REG               8,49 19870789632 1841695 /home/bob/.xsession-errors (deleted)
    Even when the hard drive is full the .xsession-errors file has no size...so it seems to be creating this file irregardless of the current empty .xsessions-file. This problem is really annoying because it stops all server processes that have to write to a log file (apache, mumble, VNC...etc etc).

Page 3 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •