Closed (fixed)
Project:
Barracuda
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2012 at 15:59 UTC
Updated:
15 May 2012 at 18:20 UTC
I ask because typical MySQL commands don't seem to work and because I keep killing the MariaDB server when trying to add a node to nodequeue when running the latest version of BOA HEAD as of 4/27/2012. (See http://drupal.org/node/1553158 for the issue about the nodequeue.)
Thanks for any and all help in advance. I truly appreciate it!
Steve
Comments
Comment #1
omega8cc commentedThere is nothing BOA specific, so standard
service mysql restartwill work, but if it crashed, it may take a while until it will recover from crash, so please be patient and monitor syslog in another terminal window withtail -f /var/log/syslog | grep mysqluntil you will see the lines saying something like:Now db server should be available.
Comment #2
wickwood commentedAfter the db server crashed while adding a node to nodequeue (see http://drupal.org/node/1553158 ), I did what you said and the db server never restarted.
Here's the output I got from
service mysql restartAnd in the other terminal where I ran
tail -f /var/log/syslog | grep mysqlI just got output like this over and over and over again at about 3 minute intervals.I let this go for about 20 minutes and then I tried running
service mysql stopwaited a few minutes and then ranservice mysql start.The out put I got from this was basically the same:
I also got the same output as above over and over again at about 3 minute intervals.
I let this go for another 30 minutes and the db server never recovered. I don't know what else to do at this point but recover my system from backup as I have done previously, so that's what did to get everything back online.
Thanks again for your help on this! I really appreciate everything you're doing for me and everyone else!
Steve
Comment #3
wickwood commentedBTW, I also tried rebooting the server before I restored from backup, and the db server did not restart this way either.
I then tried running the
service mysql restart, and got the same results as above.So now I'm going to restore the system from backup to the when it was running BOA HEAD from 3/31/2012.
Comment #4
omega8cc commentedThe problem is that you have still old MariaDB version for some reason and new config.
Please remove lines from your /etc/my.cnf:
This will allow you to start db server
Also, what is the result of
mysql -V?Comment #5
omega8cc commentedFixed in commit: http://drupalcode.org/project/barracuda.git/commit/c800978
Thanks!
Comment #6
wickwood commentedOutput from
mysql -Vwas:mysql Ver 15.1 Distrib 5.3.6-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2I had posted that in comment #2 of the issue Adding a node to nodequeue causes error with older version of BOA and shuts down databases for all sites with new version of BOA, but neglected to post it here, too. Sorry about that.
As soon as my system is restored, I will try this. I was planning to go to bed, but I won't be able to sleep if I don't try this first.
Thanks for your help, I'll let you know what happens.
Steve
Comment #7
wickwood commentedSo my system just finished restoring, and I opened
/etc/mysql/my.cnfto make the edits you suggested in #4, but I don't have those lines in this file. (BTW, the comment said the file was/etc/my.cnfand that does not exist. I figured this was just a typo.)Would these lines be there with my older BOA HEAD system (3/31/12) or only after I upgrade to the last HEAD? I haven't run the upgrade yet.
Comment #8
omega8cc commentedYou no longer see those lines in the
/etc/mysql/my.cnffile after another upgrade to head, because they are now automatically removed, as per patch from #5 above. They were there before, hence the error causing MariaDB to never start:Another problem is, why it didn't upgrade your db server to the latest MariaDB 5.5.23 so it is still 5.3.6, and we will try to reproduce this.
Comment #9
wickwood commentedOK, I think I understand you now. I thought I was suppose to remove those variables before I upgraded. I will run the upgrade this morning and report back.
Comment #10
wickwood commented1. I upgraded to BOA HEAD with commit in comment #5. Everything went perfectly with the upgrade.
2. After all new platforms added by Octopus were verified, I then tested whether or not I could reboot by Linode VPS, and that worked fine as well. So I took a manual backup of the VPS at this point.
3. I ran
grep mysql /var/log/syslogThis was the output:
4. I then tried to add a node to a nodequeue which was killing my db server before. The node was not added to the nodequeue, and it looks like the db server is crashing but it is also recovering. See comment #4 Adding a node to nodequeue causes error with older version of BOA and shuts down databases for all sites with new version of BOA for the syslog reports after crash and further discussion of this other issue.
5. I ran
service mysql restartand got this output:6. While doing step 5. I also ran
tail -f /var/log/syslog | grep mysqlin another terminal window and this was the output for that:Conclusion
I have some problems with my databases that need to be fixed and there may be some issue with the Nodequeue module too, but this issue of restarting and recovering the MariaDB server is fixed. (Interestingly, none of the tables marked with errors above have anything to do with sites are having problems with the Nodequeue module, but they are both Drupal 6 sites and 2 of the first sites that I moved to my BOA system about a year ago.)
I'll continue the discussion with the potential issue with the Nodequeue module in the issue Adding a node to nodequeue causes error with older version of BOA and shuts down databases for all sites with new version of BOA
Thanks again Omega8cc for all your help with this and all your hard work on the BOA system in general. Your generosity and patience is beyond compare!
Steve