Cloudflare installation error: No or invalid host_key (Non-zero exit status returned by script)

Created:

2016-11-16 13:06:10 UTC

Modified:

2017-08-16 17:37:25 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cloudflare installation error: No or invalid host_key (Non-zero exit status returned by script)

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

CloudFlare installation is failing with the error below:

Error: Installation of CloudFlare for Parallels Plesk at http://domain.tld/CloudFlare failed. Non-zero exit status returned by script.

Cause

Host API key is absent or invalid.

Resolution

Enable Plesk debug logs and open http://domain.tld/CloudFlare to see, that CloudFlare installation is failed with the below error:

stdout:
<p>Error Encountered:</p><p><ul><li>No or invalid host_key.</li></ul></p>

"Host API key" in CloudFlare application settings is not valid, and Plesk could not send request to CloudFlare site.Please contact CloudFlare support, in order to get a proper hosting API key.The following link can be referred for the details:

https://support.cloudflare.com/entries/22043542-Why-am-I-getting-an-invalid-HOST-KEY-error-message-

Please use this form to get Host API key from CloudFlare:

https://www.cloudflare.com/certified-partners

Have more questions? Submit a request
Please sign in to leave a comment.