Constant DB errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #16
    This error means that either:

    1) The db info in your config.php file is wrong (in which case your forums won't work at all.)

    2) That user doesn't have permission to access the database listed in config.php.

    3) The database doesn't exist.

    4) MySQL isn't accepting new connections. (The server could either be down or has reached it's maximum connections limit.)

    If you are sure your config.php info is correct, then you will need to contact your host about this.

    Note, many servers are being probed for the phpBB worm these days and the MySQL server is being overloaded. This could account for these errors.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • George L
      Former vBulletin Support
      • May 2000
      • 32996
      • 3.8.x

      #17
      Originally posted by Blairwarlock
      Well, everything was ok until I started getting tons of Link-ID == false, connect failed errors. Are there any issues with php 4.3.11 or mySQL 4.0.24 that would cause this? I've NEVER had this error before after the forums were running. I increased max_connections from 400 to 650. Are there any variables I need to be concerned with changing with this upgrade??
      head on over to server config forum and post info asked at http://www.vbulletin.com/forum/showthread.php?t=70117 to see if your server needs tuning

      the error message also can me mysql crashed under load too
      :: Always Back Up Forum Database + Attachments BEFORE upgrading !
      :: Nginx SPDY SSL - World Flags Demo [video results]
      :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

      Comment

      • Blairwarlock
        Senior Member
        • Nov 2001
        • 199

        #18
        Ok, will do thanks. I can't imagine it was load or even max_conn's as the system wasn't running for more than an hour after the upgrade before the errors began. This is why I was suspecting a bug. But if it occurs again, I will post in Server Config forum.

        Comment

        • George L
          Former vBulletin Support
          • May 2000
          • 32996
          • 3.8.x

          #19
          an hour after what upgrade ???

          edit: oh ya meant software upgrades.. nah that wouldn't necessary cause this
          :: Always Back Up Forum Database + Attachments BEFORE upgrading !
          :: Nginx SPDY SSL - World Flags Demo [video results]
          :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

          Comment

          • Blairwarlock
            Senior Member
            • Nov 2001
            • 199

            #20
            Originally posted by Blairwarlock
            Ok, updated both php and mySQL as recommended. Upgrade went smooth as usual. If we can make it 48hrs w/o a hiccup then we've solved the corruption issue. Will keep you posted. Thanks again!
            Morning update. For about 20 minutes (1:20am to 1:40am) the 127 error re-surfaced...aargh This time, the following error was also generated:

            mysql error: Incorrect key file for table: 'post'. Try to repair it
            mysql error number: 1034


            It corrected itself. I ran a check this morning and there was no corruption. So now that I have updated both php and mySQL and still experiencing the error...what next? Is there some internal corruption that I am unable to fix with mysqlcheck or myisamchk? Any assistance would be helpful. TIA.

            Comment

            • George L
              Former vBulletin Support
              • May 2000
              • 32996
              • 3.8.x

              #21
              hmm when was last time you backed up your forums ? and how did you back it up ? mysqldump ? or physically moving data files ? corruption could be due to faulty hardware too i.e bad memory modules etc

              try this

              1. close forums
              2. create new empty database
              3. type in ssh telnet

              mysqladmin -u root -p flush-tables

              then type

              mysqldump --opt -u root -p forumdatabasename > /path/to/backup.sql

              then type

              mysql -u root -p newemptydatabasename < /path/to/backup.sql

              4. now edit config.php for vB and change dbname to newemptydatabasename

              and run that - doing a backup and restore and fix possible file structure corruptions in database files
              :: Always Back Up Forum Database + Attachments BEFORE upgrading !
              :: Nginx SPDY SSL - World Flags Demo [video results]
              :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

              Comment

              • Blairwarlock
                Senior Member
                • Nov 2001
                • 199

                #22
                Originally posted by eva2000
                hmm when was last time you backed up your forums ? and how did you back it up ? mysqldump ? or physically moving data files ? corruption could be due to faulty hardware too i.e bad memory modules etc
                Outside of tape backup, forums are manually backed up via mysqldump weekly. I will try your suggestions. Thanks!

                Comment

                • Blairwarlock
                  Senior Member
                  • Nov 2001
                  • 199

                  #23
                  Originally posted by eva2000
                  and run that - doing a backup and restore and fix possible file structure corruptions in database files
                  Ok, done. How long should loading an 860MB database take? Took several hours to complete. Perhaps my memory allocation was not optimized. In any case, once it loaded I checked the file count and disk space taken by the actual files/tables. While the file count is the same, the new load takes up about 30 more MB of disk. Interesting...wonder if there was some corruption in the old database that was repaired during the load?

                  Comment

                  • George L
                    Former vBulletin Support
                    • May 2000
                    • 32996
                    • 3.8.x

                    #24
                    with tape backup does it just backup the mysql data partition files while mysql is still running ? i.e. copy/transfer the *.myd, *.myi, *.frm ? if so that that's a possible cause of your corruption.

                    As to how long it should take it depends on cpu power, disk speed and mysql memory buffer allocations as to how long it's hard to say.

                    example 1.4+ GB vB database of mine

                    dual AthlonMP 2400+ with 2GB ram and 10k scsi disks, took around 45-55mins to import into empty database

                    2x server setup with web and db server both dual P4 3.06ghz Xeon with 3GB ram and raid 5 10k scsi disks took around 16-19mins to import
                    :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                    :: Nginx SPDY SSL - World Flags Demo [video results]
                    :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                    Comment

                    • Blairwarlock
                      Senior Member
                      • Nov 2001
                      • 199

                      #25
                      Originally posted by eva2000
                      with tape backup does it just backup the mysql data partition files while mysql is still running ? i.e. copy/transfer the *.myd, *.myi, *.frm ? if so that that's a possible cause of your corruption.

                      As to how long it should take it depends on cpu power, disk speed and mysql memory buffer allocations as to how long it's hard to say.

                      example 1.4+ GB vB database of mine

                      dual AthlonMP 2400+ with 2GB ram and 10k scsi disks, took around 45-55mins to import into empty database

                      2x server setup with web and db server both dual P4 3.06ghz Xeon with 3GB ram and raid 5 10k scsi disks took around 16-19mins to import
                      The load was done from a local mysqldump so we did not use tape backup.

                      Any ideas on why the size of the new database is greater than the dump it was taken from? Btw, so far so good!

                      Comment

                      • Marco van Herwaarden
                        Senior Member
                        • Nov 2004
                        • 6999
                        • 3.8.x

                        #26
                        While the file count is the same, the new load takes up about 30 more MB of disk.
                        When compairing the size, are you compairing to another (or old) directory on the same server?

                        If not, the actually disk size of a file can depend very much on OS, OS-settings or disk.
                        Want to take your board beyond the standard vBulletin features?
                        Visit the official Member to Member support site for vBulletin Modifications: www.vbulletin.org

                        Comment

                        • Blairwarlock
                          Senior Member
                          • Nov 2001
                          • 199

                          #27
                          Originally posted by eva2000
                          with tape backup does it just backup the mysql data partition files while mysql is still running ? i.e. copy/transfer the *.myd, *.myi, *.frm ? if so that that's a possible cause of your corruption.

                          As to how long it should take it depends on cpu power, disk speed and mysql memory buffer allocations as to how long it's hard to say.

                          example 1.4+ GB vB database of mine

                          dual AthlonMP 2400+ with 2GB ram and 10k scsi disks, took around 45-55mins to import into empty database

                          2x server setup with web and db server both dual P4 3.06ghz Xeon with 3GB ram and raid 5 10k scsi disks took around 16-19mins to import
                          Update: more errors ths morning my users are getting VERY upset. i'm really at a loss here. errors this morning are the same 127 as I was getting earlier. any suggestions please??

                          Comment

                          • Blairwarlock
                            Senior Member
                            • Nov 2001
                            • 199

                            #28
                            Update: I did some more troubleshooting and noted the start time of the DB errors over the last week. Seems like errors start between midnight and 2AM every night consistently. This is obviously a time when there's little load on the server with regards to forum users. I did discover that corruption ONLY occurred in the middle of the night..strange. So, what's the first thing anyone would think about that happens each night during off-time? Backups! I called my ISP and sure enough they recently switched over to a new backup platform 2 weeks ago when the corruption began. This new platform seems to NOT be compatible with mySQL open files . Corruption would ONLY occur in 2 tables...post and postindex. We're going to exclude my forum DB tonight to see if we still get corruption. This is good and bad. If in fact this new backup platform is unable to backup mySQL then my nightly backups are worthless and will only be as good as my last weekly dump

                            Will keep you updated.

                            Comment

                            • George L
                              Former vBulletin Support
                              • May 2000
                              • 32996
                              • 3.8.x

                              #29
                              Originally posted by Blairwarlock
                              Update: I did some more troubleshooting and noted the start time of the DB errors over the last week. Seems like errors start between midnight and 2AM every night consistently. This is obviously a time when there's little load on the server with regards to forum users. I did discover that corruption ONLY occurred in the middle of the night..strange. So, what's the first thing anyone would think about that happens each night during off-time? Backups! I called my ISP and sure enough they recently switched over to a new backup platform 2 weeks ago when the corruption began. This new platform seems to NOT be compatible with mySQL open files . Corruption would ONLY occur in 2 tables...post and postindex. We're going to exclude my forum DB tonight to see if we still get corruption. This is good and bad. If in fact this new backup platform is unable to backup mySQL then my nightly backups are worthless and will only be as good as my last weekly dump

                              Will keep you updated.
                              ah ha yes as suspected... you just will have to cron job or use a backup script run by cron which invokes mysqldump for safely backing up your forums.
                              :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                              :: Nginx SPDY SSL - World Flags Demo [video results]
                              :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                              Comment

                              • Blairwarlock
                                Senior Member
                                • Nov 2001
                                • 199

                                #30
                                Originally posted by MarcoH64
                                When compairing the size, are you compairing to another (or old) directory on the same server?

                                If not, the actually disk size of a file can depend very much on OS, OS-settings or disk.
                                The two folders were on the same disk. I essentially took a dump of my DB, loaded it to a new DB on the same disk and compared the two.

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...