Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2017, 04:44 PM
elsa23's Avatar
elsa23 elsa23 is offline
 
Join Date: Dec 2014
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database error in vBulletin 4.2.3

Hi, I can't load my board, I have this error
Please help me, thanks

Code:
Database error in vBulletin 4.2.3:

Invalid SQL:

				INSERT IGNORE INTO elo4_session
					(sessionhash, userid, host, idhash, lastactivity, location, styleid, languageid, loggedin, inforum, inthread, incalendar, badlocation, useragent, bypass, profileupdate, apiclientid, apiaccesstoken)
				VALUES
					('ef93ee3af8eaead6af57275082d78c20', 1500, '197.2.177.14', '3a2fbe7f957531d6f71e0e0238ce4f4c', 1506537570, '/login.php?do=login', 0, 0, 1, 0, 0, 0, 0, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36', 0, 0, 0, '');

MySQL Error   : The table 'elo4_session' is full
Error Number  : 1114

MySQL Version : 5.5.57-0+deb7u1
Reply With Quote
  #2  
Old 09-27-2017, 05:58 PM
Stingray27 Stingray27 is offline
 
Join Date: Jan 2006
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to empty your sessions table.

How you do that is dependant on of you run your own server, or how you connect to your mysql server to make edits.
Reply With Quote
Благодарность от:
elsa23
  #3  
Old 09-27-2017, 06:48 PM
elsa23's Avatar
elsa23 elsa23 is offline
 
Join Date: Dec 2014
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know how to do it
Reply With Quote
  #4  
Old 09-27-2017, 07:13 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by elsa23 View Post
I don't know how to do it
in phpmyadmin run the query:

PHP Code:
TRUNCATE TABLE elo4_session
That will clear your session table, please note those logged-in at said time will be automatically logged out when you truncate the table.

What you need to find out is WHY the session table is full, it should not be if cron (scheduled tasks) jobs are running properly.

*If you've set your "Session Timeout" too high it will cause this to happen and it can hinder proper use of your site - you can check via:
AdminCP > Settings > Options > Cookies and HTTP Header Options
Check the very first setting:
Quote:
Session Timeout
This is the time in seconds that a user must remain inactive before their login session expires. This setting also controls how long a user will remain on Who's Online after their last activity.
^ Is it set to 900 or have you changed it from the default? You cannot set this very high without a custom plugin in place to sort the issue. For example if you wanted your users to stay logged in for 7 days, that is tooooo high it will cause issues. I'd say keep them logged in no more than 1hr tops and so you know the default 900 setting = 15mins so 1800 = 30mins and so on.
Reply With Quote
2 благодарности(ей) от:
Brandon Sheley, elsa23
  #5  
Old 09-27-2017, 07:40 PM
elsa23's Avatar
elsa23 elsa23 is offline
 
Join Date: Dec 2014
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much, that solve it

Session Timeout is set to 3600
but i have a "AhrefsBot" that is always connected with a multitude of activities, i don't know how to remove it
After i have resolved my session issue with your query, i have already 10 AhrefsBot in who is online and will increases every minute
Reply With Quote
2 благодарности(ей) от:
Brandon Sheley, TheLastSuperman
  #6  
Old 09-27-2017, 07:47 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by elsa23 View Post
Thank you very much, that solve it

Session Timeout is set to 3600
but i have a "AhrefsBot" that is always connected with a multitude of activities, i don't know how to remove it
After i have resolved my session issue with your query, i have already 10 AhrefsBot in who is online and will increases every minute
That bot is said to follow the "rules" when it comes to being block-able via robots.txt:
http://help.ahrefs.com/about-ahrefs/...-via-robotstxt

So block it in that file, give it a little time then check. Malicious/Spambots typically do not follow the rules set forth in robots.txt / Only legitimate bots of constructive use follow the rules of robots.txt per say. If the bot is crawling your site though for some form of online search (such as Googlebots) then you should leave it active and allow it to crawl your site, crawlers are usually fine and do not cause harm and if you fixed the session timeout then the session table should not be filling up again anytime soon!
Reply With Quote
  #7  
Old 10-01-2017, 02:08 PM
rekha rekha is offline
 
Join Date: Jan 2012
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

after upgrade to 4.2.5 spam o matic not supported

is any one knows the solution pls let me know.
Reply With Quote
  #8  
Old 10-04-2017, 08:56 AM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rekha View Post
after upgrade to 4.2.5 spam o matic not supported

is any one knows the solution pls let me know.
off topic for the thread but...

question and answer is very good is done well :up:
Reply With Quote
  #9  
Old 10-04-2017, 11:26 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can also change your max_heap_table_size. I wouldn't increase it much but it will help. This would be done in my.cnf.
Reply With Quote
Благодарность от:
TheLastSuperman
  #10  
Old 10-19-2017, 12:56 PM
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
Location: www.webmastersun.com
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by elsa23 View Post
Hi, I can't load my board, I have this error
Please help me, thanks

Code:
Database error in vBulletin 4.2.3:

Invalid SQL:

				INSERT IGNORE INTO elo4_session
					(sessionhash, userid, host, idhash, lastactivity, location, styleid, languageid, loggedin, inforum, inthread, incalendar, badlocation, useragent, bypass, profileupdate, apiclientid, apiaccesstoken)
				VALUES
					('ef93ee3af8eaead6af57275082d78c20', 1500, '197.2.177.14', '3a2fbe7f957531d6f71e0e0238ce4f4c', 1506537570, '/login.php?do=login', 0, 0, 1, 0, 0, 0, 0, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36', 0, 0, 0, '');

MySQL Error   : The table 'elo4_session' is full
Error Number  : 1114

MySQL Version : 5.5.57-0+deb7u1
Faced this problem with my forum in the past because sometimes our forum has been overload with high traffic and sesstion table is full and mysql could not handle them.

The solution is you can enable Memcached on your server and use it for your vbulletin by enabling it in config.php from vbulletin.

In the other hands, you can use session memcached to manage session with memcached, that will not make your db overload sometimes which can cause that problem above.

Hope that helped.
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 03:42 PM.


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.04691 seconds
  • Memory Usage 2,278KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (6)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete