I'm trying to install OA2 onto a VPS, but not having any success. VPS is currently running several D7 sites, and I can install OA1 OK.
I get this error when about 80% of the way through the install
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: http://#########/install.php?profile=openatrium&locale=en&id=1&op=do StatusText: Internal Server Error ResponseText:
error log says:
PHP Fatal error: Out of memory (allocated 37486592) (tried to allocate 55 bytes) in /home/projects/public_html/includes/database/database.inc on line 2168
last entry in DB registry table is profiles/openatrium/modules/contrib/oa_core/modules/oa_sections/tests/oa_sectionsNodeAccessBase.test
Server info:
Apache 2.2.26
PHP 5.4.22
MySql 5.5.32-cll
VPS is running CENTOS
Server memory shows 700M free (300M in use) so there must be another memory restriction somewhere.
I've increased max_allowed_packet to 32M, but still no success. Any ideas on how to debug this further?
Comments
Comment #1
Bruce_ commentedsame error with 2.x-dev. fails when installing paneliser
PHP Fatal error: Out of memory (allocated 38010880) (tried to allocate 20 bytes) in /home/projects/public_html/includes/database/query.inc on line 393
Comment #2
mpotter commentedWhat is your PHP memory_limit setting? This needs to be set to at least 256M, which might be higher than your default setting for Drupal 7. This is needed because of the larger number of modules being installed by OA2.
Comment #3
Bruce_ commentedPHP memory limit 1024M
about 700Meg free before starting install.
Comment #4
mpotter commentedDon't use the -dev version from drupal.org as the packager for -dev releases is broken.
The 2.09 release version should be fine though. I just did an install with a memory_limit of just 256M. Not sure what else I'd check. I've done a successful install on both Ubuntu and MAMP (MacOSX).
The actual free server memory doesn't really matter. It's the memory from PHP that matters. The error message you got complained at only 30MB or so. Sounds like maybe something else is overriding your php.ini setting. Maybe you can post your actual phpinfo() results from your server. But I can't really help too much with general server config issues I'm afraid.
Comment #5
Bruce_ commentedthis seems fine to me :) every other drupal dist. I've tried works
PHP Version 5.4.22
System Linux 2.6.18-348.4.1.el5.028stab107.1 #1 SMP Wed Apr 17 19:37:50 MSD 2013 i686
Build Date Nov 29 2013 21:54:03
PHP Credits
Core
PHP Version 5.4.22
Directive Local Value Master Value
allow_url_fopen On On
allow_url_include Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
disable_classes no value no value
disable_functions no value no value
display_errors Off Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
enable_post_data_reading On On
error_append_string no value no value
error_log error_log error_log
error_prepend_string no value no value
error_reporting 24567 24567
exit_on_timeout Off Off
expose_php On On
extension_dir /usr/local/lib/php/extensions/no-debug-non-zts-20100525 /usr/local/lib/php/extensions/no-debug-non-zts-20100525
file_uploads On On
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php
log_errors On On
log_errors_max_len 1024 1024
mail.add_x_header Off Off
mail.force_extra_parameters no value no value
mail.log no value no value
max_execution_time 300 300
max_file_uploads 20 20
max_input_nesting_level 64 64
max_input_time 300 300
max_input_vars 1000 1000
memory_limit 1024M 1024M
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 200M 200M
precision 12 12
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
report_memleaks On On
report_zend_debug On On
request_order no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 200M 200M
upload_tmp_dir no value no value
user_dir no value no value
user_ini.cache_ttl 300 300
user_ini.filename .user.ini .user.ini
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
zend.detect_unicode On On
zend.enable_gc On On
zend.multibyte Off Off
zend.script_encoding no value no value
Comment #6
mpotter commentedI'm afraid this is beyond me. I guess you can wait for the 2.10 version to see if it's any different. But that output looks fine to me.
I've done hundreds of OA2 installs, even in classrooms on various people's local Mac, PC, etc, across multiple hosting companies and have not run into this.
Maybe somebody else here will have a clue, but I don't know what else to suggest. Open Atrium isn't doing anything different during the install then any other distribution. It's just a bunch of modules.
Only other last thing I can think of is that it's a PHP 5.4 thing, since most of our testing and experience here is with PHP 5.3. Maybe one of the modules is having a 5.4 issue that breaks the install?
Comment #7
Bruce_ commented5.3.27 gives the same error. will try 2.10 when it arrives
Comment #8
mpotter commentedIf it still happens in 2.10 then I'll need you to try to add some debugging to the installer to pinpoint exactly which module is failing. Nothing I can do here if I can't reproduce it.
Comment #9
Bruce_ commentedsame error with 2.12. panelizer module
Out of memory (allocated 37486592) (tried to allocate 17 bytes) in /home/projects/public_html/oa2/includes/menu.inc on line 355
Comment #10
mpotter commentedI afraid this is a system-specific issue and not something I can help with. The PHP error message you are getting is saying that it is running out of memory at only 37,486,592 (roughly 35MB) and is not approaching your 1024M memory_limit.
A quick search of StackOverflow had issues like this: http://stackoverflow.com/questions/13955914/php-out-of-memory-error-even... that you might research.
But I need to close this ticket here as there is no way for me to reproduce the problem and not something I can fix within OA2 itself.
Comment #11
Bruce_ commentedproblem solved.
RLimitMEM in httpd.conf file caused this.