LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-22-2018, 01:34 AM   #1
Natsrat Bayuni
LQ Newbie
 
Registered: May 2018
Posts: 6

Rep: Reputation: Disabled
Cannot find deleted .xsession-errors file


Hi friends, I am not an expert in SUSE/Linux. Hopefully by joining this community I could learn and share stuff with all members.

The problem I am having is that I experienced a full disk (0 % space available) of my mail server. After some researches I found out that a file named ".xsession-errors" has been growing very fast in the last few days (I check the disk space using df -h almost everyday to make sure disk space is sufficient). Just today the file size became 1.4TB! Growing from some hundreds of MB in the last few days. What I did was deleted the file using rm command, then the file was gone .... here is the problem; I checked the disk space helas the disk space still 0%. Tried to check whether the file was moved to Trash folder or tmp folder, but it's not there.

Another problem aroused now I cant do anything as the consequence of the disk full, I cant even restart the server.......but I still can FTP using WinSCP

Any advice would be highly appreciated.
 
Old 05-22-2018, 02:05 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
if a file is opened by any process you cannot really remove it. The directory entry will be removed, but the file will be kept as long as the process uses. Probably you need to reboot or restart your GUI.
 
Old 05-22-2018, 02:32 AM   #3
Natsrat Bayuni
LQ Newbie
 
Registered: May 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Are you saying reboot the server, am I right? Is it safe if I push the power button of the server, as I can't restart nor shutdown the server using shutdown command now. I worry it can't boot again. Right now I am transfering the mail folder (zimbra) to my laptop using WINSCP, which will take some times.
 
Old 05-22-2018, 02:55 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
no, that is not safe at all.
You need to find the window/display manager (lightdm, gdm or kdm or ???) and restart it. Probably that is enough.
 
Old 05-22-2018, 03:12 AM   #5
Natsrat Bayuni
LQ Newbie
 
Registered: May 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hmmm, you mean logout from the current user (which is root), then back login?
 
Old 05-22-2018, 03:13 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
if that was a graphical login, yes.
 
Old 05-22-2018, 03:30 AM   #7
Natsrat Bayuni
LQ Newbie
 
Registered: May 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
The screen doesnt show anything since an hour ago, just blank/black screen. I guess this is part of the problem. Is there a another way to restart the GUI
 
Old 05-22-2018, 04:00 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
yes, as root you need to restart lightdm/kdm/gdm whatever dm you have.
 
Old 05-22-2018, 05:07 AM   #9
Natsrat Bayuni
LQ Newbie
 
Registered: May 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
at the moment I cant think of a solution why the screen suddenly becoming blank/black, which preventing me to do anything straight on the server...the only thing connecting me right now is the WINSCP for file transfer. If only I can kill the process of writing records to .xsession-errors file remotely, would it be a solution? (if so I don't know as well how to do it). I think even if that file has been deleted but as you say the process is still running.
 
Old 05-22-2018, 06:24 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
most probably that is the X server itself. That's why you need to restart your X session (or kill the X server)
 
1 members found this post helpful.
Old 05-22-2018, 11:59 PM   #11
Natsrat Bayuni
LQ Newbie
 
Registered: May 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi Pan64, at last I did manage to get rid of the .xsession-errors deleted file thru PuTTY to access the mail server remotely. Once identified where the file was hiding, I just kill the process. That's it. Next step is to control in a daily basis the disk space size, I guess.....Thanks for your attention and help, Pan64.
 
Old 05-23-2018, 01:17 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
next step is probably to read it, there should be something important in it if it was so big....
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
autostart errors in mate xsession-errors file frankzen Fedora 1 12-27-2013 01:24 PM
[SOLVED] what are files .xsession-errors and .xsession-errors.old can they be deleted? cliffm Linux - Newbie 2 10-20-2012 11:30 AM
[SOLVED] what is ~/.xsession-errors file ? Ribo01 Linux - Newbie 8 03-17-2011 12:15 PM
.xsession-errors file runs wild. Xamiga Ubuntu 1 01-06-2010 12:48 AM
.xsession-errors file exploding ??? tjuii Linux - General 3 12-14-2004 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration