CloudFlare installation fails: "Non-zero exit status returned by script"

Created:

2016-11-16 13:04:02 UTC

Modified:

2017-08-16 15:50:16 UTC

0

Was this article helpful?


Have more questions?

Submit a request

CloudFlare installation fails: "Non-zero exit status returned by script"

Applicable to:

  • Plesk 11.x for Linux

Symptoms

CloudFlare application could not be installed, installation fails with the following error:

Error: Installation of CloudFlare for Parallels Plesk at http://example.com/cloudflare failed. Non-zero exit status returned by script. Output stream: 'PHP Notice: Trying to get property of non-object in /usr/local/psa/var/apspackages/apscatalogKnZuWw.zip9ffb8a42-3415-38/cache/scripts/configure.php on line 264

Cause

There are several possible reasons, for example:

  • Incorrect Plesk Panel credentials
  • IP access restriction
  • Incorrect Plesk files permission

Resolution

  1. Enable Plesk debug logging:

    a. Backup original configuration file if you have any customizations:

    # cp /usr/local/psa/admin/conf/panel.ini{,.orig}

    b. Copy configuration file from sample:

    # cp /usr/local/psa/admin/conf/panel.ini.sample /usr/local/psa/admin/conf/panel.ini

    c. Edit /usr/local/psa/admin/conf/panel.ini - uncomment the following strings to enable debug:

    • in [debug] section uncomment enabled = on
    • in [log] section uncomment filter.priority = 7 and show.util_exec = on
  2. Go to Subscriptions > example.com > Applications and try to install CloudFlare.

  3. When installation fails, check panel.log :

    ~# grep PleskLogin.*Exception /usr/local/psa/admin/logs/panel.log

    a. If incorrect Plesk admin password is submitted in CloudFlare settings, you find the following error:

    PleskLoginIncorrectLoginException: Incorrect login or password.

    In this case go to Tools & Settings > Application Vault > My Apps > CloudFlare for Parallels Plesk > Settings and resubmit Plesk Panel credentials.

    b. If access for API requests from localhost is restricted, the error will be like below:

    PleskLoginCPAccessException: According to the current application IP access restriction policy, an administrator can not address ':: 1' for a visit.

    In such case go to Tools & Settings > Restrict Administrative Access , add 127.0.0.1 and ::1 .

    c. Check these files permissions They should be owned by root and have access right 644

    # stat -c "%a %U %G %n" /usr/local/psa/admin/htdocs/enterprise/control/agent.php /usr/local/psa/admin/plib/api-rpc/Agent.php
    644 root root /usr/local/psa/admin/htdocs/enterprise/control/agent.php
    644 root root /usr/local/psa/admin/plib/api-rpc/Agent.php
Have more questions? Submit a request
Please sign in to leave a comment.