See also GioF71/spotconnect-docker#17 (comment)
Steps to reproduce:
- Setup Docker with minimal compose file
version: "3"
volumes:
config:
services:
spotconnect-airplay:
image: giof71/spotconnect:latest
container_name: spotconnect-airplay
network_mode: host
environment:
- SPOTCONNECT_MODE=raop
- PUID=1000
- PGID=1000
volumes:
- config:/config
restart: unless-stopped
-
Open Spotify App and start playing a song
-
Open Spotify Connect menu and select one of the the Apple Home Pods which are now being added as Spotify Connect Target by spot-connect.
-
Wait for the music to play via HomePod
Expected behaviour: music gets transmitted to HomePod
Current behaviour: Spotify App says that music is playing on HomePod but HomePod actually plays nothing
Logfile says:
2026-08-15T12:50:07.200595260Z [spotconnect-airplay] [12:49:23.486] I TrackPlayer.cpp:98: Resetting state
2026-08-15T12:50:07.200598983Z [spotconnect-airplay] [12:49:23.486] I spotify.cpp:538: disconnecting player Schlafzimmer+
2026-08-15T12:50:07.200617307Z [spotconnect-airplay] [12:50:06.032] I spotify.cpp:430: Spotify client launched for Arbeitszimmer+
2026-08-15T12:50:07.200621724Z [spotconnect-airplay] [12:50:06.083] D Session.cpp:67: Connecting with AP <ap-gew4.spotify.com:4070>
2026-08-15T12:50:07.200626241Z [spotconnect-airplay] [12:50:06.107] D PlainConnection.cpp:101: Connected to spotify server
2026-08-15T12:50:07.200629957Z [spotconnect-airplay] [12:50:06.124] I Session.cpp:43: Received APHello response
2026-08-15T12:50:07.200633620Z [spotconnect-airplay] [12:50:06.128] D Session.cpp:48: Received shannon keys
2026-08-15T12:50:07.200650994Z [spotconnect-airplay] [12:50:06.154] D Session.cpp:87: Authorization successful
2026-08-15T12:50:07.200655348Z [spotconnect-airplay] [12:50:06.155] I MercurySession.cpp:42: Received packet, command: 4
2026-08-15T12:50:07.200658626Z [spotconnect-airplay] [12:50:06.155] D TimeProvider.cpp:15: Time synced with spotify servers
2026-08-15T12:50:07.200661785Z [spotconnect-airplay] [12:50:06.155] I MercurySession.cpp:42: Received packet, command: 2
2026-08-15T12:50:07.200664727Z [spotconnect-airplay] [12:50:06.155] I MercurySession.cpp:42: Received packet, command: 118
2026-08-15T12:50:07.200667503Z [spotconnect-airplay] [12:50:06.155] I MercurySession.cpp:42: Received packet, command: 27
2026-08-15T12:50:07.200670585Z [spotconnect-airplay] [12:50:06.155] D MercurySession.cpp:251: Executing Mercury Request, type SUB
2026-08-15T12:50:07.200675135Z [spotconnect-airplay] [12:50:06.155] I MercurySession.cpp:42: Received packet, command: 80
2026-08-15T12:50:07.200678176Z [spotconnect-airplay] [12:50:06.155] D MercurySession.cpp:153: Received country code DE
2026-08-15T12:50:07.200681158Z [spotconnect-airplay] [12:50:06.155] I MercurySession.cpp:42: Received packet, command: 31
2026-08-15T12:50:07.200684121Z [spotconnect-airplay] [12:50:06.155] I MercurySession.cpp:42: Received packet, command: 105
2026-08-15T12:50:07.200687147Z [spotconnect-airplay] [12:50:06.168] I MercurySession.cpp:42: Received packet, command: 181
2026-08-15T12:50:07.200690119Z [spotconnect-airplay] [12:50:06.204] I MercurySession.cpp:42: Received packet, command: 74
2026-08-15T12:50:07.200693062Z [spotconnect-airplay] [12:50:06.204] I MercurySession.cpp:42: Received packet, command: 179
2026-08-15T12:50:07.200695930Z [spotconnect-airplay] [12:50:06.204] D MercurySession.cpp:174: Received mercury packet
2026-08-15T12:50:07.200698906Z [spotconnect-airplay] [12:50:06.204] D MercurySession.cpp:251: Executing Mercury Request, type SEND
2026-08-15T12:50:07.200701877Z [spotconnect-airplay] [12:50:06.204] D SpircHandler.cpp:61: Sent kMessageTypeHello!
2026-08-15T12:50:07.200704486Z [spotconnect-airplay] [12:50:06.253] I MercurySession.cpp:42: Received packet, command: 181
2026-08-15T12:50:07.200707472Z [spotconnect-airplay] [12:50:06.253] I MercurySession.cpp:42: Received packet, command: 178
2026-08-15T12:50:07.200710398Z [spotconnect-airplay] [12:50:06.253] D SpircHandler.cpp:69: Received subscription response
2026-08-15T12:50:07.200713277Z [spotconnect-airplay] [12:50:06.253] D SpircHandler.cpp:134: Notify frame
2026-08-15T12:50:07.200734314Z [spotconnect-airplay] [12:50:06.253] D MercurySession.cpp:174: Received mercury packet
2026-08-15T12:50:07.200742610Z [spotconnect-airplay] [12:50:06.255] I AccessKeyFetcher.cpp:72: Access token expired, fetching new one...
2026-08-15T12:50:07.200746280Z [spotconnect-airplay] [12:50:06.314] I AccessKeyFetcher.cpp:97: Access token sucessfully fetched
2026-08-15T12:50:07.200749582Z [spotconnect-airplay] [12:50:07.183] I MercurySession.cpp:42: Received packet, command: 181
2026-08-15T12:50:07.200752645Z [spotconnect-airplay] [12:50:07.183] D SpircHandler.cpp:69: Received subscription response
2026-08-15T12:50:07.200755598Z [spotconnect-airplay] [12:50:07.183] D SpircHandler.cpp:181: Load frame 50!
2026-08-15T12:50:07.200758583Z [spotconnect-airplay] [12:50:07.183] D MercurySession.cpp:251: Executing Mercury Request, type SEND
2026-08-15T12:50:07.200761569Z [spotconnect-airplay] [12:50:07.183] I TrackPlayer.cpp:98: Resetting state
2026-08-15T12:50:40.967289017Z [spotconnect-airplay] [12:50:40.967] shadowRequest:277 [0x65c600]: spotify VOLUME request -28.125429
2026-08-15T12:50:41.298192228Z [spotconnect-airplay] [12:50:41.297] shadowRequest:277 [0x65c600]: spotify VOLUME request -23.437858
2026-08-15T12:50:41.529353611Z [spotconnect-airplay] [12:50:41.529] shadowRequest:277 [0x65c600]: spotify VOLUME request -22.969100
Logs after a second try
2026-08-15T12:56:05.981765604Z [spotconnect-airplay] [12:56:05.606] I spotify.cpp:430: Spotify client launched for Arbeitszimmer+
2026-08-15T12:56:05.981782972Z [spotconnect-airplay] [12:56:05.658] D Session.cpp:67: Connecting with AP <ap-gew4.spotify.com:4070>
2026-08-15T12:56:05.981786204Z [spotconnect-airplay] [12:56:05.674] D PlainConnection.cpp:101: Connected to spotify server
2026-08-15T12:56:05.981788886Z [spotconnect-airplay] [12:56:05.691] I Session.cpp:43: Received APHello response
2026-08-15T12:56:05.981792000Z [spotconnect-airplay] [12:56:05.694] D Session.cpp:48: Received shannon keys
2026-08-15T12:56:05.981794023Z [spotconnect-airplay] [12:56:05.721] D Session.cpp:87: Authorization successful
2026-08-15T12:56:05.981796134Z [spotconnect-airplay] [12:56:05.721] I MercurySession.cpp:42: Received packet, command: 4
2026-08-15T12:56:05.981798021Z [spotconnect-airplay] [12:56:05.721] D TimeProvider.cpp:15: Time synced with spotify servers
2026-08-15T12:56:05.981799950Z [spotconnect-airplay] [12:56:05.721] I MercurySession.cpp:42: Received packet, command: 2
2026-08-15T12:56:05.981802604Z [spotconnect-airplay] [12:56:05.721] I MercurySession.cpp:42: Received packet, command: 118
2026-08-15T12:56:05.981805147Z [spotconnect-airplay] [12:56:05.721] I MercurySession.cpp:42: Received packet, command: 27
2026-08-15T12:56:05.981810112Z [spotconnect-airplay] [12:56:05.721] D MercurySession.cpp:251: Executing Mercury Request, type SUB
2026-08-15T12:56:05.981812983Z [spotconnect-airplay] [12:56:05.721] I MercurySession.cpp:42: Received packet, command: 80
2026-08-15T12:56:05.981815704Z [spotconnect-airplay] [12:56:05.721] D MercurySession.cpp:153: Received country code DE
2026-08-15T12:56:05.981818094Z [spotconnect-airplay] [12:56:05.721] I MercurySession.cpp:42: Received packet, command: 31
2026-08-15T12:56:05.981820489Z [spotconnect-airplay] [12:56:05.721] I MercurySession.cpp:42: Received packet, command: 105
2026-08-15T12:56:05.981822818Z [spotconnect-airplay] [12:56:05.735] I MercurySession.cpp:42: Received packet, command: 181
2026-08-15T12:56:05.981824737Z [spotconnect-airplay] [12:56:05.769] I MercurySession.cpp:42: Received packet, command: 74
2026-08-15T12:56:05.981826656Z [spotconnect-airplay] [12:56:05.770] I MercurySession.cpp:42: Received packet, command: 179
2026-08-15T12:56:05.981828586Z [spotconnect-airplay] [12:56:05.770] D MercurySession.cpp:174: Received mercury packet
2026-08-15T12:56:05.981830873Z [spotconnect-airplay] [12:56:05.770] D MercurySession.cpp:251: Executing Mercury Request, type SEND
2026-08-15T12:56:05.981833077Z [spotconnect-airplay] [12:56:05.770] D SpircHandler.cpp:61: Sent kMessageTypeHello!
2026-08-15T12:56:05.981835151Z [spotconnect-airplay] [12:56:05.811] I MercurySession.cpp:42: Received packet, command: 181
2026-08-15T12:56:05.981841583Z [spotconnect-airplay] [12:56:05.811] I MercurySession.cpp:42: Received packet, command: 178
2026-08-15T12:56:05.981844438Z [spotconnect-airplay] [12:56:05.811] D SpircHandler.cpp:69: Received subscription response
2026-08-15T12:56:05.981846592Z [spotconnect-airplay] [12:56:05.811] D SpircHandler.cpp:134: Notify frame
2026-08-15T12:56:05.981849323Z [spotconnect-airplay] [12:56:05.811] D MercurySession.cpp:174: Received mercury packet
2026-08-15T12:56:05.981852358Z [spotconnect-airplay] [12:56:05.821] I AccessKeyFetcher.cpp:72: Access token expired, fetching new one...
2026-08-15T12:56:05.981855201Z [spotconnect-airplay] [12:56:05.881] I AccessKeyFetcher.cpp:97: Access token sucessfully fetched
2026-08-15T12:56:05.981858109Z [spotconnect-airplay] [12:56:05.981] I MercurySession.cpp:42: Received packet, command: 181
2026-08-15T12:56:05.981860441Z [spotconnect-airplay] [12:56:05.981] D SpircHandler.cpp:69: Received subscription response
2026-08-15T12:56:05.981862920Z [spotconnect-airplay] [12:56:05.981] D SpircHandler.cpp:181: Load frame 50!
2026-08-15T12:56:05.981865086Z [spotconnect-airplay] [12:56:05.981] D MercurySession.cpp:251: Executing Mercury Request, type SEND
See also GioF71/spotconnect-docker#17 (comment)
Steps to reproduce:
Open Spotify App and start playing a song
Open Spotify Connect menu and select one of the the Apple Home Pods which are now being added as Spotify Connect Target by spot-connect.
Wait for the music to play via HomePod
Expected behaviour: music gets transmitted to HomePod
Current behaviour: Spotify App says that music is playing on HomePod but HomePod actually plays nothing
Logfile says:
Logs after a second try