Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-04-2008, 05:09 AM
AmbitiousOne AmbitiousOne is offline
 
Join Date: May 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default What does this mean?

I've been averaging a lot of database errors lately, in the last month. I consistently get this message -

Quote:
Database error in vBulletin :

mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11)
/home/mysite/public_html/mysite/forums/includes/class_core.php on line 274

MySQL Error :
Error Number :
Date : Wednesday, April 30th 2008 @ 08:35:19 PM
Script : http://mysite.com/misc.php?do=cybstats
Referrer : http://mysite.com/misc.php?do=cybstats
IP Address : xxx.xxx.xxx.xxx
Username :
Classname : vB_Database
Not sure what it means, I blocked out some of the info just in case it would be bad to know my site or the ip address (person who recieved the error).

Well yea, I've been getting a lot of database error messages through email.


Here's another one. Now I'm not running any queries or anything, does the server, vb run queries on its own...because I'm getting kinda scared if someone is manually running queries and it's not me doing it.

Quote:
Database error in vBulletin 3.6.9:

Invalid SQL:

SELECT *
FROM vb_session
WHERE sessionhash = 'f245e72410c445375109a5de4cae3bb4'
AND lastactivity > 1209607989
AND idhash = 'cd2b5af35d4a3cbbcf91f302da06ef9c';

MySQL Error : Lost connection to MySQL server during query
Error Number : 2013
Date : Wednesday, this date @ 08:32:57 PM
Script : mysite.com
Referrer :
IP Address : IP address xxxx.x.xx.xx.x
Username :
Classname : vB_Database
Reply With Quote
  #2  
Old 05-04-2008, 05:30 AM
royo royo is offline
 
Join Date: Jan 2005
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can do some reading about it here: http://dev.mysql.com/doc/refman/5.0/en/gone-away.html.
My guess is, your server is too stressed out from usage, but it could be a lot of things.
Reply With Quote
  #3  
Old 05-04-2008, 03:40 PM
motowebmaster motowebmaster is offline
 
Join Date: Feb 2006
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vb does do many queries.

I've experienced several "mysql gone away" error situations, that ended up being linked to either improper code or something that didn't function properly after an upgrade or chance.

Print out the page that lists your installed plugins, and then start disabling/un-installing them one by one until the errors stop. Since the first error message is associated with the cybstats plugin I'd start there.

Keep disabling until the error messages stop. The culprit could be an improper configuration, or something that requires additional server configuration to properly support.

Hope this helps,
Reply With Quote
  #4  
Old 05-04-2008, 05:57 PM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cyb has some of the best/well programed plugins here. I doubt its his. Your probally on a shared server or a mis configured dedicated server.

If you are on a shared server its either overloaded or you just have way to many plugins/mods running.

If you are on a dedicated server ask for a server optimization over at vb.com
Reply With Quote
  #5  
Old 05-05-2008, 04:06 AM
AmbitiousOne AmbitiousOne is offline
 
Join Date: May 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I only have 9 mods.

My host is - bluehost.com

--------------- Added [DATE]1209964053[/DATE] at [TIME]1209964053[/TIME] ---------------

Quote:
Originally Posted by motowebmaster View Post
vb does do many queries.

I've experienced several "mysql gone away" error situations, that ended up being linked to either improper code or something that didn't function properly after an upgrade or chance.

Print out the page that lists your installed plugins, and then start disabling/un-installing them one by one until the errors stop. Since the first error message is associated with the cybstats plugin I'd start there.

Keep disabling until the error messages stop. The culprit could be an improper configuration, or something that requires additional server configuration to properly support.

Hope this helps,
Thanks, I'll look into it.
Reply With Quote
  #6  
Old 05-05-2008, 04:11 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Chances are good that the host is experiencing problems and its out of your hands.

You can either sit there and take crappy hosting, or you can go find a hosting company that works.
Reply With Quote
  #7  
Old 05-05-2008, 06:14 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

http://www.vbulletin.com/docs/html/t...mysql_goneaway
http://www.vbulletin.com/docs/html/cantconnect
Reply With Quote
  #8  
Old 05-13-2008, 11:01 PM
snunhuck snunhuck is offline
 
Join Date: May 2007
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use an IP address (127.0.0.1) in config.php instead of localhost if database is on same server
Reply With Quote
  #9  
Old 05-13-2008, 11:07 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The first error almost certainly means mysql was not running, so vb could not connect to it.

The second error could be a low timeout setting in mysql.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 05:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04388 seconds
  • Memory Usage 2,242KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete