1activegeek / docker-airconnect

AirConnect container for turning Chromecast into Airplay targets
228 stars 27 forks source link

running container on Synology NAS. #42

Closed sabot105mm closed 2 years ago

sabot105mm commented 2 years ago

I believe I have properly set up the environment variables accordingly - no errors. in synologys audio station it works fine, Sonos speakers are listed, outside of Synology NAS no Sonos devices listed.

<airupnp>
<common>
<protocolInfo>
<pcm>http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000</pcm>
<wav>http-get:*:audio/wav:DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000</wav>
<flac>http-get:*:audio/flac:DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000</flac>
<mp3>http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000</mp3>
</protocolInfo>
<enabled>1</enabled>
<max_volume>100</max_volume>
<http_length>-1</http_length>
<upnp_max>1</upnp_max>
<codec>flc</codec>
<metadata>1</metadata>
<flush>1</flush>
<artwork></artwork>
<latency>1000:2000</latency>
<drift>0</drift>
</common>
<main_log>info</main_log>
<upnp_log>info</upnp_log>
<util_log>info</util_log>
<raop_log>info</raop_log>
<log_limit>-1</log_limit>
<max_players>32</max_players>
<binding>?</binding>
<ports>0:0</ports>
<device>
<udn>uuid:</udn>
<name>192.168.253.15 - Sonos Play:1+</name>
<mac></mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:</udn>
<name>Bedroom+</name>
<mac></mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:RINCON_</udn>
<name>Jackie+</name>
<mac>bb:bb:00:00:00:00</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:RINCON_</udn>
<name>Jackie+</name>
<mac>bb:bb:00:00:00:00</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:RINCON</udn>
<name>Living Room+</name>
<mac>bb:bb:00:00:00:00</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:RINCON</udn>
<name>Lanai+</name>
<mac>bb:bb:00:00:00:00</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:RINCON</udn>
<name>192.168.253.16 - Sonos Play:1+</name>
<mac>bb:bb:00:00:00:00</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:</udn>
<name>Patio Sony TV+</name>
<mac>bb:bb:33:c5:4c:f6</mac>
<enabled>1</enabled>
</device>
</airupnp>

