Strange error, forum will not work.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • not
    Member
    • Nov 2005
    • 90

    Strange error, forum will not work.

    Database error in vBulletin 3.8.6:

    Invalid SQL:

    SELECT thread.threadid,
    thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views

    FROM vbull_thread AS thread


    WHERE forumid = 13
    AND sticky = 0

    AND visible IN (0,1,2)




    ORDER BY sticky DESC, lastpost DESC
    LIMIT 0, 20;

    MySQL Error : Unexpected e o f found when reading file '/tmp/MY****0' (Errcode: 0)
    Error Number : 9
    Request Date : Friday, October 28th 2011 @ 08:25:31 AM
    Error Date : Friday, October 28th 2011 @ 08:25:32 AM
    MySQL Version : 4.1.14
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24175
    • 5.7.X

    #2
    Run Repair/Optimize in the Admin CP. You may need to run it more than once to fix all errors:

    Admin Control Panel -> Maintenance -> Repair/Optimize Tables -> Check All -> Continue

    If you cannot access the Admin CP, then you can use phpMyAdmin to repair tables.

    If that doesn't work then this may be too damaged to fix with the normal methods. Please check out this thread for other ways to repair a db, particularly items #2 and 3:



    You may have to ask your host to try and repair this for you.
    Vote for:

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

    Comment

    • not
      Member
      • Nov 2005
      • 90

      #3
      the entire database? or just the thread tables

      I checked the tables in phpmyadmin and they all checked out OK, it has me puzzled.

      Comment

      • Trevor Hannant
        vBulletin Support
        • Aug 2002
        • 24175
        • 5.7.X

        #4
        If repairing the specific table doesn't work, you will need to speak to your host
        Vote for:

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

        Comment

        • not
          Member
          • Nov 2005
          • 90

          #5
          We have tried to repair tables
          We have tried to restore it from a good 3 day old backup, and keep getting the "Unexpected eof found when reading file '/tmp/MY*******O' (Errcode: 0)

          It's only affecting two of the 8 forums on the board.

          It also looks like a new HEAP temp file has been created. vbull_taggregate_temp_1306434600 could i try to run a query on session and cpsession, and delete the temp file?

          any suggestions? Would it be better to file a ticket? My host is stumped.
          Last edited by not; Fri 28 Oct '11, 6:50pm.

          Comment

          • not
            Member
            • Nov 2005
            • 90

            #6
            Originally posted by not
            We have tried to repair tables
            We have tried to restore it from a good 3 day old backup, and keep getting the "Unexpected eof found when reading file '/tmp/MY*******O' (Errcode: 0)

            It's only affecting two of the 8 forums on the board.

            It also looks like a new HEAP temp file has been created. vbull_taggregate_temp_1306434600 could i try to run a query on session and cpsession, and delete the temp file?

            any suggestions? Would it be better to file a ticket? My host is stumped.
            Used two backups, both were made when the site was working properly. Both crashed the same tables when used to restore.

            Comment

            • Simon Lloyd
              Senior Member
              • Apr 2008
              • 610
              • 3.7.x

              #7
              You can get rid of the temp files and ask your host to optimise tables for you, you may find that there are TMD files already created in your database for crashed tables (you cannot see them in phpmyadmin you need to use ssh or have other database management software) these will need to be deleted before repairing or optimising tables, your host should be able to do this for you.
              Kind regards,
              Simon
              Microsoft Office Discussion

              Comment

              • not
                Member
                • Nov 2005
                • 90

                #8
                Simon Lloyd, thank you. It looks like we are out of luck, as they claim they cannot access their database server. ???(yahoo) I guess we are lucky that we kept it going for 5 years, it would be nice if they would remove the file so we can move to another place. Again, thanks for your help.

                Comment

                • Simon Lloyd
                  Senior Member
                  • Apr 2008
                  • 610
                  • 3.7.x

                  #9
                  Originally posted by not
                  Simon Lloyd, thank you. It looks like we are out of luck, as they claim they cannot access their database server. ???(yahoo) I guess we are lucky that we kept it going for 5 years, it would be nice if they would remove the file so we can move to another place. Again, thanks for your help.
                  Thats very strange, a host that cannot access it's server?

                  If you've paid them then they have a duty to provide the service!
                  Kind regards,
                  Simon
                  Microsoft Office Discussion

                  Comment

                  • not
                    Member
                    • Nov 2005
                    • 90

                    #10
                    This is getting more and more strange. From the beginning we have been getting this error in two forums on our board.
                    Database error in vBulletin 3.8.6:

                    Invalid SQL:

                    SELECT thread.threadid,
                    thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views
                    FROM vbull_thread AS thread
                    WHERE forumid = 7
                    AND sticky = 0
                    AND visible IN (0,1,2)
                    ORDER BY sticky DESC, lastpost DESC
                    LIMIT 0, 20;

                    MySQL Error : Unexpected eof found when reading file '/tmp/MY******' (Errcode: 0)
                    Error Number : 9
                    Request Date : Thursday, November 10th 2011 @ 03:38:57 AM
                    Error Date : Thursday, November 10th 2011 @ 03:38:57 AM
                    After a week of rebuilding the database, calling the host, and restoring the board several times, we cleared it up on one forum.
                    With help from the host, I made a new account for them to check the board. To my surprise, the new account could enter the forum and post, but all old accounts could not (database error). I made another new account and tried it, it also allowed access. The database error is only affecting old accounts, new ones work ok. (remember this is just on one forum, not the entire board).

                    The host went through and deleted the temp files, and everyone has access. (the temp files always start with '/tmp/MY the next six numbers can change.)

                    Is it possibile this is a problem with login keys? Any suggestions?

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 73391
                      • 6.0.X

                      #11
                      Originally posted by not
                      Is it possibile this is a problem with login keys? Any suggestions?
                      No.. It means the temporary files were corrupted. Probably from abnormal shutdowns in MySQL for some reason or another. Deleting them allows MySQL to return to normal operations.
                      Translations provided by Google.

                      Wayne Luke
                      The Rabid Badger - a vBulletin Cloud demonstration site.
                      vBulletin 5 API

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...
                      😀
                      😂
                      🥰
                      😘
                      🤢
                      😎
                      😞
                      😡
                      👍
                      👎