Error caused by a too long script

Posted on
Tue Jan 03, 2017 6:50 am
Juju offline
User avatar
Posts: 108
Joined: Aug 31, 2011
Location: Toulouse - FRANCE

Error caused by a too long script

Hello,

First happy new year to everyone.

Sometimes I have an error caused by a script timeout as shown below.
There is no trigger or schedule fired just before, so I don't know which script or action is the guilty ... Is there a way to identify it ?

Julien

Code: Select all
29 déc. 2016 à 13:37:21
   Error                           because embedded scripts execute sequentially they must complete their execution within 10 seconds.
   Error                           modify the script to exit quickly or convert it to an external file (not embedded).
   Stopping embedded script executor host (pid 863)
   Error                           process (pid 863) failed to quit after polite request -- forcing it to quit now
   Stopped "embedded script executor host"
   Energy Error                    Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 86, in runConcurrentThread
StandardError: ServerCommunicationError -- timeout waiting for response

   Energy Error                    plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Pioneer Receiver Error          Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 474, in runConcurrentThread
StandardError: ServerCommunicationError -- timeout waiting for response

   Pioneer Receiver Error          plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Pool Controller Error           Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 98, in runConcurrentThread
StandardError: ServerCommunicationError -- timeout waiting for response

   Pool Controller Error           plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   IPX800 Error                    "IPX800" IP communication error: ServerCommunicationError -- timeout waiting for response
   IPX800 Error                    silently retrying IP connection every 5 seconds
   Thermostat Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 489, in runConcurrentThread
StandardError: ServerCommunicationError -- timeout waiting for response

   Thermostat Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Téléinfo Error                  Serial port communication error. Retrying to open serial connection.

Posted on
Tue Jan 03, 2017 7:17 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Error caused by a too long script

Do you have any AppleScripts? The fact that you have multiple Indigo plugin hosts timeout out makes me think the problem is actually the Indigo Server is hung up, which normally is caused by an AppleScript (python scripts never run in the Indigo Server process, so those won't cause multiple failures like this).

Image

Posted on
Tue Jan 03, 2017 7:42 am
Juju offline
User avatar
Posts: 108
Joined: Aug 31, 2011
Location: Toulouse - FRANCE

Re: Error caused by a too long script

Embedded AppleScript ? I will double check, but I don't think. All my scripts are Python.

Posted on
Tue Jan 03, 2017 11:19 am
Juju offline
User avatar
Posts: 108
Joined: Aug 31, 2011
Location: Toulouse - FRANCE

Re: Error caused by a too long script

Just checked and I have only 1 embedded AppleScript, but it's executed once a day at 00:00, so it's not the guilty.

Julien

Posted on
Tue Jan 03, 2017 3:42 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Error caused by a too long script

The next time the problem occurs if you are on the Mac check to see what the progress bar on the bottom-left of the Main Window looks like: is it empty or full, and is there any text above it describing what the Indigo Server is trying to do.

Image

Posted on
Wed Jan 04, 2017 2:08 am
Juju offline
User avatar
Posts: 108
Joined: Aug 31, 2011
Location: Toulouse - FRANCE

Re: Error caused by a too long script

It will be difficult as this error occur once a week, sometimes less ...
To help to identify which action causes this error, I have unticked the "Hide exécutions in event log" box for all my triggers and schedules.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron