<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[Cannot publish site with errors "Cannot update modules data" and "FATAL:  emalloc():  Unable to allocate"]]></title>
<link>http://kb.parallels.com/en/6173</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">Cannot publish site with errors "Cannot update modules data" and "FATAL:  emalloc():  Unable to allocate"</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 6173&nbsp;</div>
					<div>Last Review: Oct,9 2009</div>
					<tr>
						<td>Author: </td>
						<td>Bezborodova Anastasiya</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>Bezborodova Anastasiya</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Sitebuilder 3.x for Linux/Unix</li>
							<li>Sitebuilder 4.x for Linux/Unix</li>
						</ul>
					</div>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Symptoms</h2>
					Site cannot be published through Sitebuilder wizard {Sitebuilder -&gt; Sites -&gt; SITE.ALIAS -&gt; Open Site In Wizard -&gt; Publish}. <br /><br />The following error is shown in Sitebuilder wizard:<br /><br /><span style="font-family: Courier New;">The site has been published with errors.<br />Cannot update modules data.</span><br /><br />in Sitebuilder logs {Sitebuilder -&gt; Logs}:<br /><br /><span class="sb-page-title"><span style='font-family: courier new,courier;font-size: 12px;'></span><span style="color: rgb(51, 102, 255);">System</span> &nbsp;&nbsp;&nbsp; <img height="16" width="16" src="http://kb.parallels.com/Attachments/7467/Images/error.gif" alt="" />&nbsp; &nbsp; 3/20/2009 5:34:15 PM &nbsp;&nbsp;&nbsp; admin &nbsp;&nbsp;&nbsp; 91.204.24.201 &nbsp;&nbsp;&nbsp; Cannot update modules data....</span><br /><br />And this fatal error can be found in Apache log:<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'>/var/log/apache/error_log<br />---<br />FATAL:&nbsp; emalloc():&nbsp; Unable to allocate 142401972731904 bytes<br />FATAL:&nbsp; emalloc():&nbsp; Unable to allocate 142401972731904 bytes<br />FATAL:&nbsp; emalloc():&nbsp; Unable to allocate 142401972731904 bytes<br />FATAL:&nbsp; emalloc():&nbsp; Unable to allocate 142401972731904 bytes<br />---</span><br /><br />
				</div>
				<div class="article-part">
					<h2>Cause</h2>
					The problem is caused by SQLite function <em>sqlite_escape_string</em> that causes memory leak.<br />
				</div>
				<div class="article-part">
					<h2>Resolution</h2>
					It may be caused by either SQLite or PHP. To resolve the problem you should recompile PHP and SQLite v2.<br />During recompilation of SQLite v2 do not forget to include support of UTF-8 encoding. For details see article <a href="http://kb.parallels.comhttp://kb.parallels.com/en/5460">[Info] Sitebuilder fails to publish because of missing SQLite 2.x support</a><br /><br /><strong>Note:</strong>&nbsp; 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:<br /><span style="font-family: Courier New;"><br />~# cat /proc/user_beancounters|grep -v &quot; 0$&quot;</span><br /><br />If counder for some limit is not 0 then login to hardware node and increase the limit with command '<em>vzctl</em>'.<br /><br />
				</div>
				<div class="article-part">
					<h2>Additional information</h2>
					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:<br /><br /><span style="font-family: Courier New;">~# curl -s http://&lt;published site&gt;/check.php | grep ^sqlite<br />sqlite=2.8.16<br />sqliteEncoding=UTF-8<br />~#</span><br /><br />For default about script check.php see article <a href="http://kb.parallels.comhttp://kb.parallels.com/en/1812">http://kb.parallels.com/en/1812</a>.<br />
				</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=6173&ArticleLanguage=en&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=6173&ArticleLanguage=en&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '6173',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<author>Bezborodova Anastasiya</author>
<guid isPermaLink="false">7467 LastUpdated: 2009-10-09 10:44:52</guid>
<pubDate>2009-03-20 07:35:51</pubDate>
</item>
</channel>
</rss>



