<?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[Virtuozzo related task fails with error "Connection to vzagent was closed"]]></title>
<link>http://kb.parallels.com/en/3012</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">Virtuozzo related task fails with error "Connection to vzagent was closed"</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 3012&nbsp;</div>
					<div>Last Review: Jun,26 2009</div>
					<tr>
						<td>Author: </td>
						<td>Vitaly Filatov</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>Vitaly Filatov</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Parallels Operations Automation</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>
					Virtuozzo related task fails with the following error message<br /><span style='font-family: courier new,courier;font-size: 12px;'>ERRCODE 5000 ERRCODE_MINOR -4 VZALib error, code: -4, msg: Connection to vzagent was closed</span><br />&nbsp;
				</div>
				<div class="article-part">
					<h2>Cause</h2>
					Most probably there are some network issues between POA management node and Service VPS of the Virtuozzo node, mentioned in the task.<br />&nbsp;
				</div>
				<div class="article-part">
					<h2>Resolution</h2>
					POA <strong>Management Node</strong> communicates with <strong>Service VPS</strong> (VPS with ID #1 on a registered node) using ssh protocol on port 22/tcp.<br />One may perform the following actions to investigate/fix such kind of issues:<br /><br /><strong>1.</strong> Check connection between the <strong>Management Node</strong> and the <strong>Service VPS</strong>. Execute the following command on the <strong>Management Node</strong>: <div class="commandline"><code>$ telnet &lt;svps_ip&gt; 22</code></div> where svps_ip is IP&nbsp;address of Service VPS. The command above must connect successfully, otherwise - there are network issues to be addressed.<br /><br /><strong>2.</strong> Try to restart <strong>VZAgent</strong> on Virtuozzo server: login to the node as root and run the command:<br /><div class="commandline"><code># vzagent_ctl restart</code></div><br />After that try to resubmit failed task in POA.<br /><br /><strong>3.</strong> If the problem persists, try to login as vzagent0 user from the <strong>Management Node</strong> to the <strong>Service VPS</strong>:<div class="commandline"><code>$ ssh vzagent0@&lt;svps_ip&gt; -i /usr/local/pem/etc/ssh-keys/vem.key.sec</code></div><br />If login fails it could mean that the node was not registered in POA yet or the corresponding RSA key was removed from the <strong>Service VPS</strong>. Keys can be checked in the folder ~vzagent0/.ssh/authorized_keys on the <strong>Service VPS </strong>(one could login there using <em>vzctl enter 1</em> from the Virtuozzo node itself), the file authorized_keys should contain the content of /usr/local/pem/etc/ssh-keys/vem.key.sec.pub file from the <strong>Management Node</strong> as single line.<br /><br />
				</div>
				<div class="article-part">
					<h2>Additional information</h2>
					<strong>1.</strong> It is recommended to have Virtuozzo Tools updated on the hardware node. Please install available updates for Virtuozzo Tools using the utility 'vzup2date'.<br /><br /><strong>WARNING: </strong>Do not upgrade Virtuozzo to the next major version (4.x), it is not supported by POA yet.<br /><br />See the following article for details about vzup2date usage: <a href="http://kb.parallels.comhttp://kb.parallels.com/1170">http://kb.parallels.com/1170</a><br /><br /><strong>2.</strong> To determine IP address of the <strong>Service VPS</strong>, one may execute <em>the command 'vzlist 1' </em>on the Virtuozzo node, also it could be taken from the POA&nbsp;CP:<em> </em><strong>Top</strong> &gt; <strong>Service Director</strong> &gt; <strong>Virtuozzo Manager</strong> &gt; <strong>VPS Hardware Nodes</strong> &gt; (node) &gt; <strong>IP Address of Service VPS</strong><em>.</em><em><br /></em>
				</div>
				<div class="keywords"><strong>Keywords:</strong> vzagent vps</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=3012&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=3012&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' : '3012',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





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

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


]]></description>
<author>Vitaly Filatov</author>
<guid isPermaLink="false">2650 LastUpdated: 2009-06-26 09:33:46</guid>
<pubDate>2007-10-29 23:53:21</pubDate>
</item>
</channel>
</rss>



