Articles in this section

Warning displayed in Application instance page: The app was not configured: Non-zero exit status returned by script

Plesk for Windows Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

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"

  • Permissions on the directory /opt/psa/var/apspackages/ were restored as per instructions from article Unable to install APS application: "Unable to change current directory"

  • There are records in psa.smb_apsInstanceErrors table, linked to the APS instance:

    # plesk db -Ne "SELECT id,text FROM smb_apsInstanceErrors WHERE text LIKE '%7f4861ff-90d4-40b4-bd5f-a215e730ec7e%';"
    12 4 2017-07-16T23:12:38+02:00 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

Cause

Error messages are left over in Plesk database's psa.smb_apsInstanceErrors table.

Resolution

  1. Connect to the server via SSH or RDP

  2. Create Plesk database backup

  3. 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%'"

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.