[13:18:43.498785] Start:1130 Binding to 169.254.250.133:49152
[13:18:43.583091] GetMaster:127 [0x7f16604ff010]: Master not discovered yet, assigning to self
[13:18:43.590859] AddMRDevice:1006 [0x7f16604ff010] skipping Sonos slave Patio
[13:18:43.602196] MasterHandler:669 [0x7f16604ff010]: subscribe success
[13:18:43.651708] GetMaster:127 [0x7f16605013c8]: Master not discovered yet, assigning to self
[13:18:43.658642] AddMRDevice:1006 [0x7f16605013c8] skipping Sonos slave Patio
[13:18:43.669040] MasterHandler:669 [0x7f16605013c8]: subscribe success
[13:18:43.690970] GetMaster:127 [0x7f1660503780]: Master not discovered yet, assigning to self
[13:18:43.697530] AddMRDevice:1006 [0x7f1660503780] skipping Sonos slave Jackie
[13:18:43.708570] MasterHandler:669 [0x7f1660503780]: subscribe success
[13:18:43.737602] AddMRDevice:1008 [0x7f1660505b38]: adding renderer (Lanai)
[13:18:43.737765] bind_socket:791 socket binding 10 on port 55120
[13:18:43.745356] MasterHandler:669 [0x7f1660505b38]: subscribe success
[13:18:43.899916] GetMaster:127 [0x7f1660507ef0]: Master not discovered yet, assigning to self
[13:18:43.908754] AddMRDevice:1006 [0x7f1660507ef0] skipping Sonos slave Living Room
[13:18:43.919476] MasterHandler:669 [0x7f1660507ef0]: subscribe success
[13:18:43.920713] AddMRDevice:1008 [0x7f166050a2a8]: adding renderer (Patio Sony TV)
[13:18:43.920809] bind_socket:791 socket binding 11 on port 56124
[13:18:43.923517] MasterHandler:671 [0x7f166050a2a8]: subscribe fail, re-trying 1
[13:18:43.926592] MasterHandler:671 [0x7f166050a2a8]: subscribe fail, re-trying 2
[13:18:43.929669] MasterHandler:671 [0x7f166050a2a8]: subscribe fail, re-trying 3
[13:18:43.932733] MasterHandler:675 [0x7f166050a2a8]: subscribe fail, volume feedback will not work
[13:18:43.957142] GetMaster:127 [0x7f16604ff010]: Master not discovered yet, assigning to self
[13:18:43.972330] UpdateThread:810 [0x7f16604ff010]: Sonos 192.168.253.15 - Sonos Play:1+ is now slave
[13:18:43.987800] GetMaster:127 [0x7f16605013c8]: Master not discovered yet, assigning to self
[13:18:44.006501] UpdateThread:810 [0x7f16605013c8]: Sonos 192.168.253.16 - Sonos Play:1+ is now slave
[13:18:44.099191] AddMRDevice:1008 [0x7f166050c660]: adding renderer (Bedroom)
[13:18:44.099373] bind_socket:791 socket binding 13 on port 46172
[13:18:44.104608] MasterHandler:669 [0x7f166050c660]: subscribe success
[13:18:44.152264] AddMRDevice:1008 [0x7f166050ea18]: adding renderer (Jackie)
[13:18:44.152410] bind_socket:791 socket binding 15 on port 58541
[13:18:44.158681] MasterHandler:669 [0x7f166050ea18]: subscribe success
[13:19:03.268119] UpdateThread:810 [0x7f1660503780]: Sonos Jackie+ is now slave
[13:19:03.488089] UpdateThread:810 [0x7f1660507ef0]: Sonos Living Room+ is now slave
[13:19:03.600295] UpdateThread:810 [0x7f16605013c8]: Sonos 192.168.253.16 - Sonos Play:1+ is now slave
[13:19:03.639748] UpdateThread:810 [0x7f16604ff010]: Sonos 192.168.253.15 - Sonos Play:1+ is now slave```
1activegeek commented 2 years ago

Unfortunately I can't offer much more than checking your network configs. If it works on the Synology, and since you are seeing the logs working - it's not a container issue. Most large scale issues I see in general are network related - firewalls, ports, VLAN, UPnP, etc.

1activegeek commented 2 years ago

A second thought that does come about actually as I re-read this - you mentioned thinking you have the Environment Variables correct - have you tried just a stock configuration with NO variables or configs set? May not be perfect, but it should still operate and validate if you have the same issue. If you do - then my first suggestion would still apply. If not, then you may have something wrong with the configs and/or variables.

sabot105mm commented 2 years ago

I figured it out. I had to bind my nas IP address. it was binding to an APIPA address. as a side note, synologys audio station worked no matter if airconnect was turned on or off.

<airupnp>
<common>
<protocolInfo>
<pcm>http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000</pcm>
<wav>http-get:*:audio/wav:DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000</wav>
<flac>http-get:*:audio/flac:DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000</flac>
<mp3>http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000</mp3>
</protocolInfo>
<enabled>1</enabled>
<max_volume>100</max_volume>
<http_length>-1</http_length>
<upnp_max>1</upnp_max>
<codec>mp3:320</codec>
<metadata>1</metadata>
<flush>1</flush>
<artwork></artwork>
<latency>5000:5000:f</latency>
<drift>0</drift>
</common>
<main_log>info</main_log>
<upnp_log>info</upnp_log>
<util_log>info</util_log>
<raop_log>info</raop_log>
<log_limit>-1</log_limit>
<max_players>32</max_players>
<binding>192.168.253.100</binding>
<ports>0:0</ports>
<device>
<udn>uuid:23456789-1234-1010-8000-143FA681C7A1</udn>
<name>SONY KD-65X80J+</name>
<mac>bb:bb:f4:e6:2b:77</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:RINCON_5CAAFDC0534A01400</udn>
<name>192.168.253.15 - Sonos Play:1+</name>
<mac>bb:bb:c7:82:47:2a</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:RINCON_000E5820B15E01400</udn>
<name>Bedroom+</name>
<mac>bb:bb:e4:cc:93:75</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:RINCON_347E5CC0745C01400</udn>
<name>Jackie+</name>
<mac>bb:bb:84:69:49:8a</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:RINCON_7828CAAEC58801400</udn>
<name>Jackie+</name>
<mac>bb:bb:de:d6:aa:42</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:RINCON_000E582187FA01400</udn>
<name>Living Room+</name>
<mac>bb:bb:8e:57:96:89</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:RINCON_949F3EDA0E2E01400</udn>
<name>Lanai+</name>
<mac>bb:bb:c8:71:20:a9</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:RINCON_5CAAFD9F94A801400</udn>
<name>192.168.253.16 - Sonos Play:1+</name>
<mac>bb:bb:1c:28:7b:df</mac>
<enabled>1</enabled>
</device>
<device>
<udn>uuid:23456789-1234-1010-8000-045D4B351E2F</udn>
<name>Patio Sony TV+</name>
<mac>bb:bb:33:c5:4c:f6</mac>
<enabled>1</enabled>
</device>
</airupnp>
1activegeek commented 2 years ago

I figured it out. I had to bind my nas IP address. it was binding to an APIPA address. as a side note, synologys audio station worked no matter if airconnect was turned on or off.

Sounds about right. Glad you got it squared away! Happy streaming!!