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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2018, 08:06 PM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Rep: Reputation: 176Reputation: 176
"Upstart" overloads my .cache and stops the computer from saving and functioning properly


I am running Xubuntu 16.04LTS on a 64 bit computer. I have a hard drive of 70GB that is regularly just about half full. A couple of months ago, I got warnings that I couldn't save anything because my hard drive was completely full. I checked Disk Usage Analyzer and it said the hard drive was indeed completely full. I saw that "Upstart" was the offender. But the next day (I did nothing--but panic) "Upstart" was gone, and the hard drive was back to half full.

Today again the warnings about not being able to save etc came. I checked the Disk Usage Analyzer (screenshot 66) and again "Upstart" was the culprit. So I went to the File Manager (screenshot 67) and a log from just today was 40.3GB. I saw that the log was a plain text document so I tried to open it with Mousepad but it just ran for ten minutes and so I eventually stopped both Mousepad and .cache in the Task Manager.

Well, the computer did have a lot on it at one point today: GIMP, Libre Office Writer, Firefox. But I had shut GIMP down and everything was working properly for a while, but then, as I said, I started getting the warnings that it wouldn't save and other functionality (eg. browser tabs would crash) was affected, as well.

I shut down the computer and then started it back up. That did nothing.

I did
Code:
sudo apt-get update
and then
Code:
sudo apt-get upgrade
. Then I checked Disk Usage Analzyer and it said that all 70 GB were still being used, and checking via the terminal indicated the same thing. But after a couple of minutes when I ran the visual diagram from Disk Usage Analyzer I got screenshot 69, saying basically "Upstart" was gone. I also checked the .cache/Upstart and the 40.3GB log was indeed gone.

Oddly, though, the terminal still showed that the hard drive was full, as did the initial look (the bar graphs) of Disk Usage Analyzer. But eventually both of those things also indicated that the 40.3GB was gone.

As far as I could tell the sudo apt-get update and sudo apt-get upgrade got rid of the log, but that may have been coincidental.

Questions:
1) Any guess as to why this is happening?
2) Any suggestions on how to stop it from happening again?
3) If it does happen again, any suggestions on how to get the hard drive space back?
4) Especially since the 40.3 GB log got removed (I didn't do it) from the .cache somehow, if this should happen again, would it be okay to just delete that 40.3GB (startxfce4.log.1) log? (.ie deleting it won't screw anything else up)

Thank you!
Attached Thumbnails
Click image for larger version

Name:	Selection_066.png
Views:	10
Size:	41.3 KB
ID:	28492   Click image for larger version

Name:	Selection_067.png
Views:	16
Size:	35.3 KB
ID:	28493   Click image for larger version

Name:	Selection_069.png
Views:	12
Size:	86.0 KB
ID:	28494  
 
Old 08-31-2018, 09:50 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
It was co-incidental. Log rotation is compressing it and resetting the file - logs compress well.
It logs get huge, find out why. Check the log before it gets out of hand - a simple "tail -n 15" should get you some evidence. Basic "Diagnostics 101".
 
1 members found this post helpful.
Old 09-01-2018, 04:48 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
startxfce4.log - 40.3GB
you should definitely find out what's going on there.
log files log errors.
big log files == many errors.
 
1 members found this post helpful.
Old 09-01-2018, 05:26 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Try reading some of that log file with the head or tail commands and post it here.
 
1 members found this post helpful.
Old 09-01-2018, 05:41 PM   #5
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by syg00 View Post
It was co-incidental. Log rotation is compressing it and resetting the file - logs compress well.
It logs get huge, find out why. Check the log before it gets out of hand - a simple "tail -n 15" should get you some evidence. Basic "Diagnostics 101".
Thanks a lot, syg00. I guess the huge file left then because it was rotated out? And I'm not sure how to apply the "tail -n 15" command if you could elaborate on that.
 
Old 09-01-2018, 05:44 PM   #6
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by ondoho View Post
startxfce4.log - 40.3GB
you should definitely find out what's going on there.
log files log errors.
big log files == many errors.
Thanks ondoho. Yeah, I guess a ton of errors. It's just startling that it comes on so quickly. The first time it happened I watched everything closely for a week but then forgot about it, then pow, it happened again in one day. Unfortunately, that 40.3 log is gone so I can't analyze it, but I'll be watching the new log closely.
 
Old 09-01-2018, 05:54 PM   #7
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by hydrurga View Post
Try reading some of that log file with the head or tail commands and post it here.
Hi Hydrurga. Thanks. I'm not quite sure how to do the head or tail commands. And the huge 40.3GB log is gone. And (I mean, I'm very strongly assuming you wouldn't have me post something that would) when I post a log like head/tail publicly I'm always worried it's going to reveal something (passwords or whatever) that puts the computer at risk to hackers. Is that something I need to be concerned about? Or how about when people in LQ ask me to run other commands and ask me to post the results? Is any security info ever revealed that way?

I learned about Glogg and got it from Synaptic, so I'm able to look at the current log, but I'm not really sure what I'm looking for. Just a ton of error messages? (In today's, very small, log it was just various error messages. It seemed none had corresponding sizes attached to them.)
 
Old 09-01-2018, 05:55 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Check one of the gz files - that's where the previous data is. Just zcat it and pipe to tail.
 
1 members found this post helpful.
Old 09-01-2018, 05:57 PM   #9
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by syg00 View Post
Check one of the gz files - that's where the previous data is. Just zcat it and pipe to tail.
Thanks but can you break that down for me? What I normally would do is extract the .gz file to a folder and look at the contents that way. I don't know how to zcat it and pipe to tail. Thanks.
 
Old 09-01-2018, 06:13 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Code:
zcat /home/${USER}/.cache/upstart/startxfce4.log.1.gz | tail -n 15
Change the filename as appropriate.
That will dump the last 15 lines to stdout - could of course be redirected to a file if desired.
 
1 members found this post helpful.
Old 09-03-2018, 12:36 PM   #11
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by syg00 View Post
Code:
zcat /home/${USER}/.cache/upstart/startxfce4.log.1.gz | tail -n 15
Change the filename as appropriate.
That will dump the last 15 lines to stdout - could of course be redirected to a file if desired.
Thanks syg00. I ran the command and all 15 entries were "SendMessage" followed by four sets of numbers.
 
Old 09-04-2018, 09:57 PM   #12
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Thanks everybody. Now I can keep an eye on that big log file with the head and tail -n 15. Hopefully I can see what's causing the sudden growth.
 
  


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
How could a computer technician use the "top" command with "ps" and "kill" to investigate how a system is misbehaving? geckono1 Linux - Newbie 13 07-03-2016 07:51 AM
Does "syslogd" cause "cat /proc/kmsg" not to work properly? winger9 Linux - General 2 03-04-2014 11:35 AM
Hardy won't startup, stops with a "fail" and I have to "ctrl+alt+del" to boot. brjoon1021 Ubuntu 10 12-15-2008 06:29 PM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-06-2005 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:20 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