script error: IndigoServer got an error: The command exited

Posted on
Wed Jan 24, 2018 2:36 pm
alang_94526 offline
Posts: 250
Joined: Apr 13, 2009

script error: IndigoServer got an error: The command exited

I keep getting this intermittent non-descript errors

script error: IndigoServer got an error: The command exited with a non-zero status. (6)

They don't seem to be aligned with any specific activity and they seem to just happen some of the time, not all.
Any idea how to trace the source of the problem

Posted on
Wed Jan 24, 2018 3:31 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: script error: IndigoServer got an error: The command exi

alang_94526 wrote:
I keep getting this intermittent non-descript errors

script error: IndigoServer got an error: The command exited with a non-zero status. (6)

They don't seem to be aligned with any specific activity and they seem to just happen some of the time, not all.
Any idea how to trace the source of the problem


Can you copy/paste the actual event log lines (maybe like 10 before and after) directly from the event log file?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Jan 24, 2018 3:58 pm
alang_94526 offline
Posts: 250
Joined: Apr 13, 2009

Re: script error: IndigoServer got an error: The command exi

2018-01-24 03:04:37.633 Script Measuring Pool and Solar Temperature Readings
2018-01-24 03:04:37.632 Trigger Pool Temp Measure
2018-01-24 03:04:37.613 Trigger PoolSampleUntilValidDelay
2018-01-24 03:04:37.608 Schedule PoolSampleUntilValid (delayed action)
2018-01-24 03:04:29.000 Sent INSTEON Pool Control - New input analog value request (received: 1023, 1023)
2018-01-24 03:04:27.608 Schedule PoolSampleUntilValid (delayed action)
2018-01-24 03:04:17.609 Trigger PoolSampleUntilValid
2018-01-24 03:03:50.613 Action Collection Get Pool Temperatures
2018-01-24 03:03:41.615 Action Collection Garage Temperature: 65, Fish Temperature: 32
2018-01-24 03:03:30.630 Action Collection Get Fish Temperatures
2018-01-24 03:03:30.629 Action Collection Becky's Wing Temperature 64.0
2018-01-24 03:03:30.628 Action Collection Master Bedroom Temperature 66.0
2018-01-24 03:03:30.627 Action Collection Main House Temperature 69.0
2018-01-24 03:03:00.707 Action Collection Get Thermostat Temperatures
2018-01-24 03:00:00.704 Action Collection Get Temperature Sensor Data
2018-01-24 02:59:02.174 Error script error: IndigoServer got an error: The command exited with a non-zero status. (6)
2018-01-24 02:49:38.650 Action Collection Solar Status: false PoolTempTarget: 90
2018-01-24 02:49:38.648 Action Collection Ambient Temp: 0, Pool Temp: 70 Solar Temp: 70
2018-01-24 02:49:38.645 Script Nothing happened with Solar
2018-01-24 02:49:38.627 Script Processing Pool and Solar Temperature Readings
2018-01-24 02:49:38.626 Trigger Pool Temp Control Solar
2018-01-24 02:49:38.622 Schedule Pool Temp Measure (delayed action)
2018-01-24 02:49:37.674 Action Collection Solar Status: false PoolTempTarget: 90
2018-01-24 02:49:37.672 Action Collection Ambient Temp: 0, Pool Temp: 70 Solar Temp: 70
2018-01-24 02:49:37.647 Script Measuring Pool and Solar Temperature Readings
2018-01-24 02:49:37.646 Trigger Pool Temp Measure

Posted on
Wed Jan 24, 2018 4:19 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: script error: IndigoServer got an error: The command exi

Do you have any Run Shell Script actions in any of those? It might be that the script that's running is failing.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Jan 29, 2018 11:30 am
alang_94526 offline
Posts: 250
Joined: Apr 13, 2009

Re: script error: IndigoServer got an error: The command exi

Sorry for the delay. Following your line of thinking, I'm systematically removing actions/scripts until I see the error going away. Since it takes many hours to fail, it'll take some time.

Posted on
Mon Jan 29, 2018 12:00 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: script error: IndigoServer got an error: The command exi

Jay, I'm wondering if "script error: IndigoServer got an error: The command exited with a non-zero status. (6)" implies that that there's a condition script in the conditions box - something that isn't very common and probably easy to find. This might help narrow it down to being a condition of a trigger, schedule or action and then only a trigger that has a condition script rather than it being any script that exists anywhere, Alang could simply open each item and look for the one that has a condition script and that would seem to reduce how many possible things in Indigo are throwing the error.

Screen Shot 2018-01-29 at 10.57.11 AM.png
Screen Shot 2018-01-29 at 10.57.11 AM.png (15.27 KiB) Viewed 2751 times

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Mon Jan 29, 2018 12:28 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: script error: IndigoServer got an error: The command exi

Colorado4Wheeler wrote:
Jay, I'm wondering if "script error: IndigoServer got an error: The command exited with a non-zero status. (6)" implies that that there's a condition script in the conditions box - something that isn't very common and probably easy to find.


I about 95% sure that script conditions would never return that error because those scripts are run directly within the Indigo server. That error means that some spawned process returned an error, which is why I asked about Run Shell Script.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Jan 29, 2018 5:27 pm
alang_94526 offline
Posts: 250
Joined: Apr 13, 2009

Re: script error: IndigoServer got an error: The command exi

I think I have almost got it down to the action that's creating the error, but need a couple more days to confirm.
I have a script that polls all sensors in my home, one after another every 15 minutes. I've been removing tasks to figure out which if any are causing the error.

I have 3 thermostat status reads (one being a NEST and the other 2 being Venstars).
My script does a status request (ambient temp) from each of them followed by an "insert device state into variable" Action Collection task for each. I had inserted lengthy delays between each action to avoid collisions.
The status requests turn out to be redundant since the thermostats send an insteon update when their ambient temp changes anyway.
I removed the status requests and so far, I'm not seeing any errors.

I'll leave it to run for a bit longer and then I'll figure out if it's the Venstar status read or the Nest status read (or both) that's causing the error.

Posted on
Mon Jan 29, 2018 6:06 pm
alang_94526 offline
Posts: 250
Joined: Apr 13, 2009

Re: script error: IndigoServer got an error: The command exi

Spoke too soon - just got another error :oops:

I'll take a few more days to figure out the real culprit before proclaiming premature victory

Posted on
Thu Feb 08, 2018 12:56 pm
alang_94526 offline
Posts: 250
Joined: Apr 13, 2009

Re: script error: IndigoServer got an error: The command exi

Quick update on this in case anyone has any good ideas, but I took out all triggers and schedules and just let the system run and I see the same error with nothing going on around it (according to the log file). So I turned on debug logging on all my plugins that are enabled and see some interesting stuff going on with the NEST2 plugin in conjunction with the Action Collection plugin.
I get a lot of the following. Note the continual attempts to setup the API followed by a timestamp error, then it retries, lather rinse repeat. Then it gets the script error.
I don't yet know enough about these messages to know what's going on - will continue to dig.
I've included a few examples of the most recent script errors. They all seem similar though the Action Collection errors may just be a red herring.

2018-02-07 16:43:51.658 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:43:51.657 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:43:51.655 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:43:51.652 SQL Logger Debug (u'04:43',)
2018-02-07 16:43:51.651 SQL Logger Debug INSERT INTO variable_history_136602142 (value) VALUES (?);
2018-02-07 16:43:51.651 NEST Home 2 Failed to access API - MAIN THREAD
2018-02-07 16:43:51.650 NEST Home 2 Problem accessing NEST API - try again in 60 seconds
2018-02-07 16:43:51.650 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:43:51.649 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:43:51.648 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:43:20.990 Error script error: IndigoServer got an error: The command exited with a non-zero status. (6)
2018-02-07 16:43:20.987 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:43:20.986 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:43:20.974 NEST Home 2 Setting up the API...
2018-02-07 16:43:20.974 NEST Home 2 Refreshing NEST map from home.nest.com...
2018-02-07 16:42:50.334 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:42:50.333 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:42:19.652 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:42:19.652 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:42:19.651 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:42:19.648 SQL Logger Debug INSERT INTO variable_history_136602142 (value) VALUES (?);
2018-02-07 16:42:19.648 SQL Logger Debug (u'04:41',)
2018-02-07 16:42:19.648 NEST Home 2 Failed to access API - MAIN THREAD
2018-02-07 16:42:19.647 NEST Home 2 Problem accessing NEST API - try again in 60 seconds
2018-02-07 16:42:19.647 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:42:19.646 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:42:19.645 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:41:48.967 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:41:48.967 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:41:48.966 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:41:48.965 NEST Home 2 Refreshing NEST map from home.nest.com...
2018-02-07 16:41:48.964 NEST Home 2 Setting up the API...
2018-02-07 16:41:18.300 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:41:18.300 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:41:18.299 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:40:47.662 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:40:47.662 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:40:47.661 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:40:47.656 SQL Logger Debug INSERT INTO variable_history_136602142 (value) VALUES (?);
2018-02-07 16:40:47.656 SQL Logger Debug (u'04:40',)
2018-02-07 16:40:47.655 NEST Home 2 Problem accessing NEST API - try again in 60 seconds
2018-02-07 16:40:47.655 NEST Home 2 Failed to access API - MAIN THREAD
2018-02-07 16:40:47.654 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:40:47.654 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:40:47.653 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:40:16.941 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:40:16.941 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:40:16.940 NEST Home 2 Refreshing NEST map from home.nest.com...
2018-02-07 16:40:16.939 NEST Home 2 Setting up the API...
2018-02-07 16:39:46.290 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:39:46.289 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:39:46.288 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:39:15.658 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:39:15.657 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:39:15.643 SQL Logger Debug (u'04:38',)
2018-02-07 16:39:15.642 SQL Logger Debug INSERT INTO variable_history_136602142 (value) VALUES (?);
2018-02-07 16:39:15.642 NEST Home 2 Failed to access API - MAIN THREAD
2018-02-07 16:39:15.641 NEST Home 2 Problem accessing NEST API - try again in 60 seconds
2018-02-07 16:39:15.641 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:39:15.640 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:39:15.639 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:38:44.948 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:38:44.947 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:38:44.946 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:38:44.945 NEST Home 2 Refreshing NEST map from home.nest.com...
2018-02-07 16:38:44.944 NEST Home 2 Setting up the API...
2018-02-07 16:38:14.291



NEST Home 2 Setting up the API...
2018-02-07 17:00:15.596 SQL Logger Debug INSERT INTO variable_history_136602142 (value) VALUES (?);
2018-02-07 17:00:15.596 SQL Logger Debug (u'04:59',)
2018-02-07 17:00:15.595 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 17:00:15.595 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 17:00:15.594 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:59:44.267 Error script error: IndigoServer got an error: The command exited with a non-zero status. (6)
2018-02-07 16:59:44.253 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:59:44.252 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:59:13.635 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:59:13.635 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:59:13.631 SQL Logger Debug INSERT INTO variable_history_136602142 (value) VALUES (?);
2018-02-07 16:59:13.631 SQL Logger Debug (u'04:58',)
2018-02-07 16:59:13.630 NEST Home 2 Problem accessing NEST API - try again in 60 seconds
2018-02-07 16:59:13.630 NEST Home 2 Failed to access API - MAIN THREAD
2018-02-07 16:59:13.629 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:59:13.629 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:59:13.628 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:58:42.976 Error script error: IndigoServer got an error: The command exited with a non-zero status. (6)
2018-02-07 16:58:42.964 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:58:42.963 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:58:42.962 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:58:42.961 NEST Home 2 Refreshing NEST map from home.nest.com...
2018-02-07 16:58:42.960 NEST Home 2 Setting up the API...
2018-02-07 16:58:12.302 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:58:12.302 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:58:12.301 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:57:41.640 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:57:41.639 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:57:41.636 SQL Logger Debug (u'04:57',)
2018-02-07 16:57:41.635 SQL Logger Debug INSERT INTO variable_history_136602142 (value) VALUES (?);
2018-02-07 16:57:41.635 NEST Home 2 Problem accessing NEST API - try again in 60 seconds
2018-02-07 16:57:41.635 NEST Home 2 Failed to access API - MAIN THREAD
2018-02-07 16:57:41.634 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:57:41.634 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:57:41.633 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:57:10.948 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:57:10.947 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:57:10.934 NEST Home 2 Refreshing NEST map from home.nest.com...
2018-02-07 16:57:10.933 NEST Home 2 Setting up the API...
2018-02-07 16:56:40.268




WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:36:11.656 SQL Logger Debug INSERT INTO variable_history_136602142 (value) VALUES (?);
2018-02-07 16:36:11.656 SQL Logger Debug (u'04:35',)
2018-02-07 16:36:11.655 NEST Home 2 Failed to access API - MAIN THREAD
2018-02-07 16:36:11.655 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:36:11.654 NEST Home 2 Problem accessing NEST API - try again in 60 seconds
2018-02-07 16:36:11.654 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:36:11.653 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:35:40.326 Error script error: IndigoServer got an error: The command exited with a non-zero status. (6)
2018-02-07 16:35:40.323 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:35:40.323 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:35:40.310 NEST Home 2 Refreshing NEST map from home.nest.com...
2018-02-07 16:35:40.309 NEST Home 2 Setting up the API...
2018-02-07 16:35:09.673 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:35:09.672 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:35:09.659 SQL Logger Debug (u'04:34',)
2018-02-07 16:35:09.658 SQL Logger Debug INSERT INTO variable_history_136602142 (value) VALUES (?);
2018-02-07 16:35:09.658 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:35:09.657 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:35:09.656 Action Collection Error insert timestamp into variable action references variable that no longer exists
2018-02-07 16:34:38.406 SQL Logger Debug (u'false',)
2018-02-07 16:34:38.405 SQL Logger Debug INSERT INTO variable_history_675677057 (value) VALUES (?);
2018-02-07 16:34:37.973 Schedule Motion Sensor Garage Motion Detected Radar (delayed action)
2018-02-07 16:34:37.959 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:34:37.958 WebServer Indigo Touch client connected from 192.168.1.27
2018-02-07 16:34:37.957 WebServer Indigo Touch client connected from 192.168.1.6
2018-02-07 16:34:37.955 NEST Home 2 Failed to access API - MAIN THREAD
2018-02-07 16:34:37.954 NEST Home 2

Posted on
Thu Feb 08, 2018 1:26 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: script error: IndigoServer got an error: The command exi

That looks like it's a NEST error as much as or more than anything else. Two things: one is that there is a newer version of the NEST plugin that may help resolve the issue and two is that there is an upper limit to the API calls and perhaps you are hitting it too often and going over that limit. Just a couple of thoughts.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Thu Feb 08, 2018 1:57 pm
alang_94526 offline
Posts: 250
Joined: Apr 13, 2009

Re: script error: IndigoServer got an error: The command exi

Thanks for the quick feedback. I don't hit the API very often. I set the temperature and some on/off commands a handful of times a day. How large is the call limit? I don't even consciously look for the temperature value to change.
The Indigo Touch Webserver entries in the log file that always seem to be around the error made me think though. I do use the thermostat icons in a control page to display device state. I'm guessing these may be polling at a high rate. That might explain it.

Posted on
Thu Feb 08, 2018 2:41 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: script error: IndigoServer got an error: The command exi

Well, the NEST is pretty chatty. I watch ALL traffic on the NEST because it impacts so many of my own plugins and it will do 10-15 updates every 15 seconds or so. So it's hitting a lot more often than you think, and if you are triggering based on an update like the current temperature then you might be hitting something, I don't think it's the API limit from what you describe but one way to help determine that is if this problem only seems to happen later in the day - if it does that implies API limit reached.

When you say Nest 2, is it Nest Home Version 2 or is actually the old Nest 2?

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Thu Feb 08, 2018 3:14 pm
alang_94526 offline
Posts: 250
Joined: Apr 13, 2009

Re: script error: IndigoServer got an error: The command exi

The Nest is a Gen 2 Nest device.

Posted on
Thu Feb 08, 2018 3:26 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: script error: IndigoServer got an error: The command exi

I was referring to the plugin itself. It's kind of confusing because there have been, if I recall, 4 iterations of the plugin.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Who is online

Users browsing this forum: No registered users and 24 guests