Article ID: 129940, created on Dec 1, 2016, last review on Dec 1, 2016

  • Applies to:
  • Operations Automation

Symptoms

An order, provisioning a subscription with APS resources included, fails with the error:

The order provisioning has failed.
The last error - "Service Creation Failed: Parallels Operations Automation error #error_code #0, extype_id #1, module_id #Common, Internal error: APSC: Line 1: syntax error.. Service Creation Failed: Parallels Operations Automation error #error_code #0, extype_id #1, module_id #Common, Internal error: APSC: Line 1: syntax error..".

Checking the HTTP logs from the APS Endpoint node of the affected APS application, the following error can be found:

[Wed Nov 30 17:17:47 2016] [error] [client 192.0.2.2] [2] require_once(typeCache/com/parallels/aps/types/pa/account/v1/v1/PAAccount.php): failed to open stream: Permission denied at /usr/share/aps/php/aps/2/types.php:271
[Wed Nov 30 17:17:47 2016] [error] [client 192.0.2.2] PHP Fatal error:  APS\\TypeLibrary::apsAutoloader(): Failed opening required 'typeCache/com/parallels/aps/types/pa/account/v1/v1/PAAccount.php' (include_path=':/usr/share/aps/php') in /usr/share/aps/php/aps/2/types.php on line 271

Not all files in the application directory are owned by apache user, for example:

[root@endpoint ~]# find /var/www/html/testApsApp -exec ls -alh {} \; ... -rwxrw-r-x 1 apache apache 395 Apr 5 2016 paServiceUser.1.0.php -rwxrw-r-x 1 apache apache 730 Apr 5 2016 paServiceUser.1.1.php -rw-r----- 1 root root 332 Nov 24 12:00 PAServiceUser.php

Cause

Incorrect permissions applied on the APS application endpoint directory structure cause provisioning failures.

Resolution

Fix the application directory permissions:

# chown -R apache:apache /var/www/html/testApsApp

where testApsApp is the name of the APS application in question.

Search Words

500 internal server error

failed to open stream: Permission denied

Internal error: APSC: Line 1: syntax error

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF