Search Engine: Elastic

Article ID: 131667, created on Oct 24, 2017, last review on Oct 24, 2017

  • Applies to:
  • Operations Automation

Symptoms

An APS application resource provisioning or upgrade fails with 500 Internal Server Error.

/var/log/pa/core.log shows:

Oct 23 18:01:25.990 : INF [task:299:4 1:18200:7f0c07fff700 SAAS 932231691]: [ HTTP] OUT  endpoint.example.com  [682] "POST /sample/clouds/7a8b5f9f-b58b-43e4-8c7c-51405743f378/upgrade?version=7.1.0-308 HTTP/1.1"  [0] "500 Internal Server Error"  30093ms

/var/log/httpd/error_log on the APS application endpoint server fails:

[Tue Oct 24 18:01:25.452317 2017] [:error] [pid 12818] [client 192.0.2.2:33274] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /usr/share/aps/php/aps/2/apsc.php on line 357

Cause

The default PHP maximum execution timeout configured on the endpoint node is not enough for the operation.

Resolution

Edit /etc/php.ini and set a larger timeout

max_execution_timeout = 120

Reload Apache service:

# service httpd reload

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF