Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Oct 13, 2011 7:12 am 
Offline
Junior Member

Joined: Sun Nov 14, 2010 9:46 pm
Posts: 28
Hi all,
My Linode has been running perfect for well over a year, then last night I noticed my MySQL server (on the same Linode) stopped running.

It's a Ubuntu 10.10 image with nginx & mysql.
I made no changes so have no idea why this happened.

using:
Code:
/etc/init.d/mysql restart


results in:

Quote:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart mysql
start: Job failed to start


so, I tried:
Quote:
mysql -u root -p *****


and I get:
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)



any ideas what I need to do to get this fixed?


Top
   
 Post subject:
PostPosted: Thu Oct 13, 2011 8:31 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Is your disk full? "df -h" will check. MySQL seems to be the first thing that fails when that happens.


Top
   
 Post subject:
PostPosted: Thu Oct 13, 2011 8:49 am 
Offline
Junior Member

Joined: Sun Nov 14, 2010 9:46 pm
Posts: 28
hoopycat wrote:
Is your disk full? "df -h" will check. MySQL seems to be the first thing that fails when that happens.


Thank you so much, that was indeed it.
Tried everything else, was pulling my hair out, never thought to check if disk was full.

Working again now.


Top
   
 Post subject:
PostPosted: Thu Oct 13, 2011 10:22 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Old and busted: Apache MaxClients
New hotness: MySQL no-space-left-on-device handling

:-)

Going for the exacta here: is logrotate installed and working?


Top
   
 Post subject:
PostPosted: Fri Oct 14, 2011 1:46 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
hoopycat wrote:
Going for the exacta here: is logrotate installed and working?

When it happened to me years ago, logrotate wouldn't help. It was a log growing up, indeed, but it did grow up these 10-or-so GB in about a hour. ;)
Yay for a few E_NOTICEs per request * tens of thousands of requests...

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
 Post subject:
PostPosted: Fri Oct 14, 2011 4:43 pm 
Offline
Senior Member

Joined: Mon Dec 07, 2009 6:46 am
Posts: 331
Partitions. Saving your server from logswell crash since 1991*.


*) or whatever


Top
   
 Post subject:
PostPosted: Fri Oct 14, 2011 6:42 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
I was young and stupid back then.
Now I'm not so young. Still stupid, probably. ;)

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 8 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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group