View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Nov 03, 2011 11:16 am 
Offline
Joined: Wed May 09, 2007 8:47 pm
Posts: 367
Location: Minnesota- Brrrrr!
My mythtv box is down: it is not bringing up the UI.

DETAILS
======
Last night I attached a smaller (500GB) USB drive to the box to move files to the larger USB drive. Because there were problems accessing the USB drives, I rebooted the myth server.

To my chagrin, it booted up to a "Select your preferred language" screen. Then it started to get ugly. The next screen: "No UPnP backends found" followed by 'Database Configuration'. This 2 page menu indicated that "myth can not connect to the database". I'm fairly certain that I am using the default password:

Code:
[root@mythtv ~]# mysql -u mythtv mythconverg -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)


The boot hard drive seems to performing an excessive number of reads.


QUESTIONS
========
Has anyone observed these symptoms before and diagnose the root cause? My search of MYSQL in the forum did not produce any insight.

I am hoping to avoid reinstalling mythtv because I have a lot invested in configuring the system. Thanks for considering my posting.

_________________
R7.3: 0.22.20091023-1, Hauppauge PVR-500 (Philips FQ1236A MK4), Gigabyte Gigabyte EG45M-UD2H, E5200 2.4Ghz, 2GB RAM, NVIDIA GEFORCE 256MB


Last edited by gatorback on Thu Nov 03, 2011 4:20 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 03, 2011 1:53 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
I have seen that happen when the boot drive is full. Try df -h to see if that is the case.

Britney


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 03, 2011 1:59 pm 
Offline
Joined: Wed May 09, 2007 8:47 pm
Posts: 367
Location: Minnesota- Brrrrr!
@brfransen: nailed it. Good job.

Please advise what was done to resolve this: I suspect something was deleted, but not really sure what should be removed.

Code:
[root@mythtv ~]# df -h
date;Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             4.9G  4.9G     0 100% /
none                  996M     0  996M   0% /dev/shm
/dev/sda3             181G  159G   13G  93% /myth
/dev/sdb1             2.0T  719G  1.3T  37% /media/MEDIA
/dev/sdb2             842G  661G  181G  79% /media/DATA

_________________
R7.3: 0.22.20091023-1, Hauppauge PVR-500 (Philips FQ1236A MK4), Gigabyte Gigabyte EG45M-UD2H, E5200 2.4Ghz, 2GB RAM, NVIDIA GEFORCE 256MB


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 03, 2011 2:11 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
Most likely it is some log file. Check /var/log/ and /var/log/mythtv/ But don't just delete blindly. Look for the largest files and see if there was an error repeated over and over that caused the file to grow in size so much. You could also check and remove any old pkg from /data/var/cache/pacman/pkg/ to regain some space.

Britney


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 03, 2011 4:17 pm 
Offline
Joined: Wed May 09, 2007 8:47 pm
Posts: 367
Location: Minnesota- Brrrrr!
@Britney: your guidance has returned mythtv to working status: Thank you. I need to analyze the log files and determining why their size exploded. A cursory review of the 60MB log files show that the dominant repeated message is of the type:

Quote:
mythtv fuppes[30427]: segfault at 0 ip b7f97d41 sp bf9a94c0 error 4 in libfuppes.so.0.0.0[b7f70000+107000]


Not sure what I could have done to cause this.

After moving the logs off-disk, 1.6 GB of space was recovered.

[root@mythtv /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 4.9G 3.1G 1.6G 67% /
none 996M 0 996M 0% /dev/shm
/dev/sda3 181G 159G 13G 93% /myth

For those following along, the following commands were helpful:

Finding large files
===========
This searches for a file > 50 MB
Code:
 find /var/*  -size +50M



Listing Files by Size
============
Code:
[root@mythtv ~]# ls -lS /var/log

total 1884140
-rw-r----- 1 root log 337137664 2011-11-03 16:35 everything.log
-rw-r----- 1 root log 337031168 2011-11-03 16:35 messages.log
-rw-r----- 1 root log 332840960 2011-11-03 16:35 kernel.log
-rw-r----- 1 root log 91108086 2011-10-31 00:02 everything.log.1
-rw-r----- 1 root log 90986918 2011-10-31 00:02 messages.log.1
-rw-r----- 1 root log 86682209 2011-10-17 00:02 everything.log.3
-rw-r----- 1 root log 86620462 2011-10-17 00:02 messages.log.3
-rw-r----- 1 root log 82100141 2011-10-31 00:02 kernel.log.1
-rw-r----- 1 root log 81958980 2011-10-17 00:02 kernel.log.3
-rw-r----- 1 root log 63169656 2011-10-23 00:02 everything.log.2
-rw-r----- 1 root log 62815266 2011-10-23 00:02 messages.log.2
-rw-r----- 1 root log 62441865 2011-10-09 00:02 everything.log.4
-rw-r----- 1 root log 62385221 2011-10-09 00:02 messages.log.4
-rw-r----- 1 root log 61795898 2011-10-23 00:02 kernel.log.2
-rw-r----- 1 root log 61299887 2011-10-09 00:02 kernel.log.4
-rw-r----- 1 root log 8872974 2011-10-31 00:00 daemon.log.1
-rw-r----- 1 root log 4596822 2011-10-16 23:11 daemon.log.3
-rw-r----- 1 root log 4243456 2011-11-03 16:35 daemon.log
-rw-r----- 1 root log 1313327 2011-10-23 00:02 daemon.log.2
-rw------- 1 root root 1171200 2011-11-03 16:36 btmp

Delete Files By Size Recursively
=====================

It's wise to list the files first to avoid shotgun deleting:
Code:
find /var/log/* -size +50M -type f


THEN delete.
Code:
find /var/log/* -size +50M -type f -exec rm -f '{}' \;


Count the instances of the fuppes error
==========================

Code:
grep -c "error 4" < /var/log/everything.log;

_________________
R7.3: 0.22.20091023-1, Hauppauge PVR-500 (Philips FQ1236A MK4), Gigabyte Gigabyte EG45M-UD2H, E5200 2.4Ghz, 2GB RAM, NVIDIA GEFORCE 256MB


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 04, 2011 11:53 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
I always give myself a root partition of 20 GB instead of the standard 5 I think you can use Gparted to non-destructively increase your partition size but check on that before you kill your box.

_________________
My System


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu