Bike Forums

Bike Forums (https://www.bikeforums.net/forum.php)
-   Forum Suggestions & User Assistance (https://www.bikeforums.net/forum-suggestions-user-assistance/)
-   -   Database errors (https://www.bikeforums.net/forum-suggestions-user-assistance/604824-database-errors.html)

StupidlyBrave 11-23-09 10:36 PM

Database errors
 
I didn't see a thread related to the increased frequency of seeing the dreaded "Database Error" page. So I thought that I might start one.

I saw some earlier today that suggested that the forum software had some difficulty connecting to the MySql server. I see that as largely a transient issue, so I hesitate to bring that up.

However, there is a larger problem where occasionally large threads will display that page if you click on the "Last post" icon OR the "last post date" link. It acts very much like an "off-by-one" error. However, this error is embedded:
Code:

Database error in vBulletin 4.0.0 Beta 4:

Invalid SQL:

ORDER BY a.contentid, a.attachmentid;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY a.contentid, a.attachmentid' at line 1

Possibly the select and where clause were separated by some inadvertent punctuation.

Tom Stormcrowe 11-23-09 10:56 PM

Thank you, added to the tech list.

StupidlyBrave 11-25-09 03:46 PM

A new one:

Code:

Database error in vBulletin :

mysqli_real_connect() [<a href='function.mysqli-real-connect'>function.mysqli-real-connect<

/a>]: (08004/1040): Too many connections

/var/www/public_html/includes/class_core.php on line 1180

MySQL Error  :

Error Number  :

Request Date  : Wednesday, November 25th 2009 @ 01:30:01 PM

Error Date    : Wednesday, November 25th 2009 @ 01:30:01 PM


Possibly a misconfiguration, possibly a connection leak. Connection leaks are no fun to diagnose.

bigbenaugust 11-28-09 08:00 PM


Originally Posted by StupidlyBrave (Post 10069558)
However, there is a larger problem where occasionally large threads will display that page if you click on the "Last post" icon OR the "last post date" link.

I get this all the time. I'd love to catch up on the Commuter Bicycle Pics thread, but alas, database errors are all I get. There's a long thread or two in Foo that give me database errors, too.

wolfpack 11-28-09 08:21 PM

maybe this stuff should've been beta tested prior to rolling out.....

DMF 11-29-09 01:18 PM

No way to beta test with the size database and number of users on BF.

May be for vB should have had its flying ad say "vB 4.0 beta"...

;)

luketg08 11-29-09 05:12 PM

I'd like to see the visits for an average day before and after the new forum was installed. My guess is it has gone down. I haven't even been checking these forums because of all the database errors. Revert?

Machka 11-30-09 04:25 AM


Originally Posted by luketg08 (Post 10087835)
I'd like to see the visits for an average day before and after the new forum was installed. My guess is it has gone down. I haven't even been checking these forums because of all the database errors. Revert?

If you go to the main forum page and scroll down, you'll find this ...

Bike Forums Statistics
Threads 556,142 Posts 9,520,022 Members 170,558 Active Members 15,301 (this was a few days ago, I see they are even lower than that now)

----------------------------------------
We're down to 8.9% active users.

Rowan has been commenting to me, and posting somewhere on BF, about the steady decline of active users on this forum. During the Northern Hemisphere "season" it was up around 13% (the lowest "seasonal" percent it has been in a few years). Pre-forum-change he made some comment about it being down to 11% ... and now it's down below 9%. I don't think it's been that low since the very early days of the forum.

2% might not seem very much but 2% of 170,558 is 3411 people. A 4% drop from the "season" is 6822 people. So during the "season" the Active Membership was up around 22123 people (which as I mentioned before was lower than most previous "seasons") ... we've dropped approx. 1/3 of those in the last couple months, half of that because of the end of the "season" and half of that because of the forum change.


As for the subject of this thread ... I haven't been getting that many Database Errors, but I get a ton of Internet Explorer Cannot Find Webpage type errors in this site.

StupidlyBrave 11-30-09 06:40 PM


Originally Posted by Machka (Post 10089641)
<snip> I haven't been getting that many Database Errors, but I get a ton of Internet Explorer Cannot Find Webpage type errors in this site.

They may be the same thing. The server returns a 500 series error code (503) to the browser. Your IE is probably set to display "friendly error messages". This is to prevent you from seeing an occasional stack trace or other techno-complaints, but it will also prevent you from seeing the page when the web server (correctly) sends a custom error page with the correct HTTP status code.

bigbenaugust 12-01-09 05:56 PM

So I noticed the other day (I occasionally do software QA) that if you set your thread viewing mode to Newest First, the longer threads come out fine and the database errors go away. But viewing Newest First is so non-intuitive and painful (the Last button takes you to the first post, if it works at all and you end up reading threads all out of order) that it's a tough trade-off.

Just doing a little debugging for y'all.

StupidlyBrave 12-01-09 09:43 PM

Here is a new one. I got this clicking on a new thread created after the upgrade with 0 replies.

Code:

Invalid SQL:

                SELECT
                        post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
                        user.*, userfield.*, usertextfield.*,
                       
                        avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
                       
                       
                        editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
                        editlog.reason AS edit_reason, editlog.hashistory,
                        postparsed.pagetext_html, postparsed.hasimages,
                        sigparsed.signatureparsed, sigparsed.hasimages AS sighasimages,
                        sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight,
                        IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
                        , '' AS field7
                       
                FROM post AS post
                LEFT JOIN user AS user ON(user.userid = post.userid)
                LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
                LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
               
                LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
               
                       
                LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid)
                LEFT JOIN postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 7 AND postparsed.languageid = 1)
                LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 7 AND sigparsed.languageid = 1)
                LEFT JOIN sigpic AS sigpic ON(sigpic.userid = post.userid)
                       
                WHERE post.postid IN ()
                ORDER BY post.dateline;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
                ORDER BY post.dateline' at line 29


StupidlyBrave 12-01-09 10:04 PM


Originally Posted by StupidlyBrave (Post 10069558)
Code:

Database error in vBulletin 4.0.0 Beta 4:

Invalid SQL:

ORDER BY a.contentid, a.attachmentid;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY a.contentid, a.attachmentid' at line 1


The above error still occurs.

StupidlyBrave 12-08-09 08:54 PM


Originally Posted by StupidlyBrave (Post 10097168)
The above error still occurs.

New version, same error.

Code:

Database error in vBulletin 4.0.0 Beta 5:

Invalid SQL:

ORDER BY a.contentid, a.attachmentid;


StupidlyBrave 12-10-09 03:57 PM

Twice now, I noticed that when I clicked on the "last page" in a thread, I was taken to the top of the next-to-last page. Just like before the upgrade.

It is my belief that I would have seen a database error in this use case prior to yesterday (I haven't had time to pay close attention).

Progress?

Tom Stormcrowe 12-10-09 04:52 PM

We think we know what's causing this, and are trying to address it.


All times are GMT -6. The time now is 03:52 PM.


Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.