{"id":215,"date":"2011-06-04T01:32:06","date_gmt":"2011-06-03T17:32:06","guid":{"rendered":"http:\/\/depannone.com\/wordpress\/?p=215"},"modified":"2011-06-04T01:32:06","modified_gmt":"2011-06-03T17:32:06","slug":"mythtv-and-sudden-db-crash","status":"publish","type":"post","link":"http:\/\/blog.depannone.com\/?p=215","title":{"rendered":"Mythtv and sudden DB crash"},"content":{"rendered":"<p>My wife calls me while I was in my man cave tonight and tells me our mythbox has crashed and didn&#8217;t come back up with a reboot.  I have a look and the thing it is asking me for the DB details (ie, location, password etc) &#8211; as if we are setting the mythtv installation again from scratch.  This understandably throws me into a bit of a panic especially when she tells me she has already seen the screens and just entered through them!  <\/p>\n<p>I wasn&#8217;t able to log into the mysql tables using the cli client.  Manually starting the mysql db FAILED as did restarting it or even stopping it, they all FAILED.<\/p>\n<p>After digging in Google I noticed that the mysql.sock file that is created in \/var\/lib\/mysql and which the mysql client must use to connect to the mysql db server was appearing and then the next moment it was gone, very very strange.<\/p>\n<p>I looked at the size of the mysql.log file, it was over 3 GB!  Looking in the mysql.log I see <strong><em>&#8220;Can&#8217;t start server: can&#8217;t create PID file: No space left on device&#8221;<\/em><\/strong> then the penny drops, I had run out of disk space on the root partition.<\/p>\n<p>Deleting the 3GB mysql.log file gives me back 34% of \/, rebooted and then off I go.<\/p>\n<p>So the moral of the story kiddies is to check your log files for a hint to what&#8217;s going on and make sure you have enough space left in \/ or mysql will bomb out,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My wife calls me while I was in my man cave tonight and tells me our mythbox has crashed and didn&#8217;t come back up with a reboot. I have a look and the thing it is asking me for the DB details (ie, location, password etc) &#8211; as if we are setting the mythtv installation &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.depannone.com\/?p=215\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mythtv and sudden DB crash&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[32],"class_list":["post-215","post","type-post","status-publish","format-standard","hentry","category-geek_stuff","category-linux","tag-mythtv"],"_links":{"self":[{"href":"http:\/\/blog.depannone.com\/index.php?rest_route=\/wp\/v2\/posts\/215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.depannone.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.depannone.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.depannone.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.depannone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=215"}],"version-history":[{"count":0,"href":"http:\/\/blog.depannone.com\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.depannone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.depannone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.depannone.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}