eZ Community » Forums » Install & configuration » Can't install, out of memory
expandshrink

Can't install, out of memory

Can't install, out of memory

Tuesday 11 March 2014 7:51:58 pm - 12 replies

I have been trying to install ezpublish for the last few days. I've tried different templates and I can't figure out what is going on.

I do know the server is running out of memory. PHP had it set to 128M, so I increased it to 1024M and:

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 74366 bytes) in /var/www/localhost/htdocs/ezpublish_legacy/lib/ezutils/classes/ezini.php on line 711
503 Service UnavailableFatal error: The web server did not finish its request

Debug information can be found in the log files normally placed in var/log/* or by enabling 'DebugOutput' in site.ini

Now if I go to the site I get:

TwigBundle:Exception:error500.html.twig

I'm getting tired of deleting and reinstalling mostly because the Zetacomponents package takes 45 minutes to install.

Anyone know why it's using so much dang memory?

Tuesday 11 March 2014 8:13:20 pm

Hi Daniel,

Is this happening while running the setup wizard?

Tuesday 11 March 2014 9:14:48 pm

Yes, it's the last step in the setup wizard (at least I am pretty sure it's the last step.)

Tuesday 11 March 2014 10:18:44 pm

This is really odd. eZ doesn't have a light memory footprint, but 1GB ? Nah. Something is wrong. Could we see you php.ini ?

About reinstalling and the eZ components, why do you delete them ? You can surely delete less files than that, and saves hours, can't you ?

Tuesday 11 March 2014 11:02:13 pm

I tried to reinitialize but none of the scripts would load, they all spit this out:

 

TwigBundle:Exception:error500.html.twig

 

The only thing I could do was start over from scratch. And so after 3 times of doing that, I gave up.

Here's the php.ini with comments removed (this is a new server install with php 5.5):

[PHP]
engine = On
short_open_tag = Off
asp_tags = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 17
disable_functions =
disable_classes =
zend.enable_gc = On
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 1024M
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = On
html_errors = On
variables_order = "EGPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
include_path = ".:/usr/share/php5:/usr/share/php"
doc_root =
user_dir =
enable_dl = Off
file_uploads = On
upload_max_filesize = 2M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
[CLI Server]
cli_server.color = On
[Date]
date.timezone = "Canada/Pacific"
[filter]
[iconv]
[intl]
[sqlite]
[sqlite3]
[Pcre]
[Pdo]
[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=
[Phar]
[mail function]
SMTP = localhost
smtp_port = 25
mail.add_x_header = On
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[Interbase]
ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"
[MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = On
[OCI8]
[PostgreSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Sybase-CT]
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[bcmath]
bcmath.scale = 0
[browscap]
[Session]
session.save_handler = files
session.save_path = "/tmp"
session.use_strict_mode = 0
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatibility_mode = Off
mssql.secure_connection = Off
[Assertion]
[COM]
[mbstring]
[gd]
[exif]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1
[mcrypt]
[dba]
[opcache]
[curl]

Tuesday 11 March 2014 11:05:48 pm

I should mention the only things I changed after installing PHP are variables_order and memory_limit. All other values are the defaults.

Wednesday 12 March 2014 8:42:33 am

Really sorry this is so frustrating. It shound not be.

Could you try setting opcache.revalidate_freq to 0 ? We have an issue when this is enabled, since PHP won't re-include INI files that were just written by the wizard. The bug shows up in vaarious ways, depending on xdebug (either max recursion depth reached, or memory exhausted if xdebug ain't installed).

I really recommend you install xdebug, btw. It should be mandatory in dev).

Modified on Wednesday 12 March 2014 8:45:06 am by Bertrand Dunogier

Wednesday 12 March 2014 9:38:33 pm

Well, changing the opcache.revalidate_freq worked to get it installed, it installed right away and didn't stop working after a couple of minutes with an out of memory error.

However, xdebug reported this:

Notice: Trying to get property of non-object in /var/www/localhost/htdocs/ezpublish_legacy/extension/ezflow/datatypes/ezpage/ezpagetype.php on line 79

Wednesday 12 March 2014 9:42:42 pm

The website still doesn't work.

I followed the directions for the virtualhost setup in Apache, but now I get all sorts of errors:

Fatal error: Class 'XSLTProcessor' not found in /var/www/localhost/htdocs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/XmlText/Converter/Html5.php on line 139

Warning: fopen(var/ezdemo_site/cache/ezfile-tmp.fa7548deb52ed6c23d88036f4fb38cb3): failed to open stream: No such file or directory in /var/www/localhost/htdocs/ezpublish_legacy/lib/ezfile/classes/ezfile.php on line 64

Warning: chmod(): No such file or directory in /var/www/localhost/htdocs/ezpublish_legacy/kernel/classes/clusterfilehandlers/ezfsfilehandler.php on line 214

I am guessing by setting the virtualhost DocumentRoot to /var/www/localhost/htdocs/www as per the directions in the virtualhost setup it makes the other stuff unavailable?

Wednesday 12 March 2014 10:13:46 pm

Hi Daniel, 

Quote from Daniel Frey :

Fatal error: Class 'XSLTProcessor' not found in /var/www/localhost/htdocs/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/XmlText/Converter/Html5.php on line 139

The problem probably is that the xsl PHP extension is not installed on your system (ref requirements doc).

Worth installing it and giving it a new try.

Keep-up, 

Thursday 13 March 2014 12:44:27 am

Argh, I was looking for the requirements and missed that page. I recompiled php and now it's working! Now I just have to figure out how to add articles.

Thursday 13 March 2014 9:42:37 am

Glad to see you made it Daniel.

Concerning Content editing, I can recommend the user doc. Or ask us here happy.gif Emoticon

Cheers,

Thursday 13 March 2014 4:20:19 pm

Well, I figured out why I can't edit anything, the toolbar isn't showing up. I even logged in as admin.

I was trying to edit stuff from the admin interface but it seems that's layout only. I thought things looked different.

Can you think of any reason why the toolbar is not shown? I'm using Firefox 27, so I don't think the browser is an issue.

The toolbar I'm talking about is shown here in this document: http://doc.ez.no/eZ-Publish/User-manual/5.x/The-Website-Interface/User-Guide/Adding-Editing-and-Deleting-Content

For me, it's not shown at all.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from