Installation of an application template failed with the following error:
Adding template panel-220.127.116.11 to container 103... ERROR: VZPKG: Command usage error 'cscript.exe "C:\Program Files\Parallels\Containers\bin\vzpkg.vbs" private install 103 "panel-18.104.22.168/20130805.08" "D:\vz\Templates\PANEL-22.214.171.124-20130805.08" "C:\WINDOWS"'
As additional sign of the issue, installation of any Windows component in a container fails too, the event log in a container has the similar record:
Event: Log Name: Setup Source: Microsoft-Windows-WUSA Date: 2013-04-02T14:56:20.625 Event ID: 3 Task: N/A Level: Error Opcode: Info Keyword: N/A User: S-1-5-21-3790975050-1157198631-3485314211-500 User Name: 2813345-1\Administrator Computer: 2813345-1 Description: The Windows update could not be installed because of an error: 3355443746 "" (Command line: "wusa.exe C:\\Windows6.0-KB2772930-x64.msu /quiet /norestart")
There are two points to check in this situation.
The WSH (Windows Script Host) is configured incorrectly on the Hardware Node (HN). As a result, the
.vbsscripts cannot be executed. Since the
vzpkgutility (which is in use for a template installation) is based on
.vbsscripts, it does not work properly and this leads to failure.
- The log files containing information about software distribution have not updated properly in a container. The improvement in handling this situation will be corrected in the scope of the request PCWIN-18940.
To re-register the handler for
.vbsscripts, execute the following command on a hardware node:
cscript //H:Cscript //s
The log files can be removed safely from the container:
net stop WuAuServ rmdir /s C:\Windows\SoftwareDistribution\DataStore\Logs /q net start WuAuServ
To perform these actions on a template installation, you may add the following 3 lines to the end of the pre-install file of the template, e.g.
vz-pre_template_install.cmdof Plesk template:
vzctl exec --skiplock %VPSID% net stop WuAuServ vzctl exec --skiplock %VPSID% "cmd /c rmdir /s C:\Windows\SoftwareDistribution\DataStore\Logs /q" vzctl exec --skiplock %VPSID% net start WuAuServ