Database errors
#1
Thread Starter
Chepooka


Joined: Sep 2006
Posts: 1,180
Likes: 1,543
From: South Central PA
Bikes: 2001 Litespeed Arenberg 10 speed; 2015 Giant Escape 2; 2025 Aventon Ramblas
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:
Possibly the select and where clause were separated by some inadvertent punctuation.
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
#2
Out fishing with Annie on his lap, a cigar in one hand and a ginger ale in the other, watching the sunset.
Joined: Mar 2006
Posts: 16,049
Likes: 29
From: South Florida
Bikes: Techna Wheelchair and a Sun EZ 3 Recumbent Trike
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
. “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
#3
Thread Starter
Chepooka


Joined: Sep 2006
Posts: 1,180
Likes: 1,543
From: South Central PA
Bikes: 2001 Litespeed Arenberg 10 speed; 2015 Giant Escape 2; 2025 Aventon Ramblas
A new one:
Possibly a misconfiguration, possibly a connection leak. Connection leaks are no fun to diagnose.
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.
#4
always rides with luggage
Joined: Feb 2005
Posts: 2,109
Likes: 20
From: KIGX
Bikes: 2007 Trek SU100, 2009 Fantom CX, 2012 Fantom Cross Uno, Bakfiets
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
2006 Trek SU100, 2009 Motobecane Fantom CX, 2011 Motobecane Fantom Cross Uno, 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: MX Linux / BunsenLabs Linux / Raspbian / Mac OS 10.6 / Android 7
--Ben
2006 Trek SU100, 2009 Motobecane Fantom CX, 2011 Motobecane Fantom Cross Uno, 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: MX Linux / BunsenLabs Linux / Raspbian / Mac OS 10.6 / Android 7
#5
Rawwrrrrrrrrr!


Joined: Jan 2006
Posts: 2,730
Likes: 3
From: 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)
maybe this stuff should've been beta tested prior to rolling out.....
#6
Elitist Troglodyte
Joined: Jun 2006
Posts: 6,926
Likes: 3
From: Dallas
Bikes: 03 Raleigh Professional (steel)
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"...
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
Stupidity got us into this mess - why can't it get us out?
- Will Rogers
#7
woopwoop
Joined: Apr 2009
Posts: 114
Likes: 0
From: Minneapolis
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?
#8
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.
__________________
Rowan
My fave photo threads on BF
Century A Month Facebook Group
Machka's Website
Photo Gallery
Rowan
My fave photo threads on BF
Century A Month Facebook Group
Machka's Website
Photo Gallery
Last edited by Machka; 11-30-09 at 04:30 AM.
#9
Thread Starter
Chepooka


Joined: Sep 2006
Posts: 1,180
Likes: 1,543
From: South Central PA
Bikes: 2001 Litespeed Arenberg 10 speed; 2015 Giant Escape 2; 2025 Aventon Ramblas
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
#10
always rides with luggage
Joined: Feb 2005
Posts: 2,109
Likes: 20
From: KIGX
Bikes: 2007 Trek SU100, 2009 Fantom CX, 2012 Fantom Cross Uno, Bakfiets
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.
Just doing a little debugging for y'all.
__________________
--Ben
2006 Trek SU100, 2009 Motobecane Fantom CX, 2011 Motobecane Fantom Cross Uno, 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: MX Linux / BunsenLabs Linux / Raspbian / Mac OS 10.6 / Android 7
--Ben
2006 Trek SU100, 2009 Motobecane Fantom CX, 2011 Motobecane Fantom Cross Uno, 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: MX Linux / BunsenLabs Linux / Raspbian / Mac OS 10.6 / Android 7
#11
Thread Starter
Chepooka


Joined: Sep 2006
Posts: 1,180
Likes: 1,543
From: South Central PA
Bikes: 2001 Litespeed Arenberg 10 speed; 2015 Giant Escape 2; 2025 Aventon Ramblas
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
#12
Thread Starter
Chepooka


Joined: Sep 2006
Posts: 1,180
Likes: 1,543
From: South Central PA
Bikes: 2001 Litespeed Arenberg 10 speed; 2015 Giant Escape 2; 2025 Aventon Ramblas
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
#13
Thread Starter
Chepooka


Joined: Sep 2006
Posts: 1,180
Likes: 1,543
From: South Central PA
Bikes: 2001 Litespeed Arenberg 10 speed; 2015 Giant Escape 2; 2025 Aventon Ramblas
#14
Thread Starter
Chepooka


Joined: Sep 2006
Posts: 1,180
Likes: 1,543
From: South Central PA
Bikes: 2001 Litespeed Arenberg 10 speed; 2015 Giant Escape 2; 2025 Aventon Ramblas
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?
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?
#15
Out fishing with Annie on his lap, a cigar in one hand and a ginger ale in the other, watching the sunset.
Joined: Mar 2006
Posts: 16,049
Likes: 29
From: South Florida
Bikes: Techna Wheelchair and a Sun EZ 3 Recumbent Trike
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
. “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




