Page 1 of 2

ServerCommunicationError exceptions

PostPosted: Wed Feb 28, 2024 7:39 am
by SteveFyfe
[MODERATOR NOTE]: moved from the Alexa forum to a more appropriate forum since the issue is not specific to Alexa but rather indicates some kind of plugin to server communication error.

Is anyone else seeing these errors in the log? They happen frequently for me -- 100 times over the last week, but only sporadically before that. I'm not sure if the problem is in the plugin or in my network setup.

Code: Select all
2024-02-23 17:20:54.414   Alexa Error   Error in plugin execution runConcurrentThread:

  File "plugin.py", line 138, in runConcurrentThread
  File "plugin.py", line 166, in _update_reflector_and_utd_status
type: ServerCommunicationError -- timeout waiting for response

2024-02-23 17:20:54.414   Alexa Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Re: Alexa Error in runConcurrentThread

PostPosted: Wed Feb 28, 2024 10:11 am
by jay (support)
Those errors indicate that the plugin is having difficulties talking to the server. This often means that you have another plugin which is behaving badly and is dominating the connection to the server, so the server doesn't get a chance to reply before the timeout period. Look for other errors and/or excessive log information in the event log that happen around the same time that might help narrow down where to look. You can also disable any 3rd party plugins to see if you can figure it out that way - I'd start with any doing network communication.

I suppose it's also possible that the Indigo Server is having issues keeping your reflector connected, since the error is occurring when the plugin is trying to get the reflector status (an active reflector is required to use Alexa). Look for other reflector-related errors in the Event Log to see if it is having difficulties maintaining the connection. This could happen if there are some network configuration issues on your local network including router misconfiguration.

Re: Alexa Error in runConcurrentThread

PostPosted: Wed Feb 28, 2024 11:41 am
by SteveFyfe
Thanks Jay. More investigation needed. On the hunt now.....

Re: Alexa Error in runConcurrentThread

PostPosted: Wed Feb 28, 2024 12:53 pm
by ryanbuckner
I'm also seeing this since upgrading to 2023.2. Taking Jay's advice, I do see other plugins having issues at the same time:

The below indicates that. Hue, RFXCOM, Rachio, Alexa, and Sonos plugins fails all around the same time. All have been updated to their latest versions in the plugin store.

Code: Select all
Feb 28, 2024 at 6:46:02 AM
   Rachio Sprinklers Error         Unknown error:
Traceback (most recent call last):
  File "plugin.py", line 353, in _update_from_rachio
    dev.replacePluginPropsOnServer(props)
RuntimeError: ServerCommunicationError -- timeout waiting for response

   Alexa Error                     Error in plugin execution runConcurrentThread:

  File "plugin.py", line 138, in runConcurrentThread
  File "plugin.py", line 166, in _update_reflector_and_utd_status
type: ServerCommunicationError -- timeout waiting for response

   Alexa Error                     plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Hue Lights Error               
Traceback (most recent call last):
  File "plugin.py", line 6627, in parseAllHueLightsData
    device = indigo.devices[deviceId]
             ~~~~~~~~~~~~~~^^^^^^^^^^
RuntimeError: ServerCommunicationError -- timeout waiting for response
   RFXCOM Error                    Error in plugin execution runConcurrentThread:

  File "plugin.py", line 326, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 2407, in startComm
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 871, in processPacket
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 47, in _finalizeStatesChanges
type: ServerCommunicationError -- timeout waiting for response

   RFXCOM Error                    plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Sonos Error                     'ServerCommunicationError -- timeout waiting for response' in module 'Sonos.py', method 'SSDPProcess [2024.0.4]'
   Failing statement [line 276]: 'dev = indigo.devices[int(deviceId)]'
   Sonos Error                     'ServerCommunicationError -- timeout waiting for response' in module 'Sonos.py', method 'checkEvents [2024.0.4]'
   Failing statement [line 549]: 'dev = indigo.devices[item]'

  File "plugin.py", line 107, in runConcurrentThread
type: ServerCommunicationError -- timeout waiting for response

   Hue Lights Error               
Traceback (most recent call last):
  File "plugin.py", line 7224, in parseAllHueGroupsData
    device = indigo.devices[deviceId]
             ~~~~~~~~~~~~~~^^^^^^^^^^
RuntimeError: ServerCommunicationError -- timeout waiting for response
   RFXCOM Error                    Error in plugin execution runConcurrentThread:

  File "plugin.py", line 326, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 2407, in startComm
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 871, in processPacket
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 47, in _finalizeStatesChanges
type: ServerCommunicationError -- timeout waiting for response

   RFXCOM Error                    plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Hue Lights Error               
Traceback (most recent call last):
  File "plugin.py", line 6627, in parseAllHueLightsData
    device = indigo.devices[deviceId]
             ~~~~~~~~~~~~~~^^^^^^^^^^
RuntimeError: ServerCommunicationError -- timeout waiting for response
   Sonos Error                     'ServerCommunicationError -- timeout waiting for response' in module 'Sonos.py', method 'socoSubTest [2024.0.4]'
   Failing statement [line 661]: 'dev = indigo.devices[item]'
   Indigo Cocoa client disconnected (173.79.120.204)


Re: Alexa Error in runConcurrentThread

PostPosted: Thu Feb 29, 2024 9:54 am
by jay (support)
Something is definitely tying the server up. I'd recommend disabling 3rd party plugins to see if one of them is having some kind of problem. Then you can re-enable them one at a time or in groups to see if you can identify the one causing the issue.

Re: Alexa Error in runConcurrentThread

PostPosted: Sat Mar 02, 2024 8:17 pm
by ryanbuckner
I've narrowed this down to either:

1) The Rachio plugin
2) The Fantastic Weather Plugin

- or -

3) A number of plugins running concurrently regardless of the plugin

Troubleshooting this is hard because the errors only happen twice a day or so when they happen

Re: Alexa Error in runConcurrentThread

PostPosted: Thu Mar 07, 2024 2:43 pm
by ryanbuckner
I may have narrowed it down to Rachio and Alexa

Code: Select all
Mar 7, 2024 at 3:17:10 PM
   Rachio Sprinklers Error         Unknown error:
Traceback (most recent call last):
  File "plugin.py", line 353, in _update_from_rachio
    dev.replacePluginPropsOnServer(props)
RuntimeError: ServerCommunicationError -- timeout waiting for response

   Alexa Error                     Error in plugin execution runConcurrentThread:

  File "plugin.py", line 138, in runConcurrentThread
  File "plugin.py", line 166, in _update_reflector_and_utd_status
type: ServerCommunicationError -- timeout waiting for response

   Alexa Error                     plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)



Re: Alexa Error in runConcurrentThread

PostPosted: Thu Mar 07, 2024 3:31 pm
by FlyingDiver
Well, that Rachio error is just saying that it's trying to send a device update to the server, which is timing out. So probably not a Rachio error. SOMETHING is causing the server to not respond, but I don't think it's that plugin.

Re: Alexa Error in runConcurrentThread

PostPosted: Fri Mar 08, 2024 7:13 am
by ryanbuckner
I disabled Rachio so we'll see if it's still happening

Re: Alexa Error in runConcurrentThread

PostPosted: Fri Mar 08, 2024 5:02 pm
by ryanbuckner
Still happening, it's not Rachio

Re: Alexa Error in runConcurrentThread

PostPosted: Wed Mar 13, 2024 3:18 pm
by jay (support)
Disable all 3rd party plugins.

Re: Alexa Error in runConcurrentThread

PostPosted: Wed Mar 27, 2024 10:23 am
by ryanbuckner
I turned off all 3rd Party plugins and no error. So I started trying them 1 by 1.

The only plugin that is active when the errors occur consistently are Alexa and Fantastic Weather. When I turn off Fantastic Weather the errors do not occur. It's been 5 days now.

I'm going to turn it back on to see if it can be reproduced

Re: Alexa Error in runConcurrentThread

PostPosted: Wed Mar 27, 2024 4:27 pm
by ryanbuckner
3 hours after turning on Fantastic Weather the errors started again. No errors in 4 days

Code: Select all
Mar 27, 2024 at 4:28:20 PM
   Rachio Sprinklers Error         Unknown error:
Traceback (most recent call last):
  File "plugin.py", line 353, in _update_from_rachio
    dev.replacePluginPropsOnServer(props)
RuntimeError: ServerCommunicationError -- timeout waiting for response

   Sonos Error                     'ServerCommunicationError -- timeout waiting for response' in module 'Sonos.py', method 'updateRelTime [2024.0.4]'
   Failing statement [line 859]: 'dev = indigo.devices[item]'
   Hue Lights Error               
Traceback (most recent call last):
  File "plugin.py", line 7224, in parseAllHueGroupsData
    device = indigo.devices[deviceId]
             ~~~~~~~~~~~~~~^^^^^^^^^^
RuntimeError: ServerCommunicationError -- timeout waiting for response
   SamsungTV Error                 Error in plugin execution runConcurrentThread:

  File "plugin.py", line 107, in runConcurrentThread
type: ServerCommunicationError -- timeout waiting for response

   SamsungTV Error                 plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   RFXCOM Error                    Error in plugin execution runConcurrentThread:

  File "plugin.py", line 326, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 2407, in startComm
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 871, in processPacket
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 47, in _finalizeStatesChanges
type: ServerCommunicationError -- timeout waiting for response

   RFXCOM Error                    plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Alexa Error                     Error in plugin execution runConcurrentThread:

  File "plugin.py", line 138, in runConcurrentThread
  File "plugin.py", line 166, in _update_reflector_and_utd_status
type: ServerCommunicationError -- timeout waiting for response

   Alexa Error                     plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Sonos Error                     'ServerCommunicationError -- timeout waiting for response' in module 'Sonos.py', method 'checkEvents [2024.0.4]'
   Failing statement [line 549]: 'dev = indigo.devices[item]'
   Hue Lights Error               
Traceback (most recent call last):
  File "plugin.py", line 6627, in parseAllHueLightsData
    device = indigo.devices[deviceId]
             ~~~~~~~~~~~~~~^^^^^^^^^^
RuntimeError: ServerCommunicationError -- timeout waiting for response
   SamsungTV Error                 Error in plugin execution runConcurrentThread:

  File "plugin.py", line 107, in runConcurrentThread
type: ServerCommunicationError -- timeout waiting for response

   SamsungTV Error                 plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   RFXCOM Error                    Error in plugin execution runConcurrentThread:

  File "plugin.py", line 326, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 2407, in startComm
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 871, in processPacket
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 47, in _finalizeStatesChanges
type: ServerCommunicationError -- timeout waiting for response

   RFXCOM Error                    plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Sonos Error                     'ServerCommunicationError -- timeout waiting for response' in module 'Sonos.py', method 'socoSubTest [2024.0.4]'
   Failing statement [line 661]: 'dev = indigo.devices[item]'
   Hue Lights Error               
Traceback (most recent call last):
  File "plugin.py", line 7224, in parseAllHueGroupsData
    device = indigo.devices[deviceId]
             ~~~~~~~~~~~~~~^^^^^^^^^^
RuntimeError: ServerCommunicationError -- timeout waiting for response
   Indigo Cocoa client disconnected (173.79.120.204)


Re: Alexa Error in runConcurrentThread

PostPosted: Thu Mar 28, 2024 7:03 am
by DaveL17
Hmmm. I'm not sure how the Fantastic Weather plugin could be the cause of what you're seeing--under the hood, the plugin is pretty straightforward. I'm not saying it's not possible, I'm just not sure what would cause it to tie up the entire Indigo server. I've not seen any similar reports and I think there's still a fair number of people who still use this plugin.

Re: Alexa Error in runConcurrentThread

PostPosted: Thu Mar 28, 2024 4:49 pm
by ryanbuckner
yeah, it's confusing. Since that error I have turned off the Fantastic Weather Plugin and I haven't seen that error again.