Search

Language:  
Search for:

Available article translations:

Virtuozzo-related task fails with error "Connection to vzagent was closed"

APPLIES TO:
  • Parallels Operations Automation

Symptoms

A Virtuozzo-related task fails with the following error message:

ERRCODE 5000 ERRCODE_MINOR -4 VZALib error, code: -4, msg: Connection to vzagent was closed

The Virtuozzo Node in question operates in compat mode.

Cause

Most likely, there are network issues between the POA Management Node and the Service Container of the Virtuozzo Node.
 

Resolution

The POA Management Node communicates with the Parallels Virtuozzo Containers server, which is working in compat mode through the Service Container (container with ID #1 on a registered Node) using the SSH protocol on port 22/TCP.
One may perform the following actions to investigate/fix such issues:

1. Check the connection between the Management Node and the Service Container. Execute the following command on the POA Management Node:
# telnet <SCT_IP> 22

Replace "SCT_IP" with the IP address of the Service Container on the Virtuozzo server in question. The command must connect successfully. If it does not, then there are network issues that need to be addressed.

2. Try to restart VZAgent on the Virtuozzo server: log in to the Node as "root" and run the command:
# vzagent_ctl restart
# vzagent_compat_ctl restart

After that, try to resubmit the failed task in POA.

3. If the problem persists, try to log in to the Service Container from the POA Management Node as the user vzagent0:
$ ssh vzagent0@<SCT_IP> -i /usr/local/pem/etc/ssh-keys/vem.key.sec

If login fails, it may indicate that the Node has not been registered in POA yet, or that the corresponding RSA key has been removed from the Service Container. Keys can be checked in the folder ~vzagent0/.ssh/authorized_keys on the Service Container (you can log in to it using vzctl enter 1 from the Virtuozzo Node itself). The file authorized_keys should contain the content of the /usr/local/pem/etc/ssh-keys/vem.key.sec.pub file from the Management Node as single line.

Additional Information

1. It is recommended that you have the most up-to-date version of Virtuozzo Tools installed on the Hardware Node. Please install available updates for Virtuozzo Tools using the utility vzup2date.

See the following article for details about vzup2date usage: http://kb.sp.parallels.com/1170

2. To determine the IP address of the Service VPS, you may execute the command vzlist 1 on the Virtuozzo Node. You can also do this via the POA CP: Top > Service Director > Virtuozzo Manager > VPS Hardware Nodes > (Node) > IP Address of Service VPS.



64cafed7cc15bceb3b240d8c2f92dce3 caea8340e2d186a540518d08602aa065 bb8d08f557ff7e4b314b6bbaa846b034

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No
 
 
 
 
 
 
Desktop Virtualization
- Parallels Desktop 9 for Mac
- Parallels Transporter
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac Enterprise Edition
- Parallels Management-Mac for Microsoft SCCM
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0 Beta
- Parallels Virtuozzo Containers
Automation
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Value-added Services for Hosters
- Parallels Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification