Database Error - Upgraded to 3.7.0 hours ago

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Revolution Yes
    Member
    • Dec 2007
    • 68
    • 3.8.x

    Database Error - Upgraded to 3.7.0 hours ago

    Hi,

    I just got a database error. This occured about 10 minutes after making a CPanel Backup. I upgraded to 3.7.0 about 12 hours ago.

    Here's the source of the error message:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/URL]">
    <html>
    <head>
     <title>**** Database Error</title>
     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
     <meta name="ROBOTS" content="NOINDEX,NOFOLLOW,NOARCHIVE" />
     <style type="text/css">
     <!-- 
     body { background-color: white; color: black; }
     #container { width: 400px; }
     #message   { width: 400px; color: black; background-color: #FFFFCC; }
     #bodytitle { font: 13pt/15pt verdana, arial, sans-serif; height: 35px; vertical-align: top; }
     .bodytext  { font: 8pt/11pt verdana, arial, sans-serif; }
     a:link     { font: 8pt/11pt verdana, arial, sans-serif; color: red; }
     a:visited  { font: 8pt/11pt verdana, arial, sans-serif; color: #4e4e4e; }
     -->
     </style>
    </head>
    <body>
    <table cellpadding="3" cellspacing="5" id="container">
    <tr>
     <td><img src="[URL]http://www.***/forums/image.php?type=dberror[/URL]" alt="Database Error" width="48" height="48" /></td>
     <td id="bodytitle" width="100%">Database error</td>
    </tr>
    <tr>
     <td class="bodytext" colspan="2">*** database has encountered a problem.</td>
    </tr>
    <tr>
     <td colspan="2"><hr /></td>
    </tr>
    <tr>
     <td class="bodytext" colspan="2">
      Please try the following:
      <ul>
       <li>Load the page again by clicking the <a href="#" onclick="window.location = window.location;">Refresh</a> button in your web browser.</li>
       <li>Open the <a href="/">www.****</a> home page, then try to open another page.</li>
       <li>Click the <a href="javascript:history.back(1)">Back</a> button to try another link.</li>
      </ul>
     </td>
    </tr>
    <tr>
     <td class="bodytext" colspan="2">The [URL="http://www.****"]www.****[/URL] forum technical staff have been notified of the error, though you may <a href="[EMAIL="admin@****">contact"]mailto:admin@****">contact[/EMAIL] them</a> if the problem persists.</td>
    </tr>
    <tr>
     <td class="bodytext" colspan="2">&nbsp;<br />We apologise for any inconvenience.</td>
    </tr>
    </table>
    
    <!--
    Database error in vBulletin 3.7.0:
    Invalid SQL:
       SELECT  user.*, thread.threadid, post.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, sticky, thread.attach, thread.lastpostid, thread.lastposter, thread.lastpost, IF(views&lt;=thread.replycount, thread.replycount+1, views) AS views, thread.forumid, post.postid, pagetext
       , pagetext_html, postparsed.hasimages
       FROM thread AS thread
       LEFT JOIN post AS post ON (post.postid = thread.firstpostid)
       LEFT JOIN user AS user ON (user.userid = post.userid)
        LEFT JOIN postparsed AS postparsed ON (postparsed.postid = post.postid AND postparsed.styleid = 1 AND postparsed.languageid = 1)
       WHERE thread.threadid IN(7461,7435,7370)
       
       
       ORDER BY thread.dateline DESC
       LIMIT 3;
    MySQL Error   : Table 'post' is marked as crashed and last (automatic?) repair failed
    Error Number  : 1195
    Request Date  : Wednesday, April 30th 2008 @ 03:56:31 PM
    Error Date    : Wednesday, April 30th 2008 @ 03:56:33 PM
    Script        : [URL]http://www.***/forums/index.php[/URL]
    Referrer      : 
    IP Address    : ****
    Username      : Unregistered
    Classname     : vb_database
    MySQL Version : 
    -->
    
    </body>
    </html>
    I can access my Admincp, but it also displays this message:

    Code:
    Database error in vBulletin 3.7.0:
    Invalid SQL:
     SELECT COUNT(*) AS count
     FROM attachment AS attachment
     INNER JOIN post AS post USING (postid)
     WHERE attachment.visible = 0;
    MySQL Error   : Table 'post' is marked as crashed and last (automatic?) repair failed
    Error Number  : 1195
    Request Date  : Wednesday, April 30th 2008 @ 04:17:34 PM
    Error Date    : Wednesday, April 30th 2008 @ 04:17:35 PM
    Script        : [URL]http://www.****/forums/admincp/index.php?do=home[/URL]
    Referrer      : [URL]http://www.****/forums/admincp/[/URL]
    IP Address    : **
    Username      : ****
    Classname     : vb_database
    MySQL Version : 4.1.22-standard
    Can anyone help?

    Thanks in advance
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24358
    • 5.7.X

    #2
    Try running a repair on the 'post' table via AdminCP if you can get to that option or via myAdmin or similar database front end tool.

    You may need to run it several times though...
    Vote for:

    - Admin Settable Paid Subscription Reminder Timeframe (vB6)
    - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

    Comment

    • Revolution Yes
      Member
      • Dec 2007
      • 68
      • 3.8.x

      #3
      Originally posted by Trevster
      Try running a repair on the 'post' table via AdminCP if you can get to that option or via myAdmin or similar database front end tool.

      You may need to run it several times though...
      Hi Trevster, I did what you suggested (via AdminCP), ran the repair 'post' once and my site has reappeared! I've also made a test post and all 'seems' well again.

      Thank you so much for your swift and insightful suggestion!

      Do you (or anyone) know what caused the error and how I can avoid it happening again?

      Comment

      • Fungsten
        Senior Member
        • Apr 2006
        • 374
        • 4.2.5

        #4
        Sorry wrong error code for me.
        Last edited by Fungsten; Wed 30 Apr '08, 1:48pm.

        Comment

        • Steve Machol
          Former Customer Support Manager
          • Jul 2000
          • 154488

          #5
          Table corruption is a server issue. If it happens frequently then there is a problem with the server that needs to be fixed.
          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

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