Cycling and bicycle discussion forums. 
   Click here to join our community Log in to access your Control Panel  


Go Back   > >

Forum Suggestions & User Assistance Have a suggestion for the forums? Need help with the Forums? Post here.

User Tag List

Reply
 
Thread Tools Search this Thread
Old 11-23-09, 10:36 PM   #1
StupidlyBrave 
Chepooka
Thread Starter
 
StupidlyBrave's Avatar
 
Join Date: Sep 2006
Location: South Central PA
Bikes: 1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
Posts: 1,167
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
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.
StupidlyBrave is offline   Reply With Quote
Old 11-23-09, 10:56 PM   #2
Tom Stormcrowe
Out fishing with Annie on his lap, a cigar in one hand and a ginger ale in the other, watching the sunset.
 
Tom Stormcrowe's Avatar
 
Join Date: Mar 2006
Location: South Florida
Bikes: Techna Wheelchair and a Sun EZ 3 Recumbent Trike
Posts: 16,120
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Thank you, added to the tech list.
__________________
. “He who fights with monsters might take care lest he thereby become a monster. And if you gaze for long into an abyss, the abyss gazes also into you.”- Fredrick Nietzsche

"We can judge the heart of a man by his treatment of animals." - Immanuel Kant
Tom Stormcrowe is offline   Reply With Quote
Old 11-25-09, 03:46 PM   #3
StupidlyBrave 
Chepooka
Thread Starter
 
StupidlyBrave's Avatar
 
Join Date: Sep 2006
Location: South Central PA
Bikes: 1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
Posts: 1,167
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
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.
StupidlyBrave is offline   Reply With Quote
Old 11-28-09, 08:00 PM   #4
bigbenaugust 
derailleurs are overrated
 
bigbenaugust's Avatar
 
Join Date: Feb 2005
Location: KIGX
Bikes: 2009 Fantom CX, 2012 Fantom Cross Uno, Bakfiets
Posts: 1,980
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 7 Post(s)
Quote:
Originally Posted by StupidlyBrave View Post
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.
__________________
--Ben
Carrboro Bike Coalition - putting the "bike" in "CARrboro" :)
2011 Motobecane Fantom Cross Uno, 2009 Motobecane Fantom CX, and a Bakfiets
Previously: 2000 Trek 4500 (2000-2003), 2003 Novara Randonee (2003-2006), 2003 Giant Rainier (2003-2008), 2005 Xootr Swift (2005-2007), 2007 Nashbar 1x9 (2007-2011), 2011 Windsor Shetland (2011-2014), 2008 Citizen Folder (2015)
Non-Bike hardware: openSUSE Leap - LinuxMint Debian Edition 2 - Mac OS 10.6 - Android 4.4 - CyanogenMod 13
bigbenaugust is offline   Reply With Quote
Old 11-28-09, 08:21 PM   #5
wolfpack 
Rawwrrrrrrrrr!
 
wolfpack's Avatar
 
Join Date: Jan 2006
Location: Clayton, NC
Bikes: 2009 Specialized Ruby Sworks SL w/SRAM Red; 2006 Fuji Team RC; 2008 Felt F1x; 1980's Lotus Excelle; Mangusta FG/SS; Rossin (yet to be built up)
Posts: 2,728
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
maybe this stuff should've been beta tested prior to rolling out.....
__________________
wolfpackcycles
skiffrun: Enjoy the ride. Ride for the enjoyment.
wolfpack is offline   Reply With Quote
Old 11-29-09, 01:18 PM   #6
DMF 
Elitist Troglodyte
 
DMF's Avatar
 
Join Date: Jun 2006
Location: Dallas
Bikes: 03 Raleigh Professional (steel)
Posts: 6,924
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
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"...

__________________
Stupidity got us into this mess - why can't it get us out?

- Will Rogers
DMF is offline   Reply With Quote
Old 11-29-09, 05:12 PM   #7
luketg08
woopwoop
 
Join Date: Apr 2009
Location: Minneapolis
Bikes:
Posts: 114
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
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?
luketg08 is offline   Reply With Quote
Old 11-30-09, 04:25 AM   #8
Machka 
Long Distance Cyclist
 
Machka's Avatar
 
Join Date: Jan 2003
Location: I ride where the thylacine roamed!
Bikes: Lots
Posts: 45,985
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
Quoted: 203 Post(s)
Quote:
Originally Posted by luketg08 View Post
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.

Last edited by Machka; 11-30-09 at 04:30 AM.
Machka is offline   Reply With Quote
Old 11-30-09, 06:40 PM   #9
StupidlyBrave 
Chepooka
Thread Starter
 
StupidlyBrave's Avatar
 
Join Date: Sep 2006
Location: South Central PA
Bikes: 1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
Posts: 1,167
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Quote:
Originally Posted by Machka View Post
<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.

Last edited by StupidlyBrave; 12-01-09 at 07:56 AM. Reason: Verified my recollection and updated statement accordingly
StupidlyBrave is offline   Reply With Quote
Old 12-01-09, 05:56 PM   #10
bigbenaugust 
derailleurs are overrated
 
bigbenaugust's Avatar
 
Join Date: Feb 2005
Location: KIGX
Bikes: 2009 Fantom CX, 2012 Fantom Cross Uno, Bakfiets
Posts: 1,980
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 7 Post(s)
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.
__________________
--Ben
Carrboro Bike Coalition - putting the "bike" in "CARrboro" :)
2011 Motobecane Fantom Cross Uno, 2009 Motobecane Fantom CX, and a Bakfiets
Previously: 2000 Trek 4500 (2000-2003), 2003 Novara Randonee (2003-2006), 2003 Giant Rainier (2003-2008), 2005 Xootr Swift (2005-2007), 2007 Nashbar 1x9 (2007-2011), 2011 Windsor Shetland (2011-2014), 2008 Citizen Folder (2015)
Non-Bike hardware: openSUSE Leap - LinuxMint Debian Edition 2 - Mac OS 10.6 - Android 4.4 - CyanogenMod 13
bigbenaugust is offline   Reply With Quote
Old 12-01-09, 09:43 PM   #11
StupidlyBrave 
Chepooka
Thread Starter
 
StupidlyBrave's Avatar
 
Join Date: Sep 2006
Location: South Central PA
Bikes: 1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
Posts: 1,167
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
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 is offline   Reply With Quote
Old 12-01-09, 10:04 PM   #12
StupidlyBrave 
Chepooka
Thread Starter
 
StupidlyBrave's Avatar
 
Join Date: Sep 2006
Location: South Central PA
Bikes: 1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
Posts: 1,167
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Quote:
Originally Posted by StupidlyBrave View Post
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 is offline   Reply With Quote
Old 12-08-09, 08:54 PM   #13
StupidlyBrave 
Chepooka
Thread Starter
 
StupidlyBrave's Avatar
 
Join Date: Sep 2006
Location: South Central PA
Bikes: 1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
Posts: 1,167
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Quote:
Originally Posted by StupidlyBrave View Post
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 is offline   Reply With Quote
Old 12-10-09, 03:57 PM   #14
StupidlyBrave 
Chepooka
Thread Starter
 
StupidlyBrave's Avatar
 
Join Date: Sep 2006
Location: South Central PA
Bikes: 1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
Posts: 1,167
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
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?
StupidlyBrave is offline   Reply With Quote
Old 12-10-09, 04:52 PM   #15
Tom Stormcrowe
Out fishing with Annie on his lap, a cigar in one hand and a ginger ale in the other, watching the sunset.
 
Tom Stormcrowe's Avatar
 
Join Date: Mar 2006
Location: South Florida
Bikes: Techna Wheelchair and a Sun EZ 3 Recumbent Trike
Posts: 16,120
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
We think we know what's causing this, and are trying to address it.
__________________
. “He who fights with monsters might take care lest he thereby become a monster. And if you gaze for long into an abyss, the abyss gazes also into you.”- Fredrick Nietzsche

"We can judge the heart of a man by his treatment of animals." - Immanuel Kant
Tom Stormcrowe is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



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