Advertise on Bikeforums.net



User Tag List

Results 1 to 15 of 15

Thread: Database errors

  1. #1
    Chepooka StupidlyBrave's Avatar
    Join Date
    Sep 2006
    Location
    South Central PA
    My Bikes
    1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
    Posts
    1,155
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(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.

  2. #2
    The Site Administrator: Currently at home recovering from a couple of strokes,please contact my assistnt admins for forum issues Tom Stormcrowe's Avatar
    Join Date
    Mar 2006
    Location
    South Florida
    My Bikes
    Techna Wheelchair and a Sun EZ 3 Recumbent Trike
    Posts
    15,958
    Mentioned
    9 Post(s)
    Tagged
    4 Thread(s)
    Thank you, added to the tech list.
    on light duty due to illness; please contact my assistants for forum issues. They are Siu Blue Wind, or CbadRider or the other 3 star folk. I am currently at home recovering from a couple of strokes. I am making good progress, happily.


    . “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. #3
    Chepooka StupidlyBrave's Avatar
    Join Date
    Sep 2006
    Location
    South Central PA
    My Bikes
    1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
    Posts
    1,155
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(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.

  4. #4
    derailleurs are overrated bigbenaugust's Avatar
    Join Date
    Feb 2005
    Location
    KIGX
    My Bikes
    2009 Motobecane Fantom CX, 2011 Windsor Shetland mini-velo, 2012 Motobecane Fantom Cross Uno SSCX
    Posts
    1,649
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(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, 2011 Windsor Shetland
    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)
    Current Linux Usage (by machine): Arch: II Debian: II openSUSE: I

  5. #5
    Rawwrrrrrrrrr! wolfpack's Avatar
    Join Date
    Jan 2006
    Location
    Clayton, NC
    My 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,732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe this stuff should've been beta tested prior to rolling out.....
    wolfpackcycles
    skiffrun: Enjoy the ride. Ride for the enjoyment.

  6. #6
    Elitist Troglodyte DMF's Avatar
    Join Date
    Jun 2006
    Location
    Dallas
    My Bikes
    03 Raleigh Professional (steel)
    Posts
    6,887
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(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

  7. #7
    woopwoop
    Join Date
    Apr 2009
    Location
    Minneapolis
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(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?

  8. #8
    Long Distance Cyclist Machka's Avatar
    Join Date
    Jan 2003
    Location
    I ride where the thylacine roamed!
    My Bikes
    Lots
    Posts
    36,706
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(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.

  9. #9
    Chepooka StupidlyBrave's Avatar
    Join Date
    Sep 2006
    Location
    South Central PA
    My Bikes
    1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
    Posts
    1,155
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(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 06:56 AM. Reason: Verified my recollection and updated statement accordingly

  10. #10
    derailleurs are overrated bigbenaugust's Avatar
    Join Date
    Feb 2005
    Location
    KIGX
    My Bikes
    2009 Motobecane Fantom CX, 2011 Windsor Shetland mini-velo, 2012 Motobecane Fantom Cross Uno SSCX
    Posts
    1,649
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(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, 2011 Windsor Shetland
    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)
    Current Linux Usage (by machine): Arch: II Debian: II openSUSE: I

  11. #11
    Chepooka StupidlyBrave's Avatar
    Join Date
    Sep 2006
    Location
    South Central PA
    My Bikes
    1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
    Posts
    1,155
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(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

  12. #12
    Chepooka StupidlyBrave's Avatar
    Join Date
    Sep 2006
    Location
    South Central PA
    My Bikes
    1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
    Posts
    1,155
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(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.

  13. #13
    Chepooka StupidlyBrave's Avatar
    Join Date
    Sep 2006
    Location
    South Central PA
    My Bikes
    1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
    Posts
    1,155
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(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;

  14. #14
    Chepooka StupidlyBrave's Avatar
    Join Date
    Sep 2006
    Location
    South Central PA
    My Bikes
    1990 Trek 1400 7spd; 2001 Litespeed Arenberg 10 speed
    Posts
    1,155
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(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?

  15. #15
    The Site Administrator: Currently at home recovering from a couple of strokes,please contact my assistnt admins for forum issues Tom Stormcrowe's Avatar
    Join Date
    Mar 2006
    Location
    South Florida
    My Bikes
    Techna Wheelchair and a Sun EZ 3 Recumbent Trike
    Posts
    15,958
    Mentioned
    9 Post(s)
    Tagged
    4 Thread(s)
    We think we know what's causing this, and are trying to address it.
    on light duty due to illness; please contact my assistants for forum issues. They are Siu Blue Wind, or CbadRider or the other 3 star folk. I am currently at home recovering from a couple of strokes. I am making good progress, happily.


    . “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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •