New plugin user having issues.

Posted on
Wed Dec 20, 2017 10:20 pm
aauno offline
Posts: 26
Joined: Nov 11, 2017

New plugin user having issues.

Just installed and configured Sonos plugin. Not sure how to fix the following:
Traceback (most recent call last):
File "plugin.py", line 47, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 365, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 482, in socoSubTest
KeyError: (1548838757,)

2017-12-20 14:55:44 Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
2017-12-20 14:55:54 Sonos SoCo Reactor Ignition...
2017-12-20 14:55:59 Sonos Error Error in plugin execution runConcurrentThread:

Posted on
Thu Dec 21, 2017 8:19 pm
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New plugin user having issues.

I didn't write the Sonos plugin, but I did a little checking on the code anyway.

First thing to do is make sure the Plugin is configured properly. You need to put in the address of a Sonos device (aka ZonePlayer) and the IP address of the Indigo server. Not sure why he has that in the config dialog, he could figure that out in his code. But for now, just put it in.

If that doesn't fix things, the problem you're seeing is probably caused by a bad saved deviceID. I would disable the plugin, then delete all Sonos devices and the plugin preferences. Then re-enable the plugin and try whatever you were doing again.

The preferences are saved in the "Preferences/Plugins" folder under the main Indigo 7 Folder. The name is "com.ssi.indigoplugin.Sonos.indiPref".

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sat Dec 23, 2017 11:47 am
aauno offline
Posts: 26
Joined: Nov 11, 2017

Re: New plugin user having issues.

I followed the directions and deleted the entries. Same error still occuring.

Posted on
Sat Dec 23, 2017 11:53 am
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New plugin user having issues.

aauno wrote:
I followed the directions and deleted the entries. Same error still occuring.


Restart the plugin then post the log file entries from that restart.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sat Dec 23, 2017 9:27 pm
aauno offline
Posts: 26
Joined: Nov 11, 2017

Re: New plugin user having issues.

Dec 23, 2017, 9:52:32 PM
Enabling plugin "Sonos 1.0.9"
Starting plugin "Sonos 1.0.9" (pid 73878)
Started plugin "Sonos 1.0.9"
Sonos Your plugin version, v1.0.9, is current.
Sonos Loaded Sonos Favorites... [6]
Sonos Loaded Playlists... [5]
Sonos Loaded RadioTime Favorite Stations... [7]
Sonos [Sat Dec 23 21:52:34 2017] Processed plugin preferences.
Sonos Loaded Apple Voices.. [64]
Sonos Error Error in plugin execution startup:

Traceback (most recent call last):
File "plugin.py", line 36, in startup
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 281, in startup
File "./lib/twisted/internet/posixbase.py", line 382, in listenMulticast
File "./lib/twisted/internet/udp.py", line 178, in startListening
File "./lib/twisted/internet/udp.py", line 198, in _bindSocket
CannotListenError: Couldn't listen on any:1900: [Errno 48] Address already in use. <<<<<====== How to alter port?? aauno

Sonos Serving HTTP Streamer on 68.42.192.152 [0.0.0.0], port 8888
Sonos Adding ZonePlayer: 192.168.3.238, RINCON_5CAAFD418E0601400, Sonos Kitchen
Sonos Error exception in deviceStartComm(Sonos Kitchen): need more than 0 values to unpack
Sonos SoCo Reactor Ignition...
Sonos Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 47, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 365, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 482, in socoSubTest
KeyError: (72403889,)

Posted on
Sat Dec 23, 2017 9:47 pm
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New plugin user having issues.

You might want to look at this thread: viewtopic.php?f=142&t=18544&hilit=port+1900&start=15#p140988

You can't change port 1900. That's the one it has to listen on. But it appears that something else on your system is using port 1900 exclusively and won't let the Sonos plugin open it in read-only mode.

Figuring out what's grabbing that port is tricky.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Dec 25, 2017 12:35 pm
aauno offline
Posts: 26
Joined: Nov 11, 2017

Re: New plugin user having issues.

Port 1900 is currently being used by HDHomeroom. This HDHomerun device is used to translate OTA TV signals to digital and store the TV on my computer for use by Plex TV.

Posted on
Mon Dec 25, 2017 1:07 pm
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New plugin user having issues.

aauno wrote:
Port 1900 is currently being used by HDHomeroom. This HDHomerun device is used to translate OTA TV signals to digital and store the TV on my computer for use by Plex TV.


Try stopping HDHomeRun, restarting the Sonos Plugin, then starting up HDHomeRun again.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Dec 26, 2017 2:34 pm
aauno offline
Posts: 26
Joined: Nov 11, 2017

Re: New plugin user having issues.

Anyone know how to stop HDHomeroom? I forced the task, but it restarted.

I'm trying to understand the following:


aa:~ MacProServer$ sudo lsof -i:1900

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

hdhomerun 111 _HDHomeRun 13u IPv4 0x7524dfb3453177bb 0t0 UDP *:ssdp

aa:~ MacProServer$

********************************************************************************

Traceback (most recent call last):
File "plugin.py", line 36, in startup
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 281, in startup
File "./lib/twisted/internet/posixbase.py", line 382, in listenMulticast
File "./lib/twisted/internet/udp.py", line 178, in startListening
File "./lib/twisted/internet/udp.py", line 198, in _bindSocket
CannotListenError: Couldn't listen on any:1900: [Errno 48] Address already in use. <<<<<====== How to alter port?? aauno

Sonos Serving HTTP Streamer on 68.42.192.152 [0.0.0.0], port 8888
Sonos Adding ZonePlayer: 192.168.3.238, RINCON_5CAAFD418E0601400, Sonos Kitchen
Sonos Error exception in deviceStartComm(Sonos Kitchen): need more than 0 values to unpack
Sonos SoCo Reactor Ignition...
Sonos Error Error in plugin execution runConcurrentThread:

Posted on
Tue Dec 26, 2017 3:38 pm
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New plugin user having issues.

aauno wrote:
Anyone know how to stop HDHomeroom? I forced the task, but it restarted.


Make sure you still have the installer for the software handy, then uninstall it. A web search says that there's an uninstaller in the /Users/HDHomeRun directory.

aauno wrote:
I'm trying to understand the following:

aa:~ MacProServer$ sudo lsof -i:1900

Code: Select all
COMMAND   PID       USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME

hdhomerun 111 _HDHomeRun   13u  IPv4 0x7524dfb3453177bb      0t0  UDP *:ssdp


That really just confirms that it's hdhomerun holding that port open, preventing any other processing from opening it. The rest of the line isn't useful (for this).

aauno wrote:
********************************************************************************
Traceback (most recent call last):
File "plugin.py", line 36, in startup
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 281, in startup
File "./lib/twisted/internet/posixbase.py", line 382, in listenMulticast
File "./lib/twisted/internet/udp.py", line 178, in startListening
File "./lib/twisted/internet/udp.py", line 198, in _bindSocket
CannotListenError: Couldn't listen on any:1900: [Errno 48] Address already in use. <<<<<====== How to alter port?? aauno

Sonos Serving HTTP Streamer on 68.42.192.152 [0.0.0.0], port 8888
Sonos Adding ZonePlayer: 192.168.3.238, RINCON_5CAAFD418E0601400, Sonos Kitchen
Sonos Error exception in deviceStartComm(Sonos Kitchen): need more than 0 values to unpack
Sonos SoCo Reactor Ignition...
Sonos Error Error in plugin execution runConcurrentThread:


You posted this before. Nothing new there.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Dec 26, 2017 7:25 pm
aauno offline
Posts: 26
Joined: Nov 11, 2017

Re: New plugin user having issues.

I removed HDHomeroom. I restarted my Mac and Sonos connected. I then installed the HDHomerun server without the DVR software, which I understand uses port 1900. After restarting my Mac, Sonos plugin still works. I asked the developer of "Channels" about HDHomerun and he is the one that let me know that HDHomerun DVR service was not required. The HDHomerun staff stated that they don't use port 1900.

This issue has been resolved.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests