Application installation to a Container fails with the "Virtuozzo Container is locked by mutex" error.
The issue is caused by timeouts. If a task fails by timeout, it restarts itself but the Container is still locked by installation process.
To resolve the issue, please increase the LONG_TIMEOUT value in
/etc/hspc/hspc.conf from default 1800 to a greater value, say, 3600 (in seconds).
With the timeout increased, the task will wait for installation to complete.
It is required to restart the hspcd service for the changes to come into force:
#service hspcd restart