Article ID: 129391, created on Sep 11, 2016, last review on Sep 11, 2016

  • Applies to:
  • Operations Automation 6.0

Symptoms

Import CSP accounts by means of the script importSubsCSP.py finishes with the output as below:

2016-08-28 06:35:40,279 INFO    Account #1000001, Service Plan #11: HTTP Error 500: Internal Server Error(The operation has timed out)

However the subscription is created in OA properly.

Cause

The script timeout is 100 seconds while subscription provisioning takes more time. See the example in IIS sitelog on MOSI gateway:

2016-08-28 06:30:38,679 [   9] DEBUG POAOpenAPI  : REQUEST:<methodCall>
  <methodName>pem.activateSubscription</methodName>
...
            <name>subscription_id</name>
            <value>
              <i4>1000123</i4>
...
2016-08-28 06:32:18,695 [   9] ERROR aps_endpoint: Office365AppController.importExistingAccount finished by exception System.Net.WebException: The operation has timed out
2016-08-28 06:32:18,710 [   9] ERROR aps_endpoint: System.Net.WebException: The operation has timed out

The timeout error was displayed after 100 seconds. At the same time in /var/log/poa.log on the management node:

Aug 28 06:28:58 mn : INF [openapi:10.16.0.21:2228229 1:5047:f2fdeb90 OpenAPI ]: ==>>> Executing OpenAPI method 'pem.activateSubscription' with parameters: [{ 'account_id' => 1000001,...
...
Aug 28 06:32:52 mn : INF [openapi:10.16.0.21:2228229 1:5047:f2fdeb90 OpenAPI ]: <<<== Method 'pem.activateSubscription' is executed, with status: { 'result' => { 'auto_provisioning_result' => [ ], 'subscription_id' => 1000123, }, 'status' => 0, }
Aug 28 06:32:52 mn : DBG [openapi:10.16.0.21:2228229 1:5047:f2fdeb90 OpenAPI ]: [ OpenAPI::LogMethodCalls::process] <=== EXIT [234.278822]

It is seen that the subscription was created without errors (status 0) and provisioning took 234 seconds.

Resolution

In case the subscription is created in OA successfully, such error can be ignored.

Search Words

HTTP Error 500: Internal Server Error

importSubsCSP.py

The operation has timed out

Office365AppController.importExistingAccount finished by exception System.Net.WebException:

ERROR aps_endpoint: System.Net.WebException: The operation has timed out

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF