Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd May 2010, 02:48 PM
cmsps Offline
Registered User
 
Join Date: Oct 2005
Location: Sheffield, UK
Age: 65
Posts: 28
linuxfedoramozilla
Tip: save "good" log files in case of trouble

A few weeks ago I had a kerneloops and X would no longer run on my main box. I looked at /var/log/messages and /var/log/Xorg.0.log etc but the problem was I didn't know which errors were serious or which were new. I spent hours searching for info about ACPI conflicts and other things flagged up in /var/log/messages. I hoped that an update to something or other would restore my GUI but it didn't. I got by using my laptop to connect to the main box.

Recently, I happened to notice error messages about invalid ELF headers in /var/log/gdm/:0-greeter.log. I did a 'yum reinstall atk' and I was back in business.

It would all have been so easy if I had had "good" versions of the log files to compare against. I now have several files like Xorg.0.log.OK and messages.OK to refer to if anything so nasty happens again. Creating some on your boxes might save you the time I wasted!

Peter

Last edited by cmsps; 23rd May 2010 at 05:00 PM. Reason: Reader's suggestion
Reply With Quote
  #2  
Old 23rd May 2010, 04:56 PM
CSchwangler Offline
Registered User
 
Join Date: Feb 2009
Posts: 2,535
linuxfedorafirefox
Re: A good idea

Your ideas are indeed good, but you should change the thread title to something more meaningful. That is certainly not meant as an offence, I just had problems to imagine what the content of this thread could be.
Reply With Quote
  #3  
Old 23rd May 2010, 05:37 PM
cmsps Offline
Registered User
 
Join Date: Oct 2005
Location: Sheffield, UK
Age: 65
Posts: 28
linuxfedoramozilla
Re: A good idea

Thanks CSchwangler. I've edited the title of my original post but don't know how to rename the thread. Perhaps a moderator can do that and delete this post

Peter
Reply With Quote
  #4  
Old 23rd May 2010, 05:48 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,922
linuxfedorafirefox
Re: A good idea

I can edit it. What do you want it to say?
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #5  
Old 23rd May 2010, 06:32 PM
bob's Avatar
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,200
linuxfirefox
Re: Tip: save "good" log files in case of trouble

I think I got it.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #6  
Old 23rd May 2010, 07:17 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,922
linuxfedorafirefox
Re: Tip: save "good" log files in case of trouble

What is the solution to the problem? What changes did you make so that files were saved?
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #7  
Old 23rd May 2010, 08:47 PM
bob's Avatar
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,200
linuxfirefox
Re: Tip: save "good" log files in case of trouble

Well, the OP had changed the title of his post, which I assumed was what he wanted the Thread title to be. So, since we can edit thread titles, copy/paste and done!
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #8  
Old 23rd May 2010, 10:00 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,922
linuxfedorafirefox
Re: Tip: save "good" log files in case of trouble

Quote:
Originally Posted by bob View Post
Well, the OP had changed the title of his post, which I assumed was what he wanted the Thread title to be. So, since we can edit thread titles, copy/paste and done!
No. That's not what I meant. How did he solve it his issue?
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #9  
Old 25th May 2010, 12:00 PM
cmsps Offline
Registered User
 
Join Date: Oct 2005
Location: Sheffield, UK
Age: 65
Posts: 28
linuxfedoramozilla
Re: Tip: save "good" log files in case of trouble

Quote:
Originally Posted by glennzo View Post
No. That's not what I meant. How did he solve it his issue?
The issue was that there was so much stuff in the log files that I didn't know what was new or serious. It would have been easier if I had had some "good" log files to compare the "bad" ones with.

So, when everything is working well:
Code:
# cd /var/log
# cp messages messages.OK
# cp Xorg.0.log Xorg.0.log.OK
# cd gdm
# cp ...
  etc
Then, you are ready when big problems. arise.
Reply With Quote
  #10  
Old 24th May 2010, 01:55 AM
bob's Avatar
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,200
linuxfirefox
Re: Tip: save "good" log files in case of trouble

Ah! That...not a frikkin' idea. I just move 'em, not test 'em.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #11  
Old 25th May 2010, 01:01 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
Re: Tip: save "good" log files in case of trouble

I prefer
Code:
su -c "tar zcf goodlogs.tgz /var/log"
It's easier...
Reply With Quote
Reply

Tags
case, files, good, log, save, tip, trouble

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble getting kboot to save to ps3 hdd ghostface3690 Using Fedora 0 25th November 2008 12:14 PM
Script or method to remove duplicate files MATCHING CASE johannlo Using Fedora 2 13th February 2008 03:03 AM
FAT32 case insensitive directory names (but trying to preserve case) Wangberg Using Fedora 4 13th October 2007 11:38 PM
Strange case, and a good exercise mohelgamal Installation and Live Media 1 18th June 2006 12:28 PM
can linux be forced not to be case sensitive with html files while displaying them sourin Servers & Networking 7 15th December 2005 02:24 PM


Current GMT-time: 06:50 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat