Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

Cannot publish site with errors "Cannot update modules data" and "FATAL: emalloc(): Unable to allocate"

Article ID: 6173 
Last Review: Oct,9 2009
Author: Bezborodova Anastasiya
Last updated by: Bezborodova Anastasiya APPLIES TO:
  • Sitebuilder 3.x for Linux/Unix
  • Sitebuilder 4.x for Linux/Unix

Symptoms

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

The following error is shown in Sitebuilder wizard:

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


in Sitebuilder logs {Sitebuilder -> Logs}:

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

And this fatal error can be found in 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 caused by SQLite function sqlite_escape_string that causes memory leak.

Resolution

It may be caused by either SQLite or PHP. To resolve the problem you should recompile PHP and SQLite v2.
During recompilation of SQLite v2 do not forget to include support of UTF-8 encoding. For details see 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 counder for some limit is not 0 then login to hardware node and increase the limit with command 'vzctl'.

Additional information

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

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


For default about script check.php see article http://kb.parallels.com/en/1812.


Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac
- Parallels Desktop 4 for Windows & Linux
- Parallels Workstation Extreme
- Parallels Solution for Windows 7
Server Virtualization
- Parallels Server for Mac
- Parallels Server 4 Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
More Products