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

Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2017, 01:08 PM
Orange20 Orange20 is offline
 
Join Date: May 2017
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Fatal error upgrading from 3.8.10 to 3.8.11

Hello all.

ref: https://www.vbulletin.com/forum/foru...8-10-to-3-8-11

I use 3.8.10 completely vanilla, no mods or addons. I'm receiving the following error on Step 4) Visitor Message IPv6 Updates when upgrading form 3.8.10 to 3.8.11.

Quote:
"Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 608 bytes) in /PATH-REMOVED/class_core.php on line 1245"
Our PhP memory settings are fine, we're running 5.6.30 and MySQL 5.5.29, and our host had the following to say:

Quote:
"I've created a test php script under the site which intentionally causes an out of memory error. When it is run, the following error is generated:

PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1073741825 bytes)

This is running out of memory at 1GB which indicates that the problems you are having during the VB update must be caused by VB setting the memory limit itself.

There are several places in the code that I can see the memory limit being checked/set, but I couldn't comment on which script it is that is causing this issue. You or your developer would need to investigate this further."
I've tested the upgrade on 3 diff. servers now, all varying configurations. On a local server here I upped all the memory allocations really high, as referenced in the sreenshot attached to this post. Still the same error message on Step 4) Visitor Message IPv6 Updates.

Something somewhere is overriding our memory limits. I've been using vBulletin since 2005 and never had a single problem upgrading. This is the first time I've encountered a problem and I'd really appreciate some advice.

Thanks very much in advance.
Attached Images
File Type: jpg image_69547.jpg (25.0 KB, 0 views)
Reply With Quote
  #2  
Old 05-13-2017, 02:37 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

134217728 is 128M.

There are quite a few places that set the limit to 128M
However, they are all witten such that they should only do that if the current limit is less than 128M.

Basically like this ;

PHP Code:
if (($memory_limit ini_size_to_bytes(@ini_get('memory_limit'))) < 128 1024 1024 AND $memory_limit 0)
{
    @
ini_set('memory_limit'128 1024 1024);

So unless thats reporting some really odd low value, they should never kick in.
Reply With Quote
  #3  
Old 05-13-2017, 03:35 PM
Orange20 Orange20 is offline
 
Join Date: May 2017
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul M. Thank you very much for your comments. I have tested further and these are my results.

1 single machine.

PhP Max Post Size = 1.00 GB
PHP Maximum Upload Size = 1.00 GB
PHP Memory Limit = 1.00 GB
MySQL Packet Size = 512.00 MB

Upgrading from 3.8.10 to 4.2.5 = Success!
Upgrading from 3.8.10 to 3.8.11 = Fatal error: Allowed memory size of 134217728 bytes exhausted

3.8.10 to 4.2.5 skips 3.8.11 completely. Does this evidence suggest there may be an error with the upgrade coding in 3.8.11 ?
Reply With Quote
  #4  
Old 05-13-2017, 10:31 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

Not really, no.

You are running out of memory while the upgrade tries to run.
I can only guess that you have a huge number of visitor messages.

Even then, I cannot really see why you would run out of memory.
(Nor does it explain why your memory seems to be running out at 128M).
Reply With Quote
  #5  
Old 05-14-2017, 11:02 AM
Orange20 Orange20 is offline
 
Join Date: May 2017
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We do indeed have a very large forum. With pictures in the file system our database is around 7.2GB. We have around 200k threads and 7.3mil posts. There is nothing in our server config that would limit 128MB. As I mentioned we upped the limits. The limit is somehow being invoked within the VB code.

I'd really like to stick with 3.x rather than upgrading to 4.x. The error is generated when working on vbvisitormessage and vbipdata tables.

Can you offer any suggestions on how we can overcome this issue?

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

Paul M.

Please forgive the double-post.

I have successfully upgraded from 3.8.10 to 3.8.11 using our database on a test server following this process.

/includes/class_xml.php

Find:

Code:
ini_set('memory_limit', 128 * 1024 * 1024);
Replace with:

Code:
ini_set('memory_limit', '-1');
Thanks again for your advice. Your comments above about ini_set inspired this solution.

Do you think it OK to upgrade the live server in this way? If so, would it be sensible to revert the code changes once the upgrade has completed?
Reply With Quote
  #6  
Old 05-15-2017, 12:55 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

That change is perfectly fine to be left as is, you could equally just have commented it out.

I think I can see why it gets triggered, but there isnt anything that can be done about it now.
Reply With Quote
  #7  
Old 05-15-2017, 05:01 PM
Orange20 Orange20 is offline
 
Join Date: May 2017
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No worries Paul M.

Just curious, why were IP storage changes made?
Reply With Quote
  #8  
Old 05-15-2017, 08:53 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

For IPv6.
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 08:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04138 seconds
  • Memory Usage 2,257KB
  • Queries Executed 14 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete