Symptoms
-
On the application instance page in Domains > example.com > Applications > exampleApp one of the following warnings is displayed:
Warning: The app was not configured: Non-zero exit status returned by script. Output stream: 'Unable to change current directory to /opt/psa/var/apspackages/7f4861ff-90d4-40b4-bd5f-a215e730ec7e/cache/scripts '. Error stream: 'Unable to change current directory to /opt/psa/var/apspackages/7f4861ff-90d4-40b4-bd5f-a215e730ec7e/cache/scripts '.
Warning: The app was not configured: Non-zero exit status returned by script. Output stream: 'Caught exception: boost::filesystem::directory_iterator::construct: Permission denied: "/usr/local/psa/var/apspackages/7f4861ff-90d4-40b4-bd5f-a215e730ec7e/cache/scripts"
Cause
Error messages are left over in Plesk database's psa.smb_apsInstanceErrors
table.
Resolution
-
Delete the leftover error records from the database using the application ID mentioned in the warning:
# plesk db "DELETE FROM smb_apsInstanceErrors WHERE text LIKE '%7f4861ff-90d4-40b4-bd5f-a215e730ec7e%'"