• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Can't Install Applications

Malheiros

New Pleskian
Hello,

I've been introduced to Plesk recently, and enjoying it so far.

However, I haven't been able to install a single application yet. I'm receiving "Error: Installation of phpopenchat at http://***.com/chat failed. Unable to extract archive to directory '/opt/psa/var/apspackages/apscatalogOoTl8A.zipd9231f92-55f0-df/cache'" message.

OS: Ubuntu 14.04.3 LTS
Ver: 12.0.18 Update #64

I would appreciate if you could help me with this issue.

Thanks,
 
You can try to clear APS packages cache: Tools&Settings>Application Vault>Clear cache
And then try to install the application again. Also check related error messages in /var/log/plesk/panel.log
 
Thanks for the reply.

I cleared the app cache but still it's giving me that error. Is there a way to see the log from the plesk gui? or is it viewable only via SSH?
 
Hello again,

I managed to access my server via SSH and this is latest contents of the panel.log:

--- start ---
file: /opt/psa/admin/plib/Smb/Exception/Syntax.php
line: 56
code: 0
trace: #0 [internal function]: Smb_Exception_Syntax::handleError(2, 'ZipArchive::ext...', '/opt/psa/admin/...', 146, Array)
#1 /opt/psa/admin/plib/ZipArchiveWrapper.php(146): ZipArchive->extractTo('/opt/psa/var/ap...')
#2 /opt/psa/admin/plib/CommonPanel/Aps/Cache/Content.php(129): ZipArchiveWrapper->ExtractAllTo('/opt/psa/var/ap...')
#3 /opt/psa/admin/plib/Apspp/Backend/Adapter.php(276): CommonPanel_Aps_Cache_Content->extractAll()
#4 /opt/psa/admin/plib/Apspp/Backend/Adapter.php(53): Apspp_Backend_Adapter->_extractContent(Object(Webspace), Object(BsDomain), 'smf', '505f6df2-3b10-4...', '/opt/psa/tmp/AP...', Object(Apspp_Backend_ProvisioningInfo))
#5 /opt/psa/admin/plib/Apspp/Hosting/Resource/Environment/Site.php(217): Apspp_Backend_Adapter->provision(Object(Apspp_Backend_ProvisioningInfo), 'smf', '505f6df2-3b10-4...')
#6 [internal function]: Apspp_Hosting_Resource_Environment_Site->deployImage('/opt/psa/var/ap...', 'ZIP')
#7 /usr/share/aps_php/aps_php.php(7254): aps_provision_applicationresource_provision(Resource id #91)
#8 /opt/psa/admin/plib/CommonPanel/Aps/ServiceCreationHelper.php(332): APS_Provision_ApplicationResource->provision()
#9 /opt/psa/admin/plib/Smb/Form/Final/Aps/Install.php(313): CommonPanel_Aps_ServiceCreationHelper->installService()
#10 /opt/psa/admin/application/smb/controllers/AppController.php(311): Smb_Form_Final_Aps_Install->processForm()
#11 /opt/psa/admin/application/smb/controllers/AppController.php(245): Smb_AppController->_processInstall(Object(Smb_Form_Final_Aps_Install), Object(APS_Meta_PackageInfo))
#12 /opt/psa/admin/externals/Zend/Controller/Action.php(516): Smb_AppController->installAction()
#13 /opt/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('installAction')
#14 /opt/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#15 /opt/psa/admin/plib/Application/Web.php(38): Zend_Controller_Front->dispatch(NULL)
#16 /opt/psa/admin/htdocs/application.php(15): Plesk\Application_Web->run()
#17 {main}

[2015-09-16 17:27:30] ERR [panel] CommonPanel_Aps_ServiceCreationHelper::installService Unable to extract archive to directory '/opt/psa/var/apspackages/apscatalogbnNIki.zip66ba1675-c8bf-a3/cache'
[16-Sep-2015 17:27:30 Europe/Helsinki] PHP Warning: ZipArchive::extractTo(/opt/psa/var/apspackages/apscatalogbnNIki.zip66ba1675-c8bf-a3/cache/.): failed to open stream: Is a directory; File: /opt/psa/admin/plib/ZipArchiveWrapper.php, Line: 146

[16-Sep-2015 17:27:30 Europe/Helsinki] Exception: PHP Warning: ZipArchive::extractTo(/opt/psa/var/apspackages/apscatalogbnNIki.zip66ba1675-c8bf-a3/cache/.): failed to open stream: Is a directory; File: /opt/psa/admin/plib/ZipArchiveWrapper.php, Line: 146

file: /opt/psa/admin/plib/Smb/Exception/Syntax.php
line: 56
code: 0
trace: #0 [internal function]: Smb_Exception_Syntax::handleError(2, 'ZipArchive::ext...', '/opt/psa/admin/...', 146, Array)
#1 /opt/psa/admin/plib/ZipArchiveWrapper.php(146): ZipArchive->extractTo('/opt/psa/var/ap...')
#2 /opt/psa/admin/plib/CommonPanel/Aps/Cache/Content.php(129): ZipArchiveWrapper->ExtractAllTo('/opt/psa/var/ap...')
#3 /opt/psa/admin/plib/Apspp/Backend/Adapter.php(120): CommonPanel_Aps_Cache_Content->extractAll()
#4 /opt/psa/admin/plib/Apspp/Hosting/Resource/Environment.php(180): Apspp_Backend_Adapter->executeCode(Object(Apspp_Hosting_Context_Site), Object(Webspace), '505f6df2-3b10-4...', 'php', 'configure', Array, Array, false)
#5 [internal function]: Apspp_Hosting_Resource_Environment->executeCode(Resource id #746)
#6 /usr/share/aps_php/aps_php.php(7221): aps_provision_applicationresource_unprovisionforcibly(Resource id #91)
#7 /opt/psa/admin/plib/CommonPanel/Aps/ServiceCreationHelper.php(335): APS_Provision_ApplicationResource->unprovisionForcibly()
#8 /opt/psa/admin/plib/Smb/Form/Final/Aps/Install.php(313): CommonPanel_Aps_ServiceCreationHelper->installService()
#9 /opt/psa/admin/application/smb/controllers/AppController.php(311): Smb_Form_Final_Aps_Install->processForm()
#10 /opt/psa/admin/application/smb/controllers/AppController.php(245): Smb_AppController->_processInstall(Object(Smb_Form_Final_Aps_Install), Object(APS_Meta_PackageInfo))
#11 /opt/psa/admin/externals/Zend/Controller/Action.php(516): Smb_AppController->installAction()
#12 /opt/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('installAction')
#13 /opt/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#14 /opt/psa/admin/plib/Application/Web.php(38): Zend_Controller_Front->dispatch(NULL)
#15 /opt/psa/admin/htdocs/application.php(15): Plesk\Application_Web->run()
#16 {main}

[16-Sep-2015 17:27:30 Europe/Helsinki] PHP Warning: ZipArchive::extractTo(/opt/psa/var/apspackages/apscatalogbnNIki.zip66ba1675-c8bf-a3/cache/.): failed to open stream: Is a directory; File: /opt/psa/admin/plib/ZipArchiveWrapper.php, Line: 146

[16-Sep-2015 17:27:30 Europe/Helsinki] Exception: PHP Warning: ZipArchive::extractTo(/opt/psa/var/apspackages/apscatalogbnNIki.zip66ba1675-c8bf-a3/cache/.): failed to open stream: Is a directory; File: /opt/psa/admin/plib/ZipArchiveWrapper.php, Line: 146

file: /opt/psa/admin/plib/Smb/Exception/Syntax.php
line: 56
code: 0
trace: #0 [internal function]: Smb_Exception_Syntax::handleError(2, 'ZipArchive::ext...', '/opt/psa/admin/...', 146, Array)
#1 /opt/psa/admin/plib/ZipArchiveWrapper.php(146): ZipArchive->extractTo('/opt/psa/var/ap...')
#2 /opt/psa/admin/plib/CommonPanel/Aps/Cache/Content.php(129): ZipArchiveWrapper->ExtractAllTo('/opt/psa/var/ap...')
#3 /opt/psa/admin/plib/Apspp/Backend/UrlMapping.php(15): CommonPanel_Aps_Cache_Content->extractAll()
#4 /opt/psa/admin/plib/Apspp/Backend/Adapter.php(323): Apspp_Backend_UrlMapping::getInstalledFiles(Object(Os_Unix), Object(CommonPanel_Aps_Cache_Content), Object(APS_Meta_URLMappingInfo))
#5 /opt/psa/admin/plib/Apspp/Backend/Adapter.php(209): Apspp_Backend_Adapter->_removeContent(Object(Smb_Plesk_Bridge_Hosting), 'smf', Object(APS_Meta_URLMappingInfo), '505f6df2-3b10-4...')
#6 /opt/psa/admin/plib/Apspp/Hosting/Resource/Environment/Site.php(198): Apspp_Backend_Adapter->unprovision(Object(Webspace), Object(BsDomain), 'smf', '505f6df2-3b10-4...', Object(APS_Meta_URLMappingInfo))
#7 [internal function]: Apspp_Hosting_Resource_Environment_Site->unprovision(Object(stdClass))
#8 /usr/share/aps_php/aps_php.php(7221): aps_provision_applicationresource_unprovisionforcibly(Resource id #91)
#9 /opt/psa/admin/plib/CommonPanel/Aps/ServiceCreationHelper.php(335): APS_Provision_ApplicationResource->unprovisionForcibly()
#10 /opt/psa/admin/plib/Smb/Form/Final/Aps/Install.php(313): CommonPanel_Aps_ServiceCreationHelper->installService()
#11 /opt/psa/admin/application/smb/controllers/AppController.php(311): Smb_Form_Final_Aps_Install->processForm()
#12 /opt/psa/admin/application/smb/controllers/AppController.php(245): Smb_AppController->_processInstall(Object(Smb_Form_Final_Aps_Install), Object(APS_Meta_PackageInfo))
#13 /opt/psa/admin/externals/Zend/Controller/Action.php(516): Smb_AppController->installAction()
#14 /opt/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('installAction')
#15 /opt/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#16 /opt/psa/admin/plib/Application/Web.php(38): Zend_Controller_Front->dispatch(NULL)
#17 /opt/psa/admin/htdocs/application.php(15): Plesk\Application_Web->run()
#18 {main}
--- end ---

I changed the folder/subfolder/file permissons of the apspackages to 777 but I received the same error.

Any ideas?

Thanks,
 
Do you have AppArmor enabled? Do you have enough free disk space?
 
I have enough disk space. AppArmor was enabled but I stopped the service and removed it. Still receiving the same error.

Edit: I restarted the server after removing the AppArmor. Same...

Edit 2: Disk Usage
root@sd-*****:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 478429088 3897788 450205412 1% /
none 4 0 4 0% /sys/fs/cgroup
udev 997436 4 997432 1% /dev
tmpfs 201660 1164 200496 1% /run
none 5120 0 5120 0% /run/lock
none 1008288 12 1008276 1% /run/shm
none 102400 0 102400 0% /run/user
/dev/sda1 184307 35290 135398 21% /boot
 
Last edited:
Back
Top