Article ID: 6173, created on Mar 20, 2009, last review on Aug 12, 2014

  • Applies to:
  • Plesk Sitebuilder 4.x for Linux/Unix
  • Sitebuilder 3.x for Linux/Unix

Symptoms

A site cannot be published through the Sitebuilder wizard {Sitebuilder -> Sites -> SITE.ALIAS -> Open Site In Wizard -> Publish}.

The following error is shown in the Sitebuilder wizard:

The site has been published with errors.
Cannot update modules data.


You see this in the Sitebuilder logs {Sitebuilder -> Logs}:

System         3/20/2009 5:34:15 PM     admin     91.204.24.201     Cannot update modules data....

Also, this fatal error can be found in the Apache log:

/var/log/apache/error_log
---
FATAL:  emalloc():  Unable to allocate 142401972731904 bytes
FATAL:  emalloc():  Unable to allocate 142401972731904 bytes
FATAL:  emalloc():  Unable to allocate 142401972731904 bytes
FATAL:  emalloc():  Unable to allocate 142401972731904 bytes
---


Cause

The problem is likely caused by an SQLite function (sqlite_escape_string) that causes a memory leak.

Resolution

The problem may be caused by either SQLite or PHP. To resolve the problem, recompile both PHP and SQLite v2.

During recompilation of SQLite v2, do not forget to include support for UTF-8 encoding. For details, see this article: [Info] Sitebuilder fails to publish because of missing SQLite 2.x support

Note: If the publishing location is a virtual environment, you need to double-check its system resources. You may use the following command to check failcounts of Virtuozzo UBC resources:

~# cat /proc/user_beancounters|grep -v " 0$"

If the counter for any limit is not 0, log in to the Hardware Node and increase the limit with the command vzctl.

Additional information

To check the version of SQLite used by the published host, copy the file /usr/local/sitebuilder/resources/publish/check.php (/opt/sitebuilder/resources/publish/check.php for Debian/Ubuntu) from the Sitebuilder server to the domain's root directory on the publishing host and execute the script from the URL:

~# curl -s http://<published site>/check.php | grep ^sqlite
sqlite=2.8.16
sqliteEncoding=UTF-8
~#


For default information about the check.php script, see this article: http://kb.sp.parallels.com/en/1812.

bc0c0e819a57401467405ce3003b8d5e fad6dc0c8e983c17ae70a51ac7952cd0 d055be4fdc562a8ecb8e6d0bf419f946 ea6a61e571a858aa6019ceb068ea403a 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF