Code Monkey home page Code Monkey logo

Comments (37)

spocon avatar spocon commented on June 5, 2024 1

The changes in troubleshotting are for alsa but you are using "Pro" as default [ which will be picked]

Available mixers: 'Pro [default]', 'ALSA [plughw:0,0]', 'ALSA [plughw:0,1]', 'Pro [plughw:1,0]', 'Pro [plughw:1,1]'

try this:
go to /opt/spocon/config.toml

replace

mixerSearchKeywords = ""

with

mixerSearchKeywords = "ALSA"

and

sudo service spocon restart

from spocon.

devgianlu avatar devgianlu commented on June 5, 2024 1

Try updating to the latest commit, I had to change the divider from , to ;.

from spocon.

spocon avatar spocon commented on June 5, 2024 1

will create a new version for this

from spocon.

spocon avatar spocon commented on June 5, 2024

Hi Jan-Koch,
thanks for your bug report. Could you try to restart the service ?
open a terminal :

sudo service spocon restart

For output :

sudo journalctl -u spocon

If that couldn't help i would recommend to open an bug report for the developers: librespot-java project issues

from spocon.

spocon avatar spocon commented on June 5, 2024

maybe that helps you as well : librespot-org/librespot-java#53

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024
-- Logs begin at Thu 2019-02-14 11:11:59 CET, end at Mon 2019-07-22 07:51:26 CEST. --
Jul 21 15:48:35 raspberrypi systemd[1]: Starting SpoCon...
Jul 21 15:48:36 raspberrypi sh[474]: ping: spotify.com: Temporärer Fehler bei der Namensauflösung
Jul 21 15:48:41 raspberrypi sh[474]: ping: spotify.com: Temporärer Fehler bei der Namensauflösung
Jul 21 15:48:46 raspberrypi sh[474]: ping: spotify.com: Temporärer Fehler bei der Namensauflösung
Jul 21 15:48:51 raspberrypi sh[474]: PING spotify.com (104.154.127.47) 56(84) bytes of data.
Jul 21 15:48:51 raspberrypi sh[474]: 64 bytes from 47.127.154.104.bc.googleusercontent.com (104.154.127.47): icmp_seq=1 ttl=40 time=143 ms
Jul 21 15:48:51 raspberrypi sh[474]: --- spotify.com ping statistics ---
Jul 21 15:48:51 raspberrypi sh[474]: 1 packets transmitted, 1 received, 0% packet loss, time 0ms
Jul 21 15:48:51 raspberrypi sh[474]: rtt min/avg/max/mdev = 142.877/142.877/142.877/0.000 ms
Jul 21 15:48:51 raspberrypi systemd[1]: Started SpoCon.
Jul 21 15:48:56 raspberrypi java[1088]: 2019-07-21 15:48:56 INFO  Session:98 - Created new session! {deviceId: 28bea14c-eee7-409a-b5fa-7fcdac474075, ap: gew1-accesspoint-a-14zn.ap.spotify.com/104.199.64.207}
Jul 21 15:48:58 raspberrypi java[1088]: 2019-07-21 15:48:58 INFO  Session:242 - Connected successfully!
Jul 21 15:48:58 raspberrypi java[1088]: 2019-07-21 15:48:58 DEBUG TimeProvider:20 - Corrected time offset, delta: 9s
Jul 21 15:48:58 raspberrypi java[1088]: 2019-07-21 15:48:58 TRACE Session:741 - Handled Ping {payload: 5D346D53}
Jul 21 15:48:58 raspberrypi java[1088]: 2019-07-21 15:48:58 INFO  Session:778 - Skipping SecretBlock
Jul 21 15:48:58 raspberrypi java[1088]: 2019-07-21 15:48:58 INFO  Session:758 - Received LicenseVersion: 1, 1.0.0-DE
Jul 21 15:48:58 raspberrypi java[1088]: 2019-07-21 15:48:58 INFO  Session:751 - Received CountryCode: DE
Jul 21 15:48:58 raspberrypi java[1088]: 2019-07-21 15:48:58 INFO  Session:778 - Skipping ProductInfo
Jul 21 15:48:58 raspberrypi java[1088]: 2019-07-21 15:48:58 INFO  Session:778 - Skipping LegacyWelcome
Jul 21 15:48:58 raspberrypi java[1088]: 2019-07-21 15:48:58 INFO  Session:778 - Skipping UnknownData_AllZeros
Jul 21 15:48:58 raspberrypi java[1088]: 2019-07-21 15:48:58 DEBUG Session:761 - Received 0x10: C668A146063486B5B3522E96922EF16B7B1983E8
Jul 21 15:48:58 raspberrypi java[1088]: 2019-07-21 15:48:58 TRACE Session:747 - Handled PongAck {payload: 5D346D53}
Jul 21 15:48:58 raspberrypi java[1088]: 2019-07-21 15:48:58 INFO  Session:723 - Skipping unknown command {cmd: 0x75, payload: 000000}
Jul 21 15:49:01 raspberrypi java[1088]: 2019-07-21 15:49:01 TRACE SpotifyIrc:105 - Send frame, type: kMessageTypeHello
Jul 21 15:49:01 raspberrypi java[1088]: 2019-07-21 15:49:01 TRACE MercuryClient:131 - Send Mercury request, seq: 1, uri: hm://remote/3/user/jan_koch/, method: POST
Jul 21 15:49:01 raspberrypi java[1088]: 2019-07-21 15:49:01 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 1, flags: 1, parts: 1
Jul 21 15:49:01 raspberrypi java[1088]: 2019-07-21 15:49:01 TRACE SpotifyIrc:119 - Frame sent successfully, type: kMessageTypeHello
Jul 21 15:49:02 raspberrypi java[1088]: 2019-07-21 15:49:02 TRACE MercuryClient:173 - Handling packet, cmd: MercuryEvent, seq: -3549113583298150400, flags: 1, parts: 2
Jul 21 15:49:02 raspberrypi java[1088]: 2019-07-21 15:49:02 TRACE MercuryClient:173 - Handling packet, cmd: MercuryEvent, seq: -3477055989260222464, flags: 1, parts: 2
Jul 21 15:49:02 raspberrypi java[1088]: 2019-07-21 15:49:02 TRACE SpotifyIrc:195 - Handling frame, type: kMessageTypeNotify, ident: 737aea68b93eb137c354f2e3f8712395de480c4f
Jul 21 15:49:02 raspberrypi java[1088]: 2019-07-21 15:49:02 TRACE SpotifyIrc:195 - Handling frame, type: kMessageTypeNotify, ident: 34549626d56ac86d0c89dd96d1a743979dbfe12c
Jul 21 15:49:02 raspberrypi java[1088]: 2019-07-21 15:49:02 INFO  Session:258 - Authenticated as jan_koch!
Jul 21 15:50:03 raspberrypi java[1088]: 2019-07-21 15:50:03 TRACE MercuryClient:173 - Handling packet, cmd: MercuryEvent, seq: 3440754513357570048, flags: 1, parts: 2
Jul 21 15:50:03 raspberrypi java[1088]: 2019-07-21 15:50:03 TRACE SpotifyIrc:195 - Handling frame, type: kMessageTypeNotify, ident: 34549626d56ac86d0c89dd96d1a743979dbfe12c
Jul 21 15:50:05 raspberrypi java[1088]: 2019-07-21 15:50:05 TRACE MercuryClient:173 - Handling packet, cmd: MercuryEvent, seq: 3801042483547209728, flags: 1, parts: 2
Jul 21 15:50:05 raspberrypi java[1088]: 2019-07-21 15:50:05 TRACE SpotifyIrc:195 - Handling frame, type: kMessageTypeLoad, ident: 34549626d56ac86d0c89dd96d1a743979dbfe12c
Jul 21 15:50:05 raspberrypi java[1088]: 2019-07-21 15:50:05 TRACE Player:187 - Frame has context_player_state: {"endpoint":"play","context":{"uri":"spotify:user:spotify:playlist:37i9dQZF1DWUq3wF0JVtEy","metadat
Jul 21 15:50:05 raspberrypi java[1088]: 2019-07-21 15:50:05 DEBUG Player:363 - Loading context, uri: spotify:user:spotify:playlist:37i9dQZF1DWUq3wF0JVtEy
Jul 21 15:50:06 raspberrypi java[1088]: 2019-07-21 15:50:06 TRACE SpotifyIrc:105 - Send frame, type: kMessageTypeNotify
Jul 21 15:50:06 raspberrypi java[1088]: 2019-07-21 15:50:06 TRACE MercuryClient:131 - Send Mercury request, seq: 2, uri: hm://remote/3/user/jan_koch/, method: POST
Jul 21 15:50:06 raspberrypi java[1088]: 2019-07-21 15:50:06 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 2, flags: 1, parts: 1
Jul 21 15:50:06 raspberrypi java[1088]: 2019-07-21 15:50:06 TRACE SpotifyIrc:119 - Frame sent successfully, type: kMessageTypeNotify
Jul 21 15:50:06 raspberrypi java[1088]: 2019-07-21 15:50:06 TRACE SpotifyIrc:105 - Send frame, type: kMessageTypeNotify
Jul 21 15:50:06 raspberrypi java[1088]: 2019-07-21 15:50:06 TRACE MercuryClient:131 - Send Mercury request, seq: 3, uri: hm://remote/3/user/jan_koch/, method: POST
Jul 21 15:50:06 raspberrypi java[1088]: 2019-07-21 15:50:06 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 3, flags: 1, parts: 1
Jul 21 15:50:06 raspberrypi java[1088]: 2019-07-21 15:50:06 TRACE SpotifyIrc:119 - Frame sent successfully, type: kMessageTypeNotify
Jul 21 15:50:06 raspberrypi java[1088]: 2019-07-21 15:50:06 TRACE MercuryClient:131 - Send Mercury request, seq: 4, uri: hm://metadata/4/track/7d4b2c1bf30440bfa47e769fb17b02d8, method: GET
Jul 21 15:50:06 raspberrypi java[1088]: 2019-07-21 15:50:06 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 4, flags: 1, parts: 2
Jul 21 15:50:07 raspberrypi java[1088]: 2019-07-21 15:50:07 DEBUG TokenProvider:47 - Token expired or not suitable, requesting again. {scope: playlist-read, token: null}
Jul 21 15:50:07 raspberrypi java[1088]: 2019-07-21 15:50:07 TRACE MercuryClient:131 - Send Mercury request, seq: 5, uri: hm://keymaster/token/authenticated?scope=playlist-read&client_id=65b708073fc0480ea92a0772
Jul 21 15:50:07 raspberrypi java[1088]: 2019-07-21 15:50:07 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 5, flags: 1, parts: 2
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE MercuryClient:173 - Handling packet, cmd: MercuryEvent, seq: 4521618423926489088, flags: 1, parts: 2
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE SpotifyIrc:195 - Handling frame, type: kMessageTypeLoad, ident: 34549626d56ac86d0c89dd96d1a743979dbfe12c
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE Player:187 - Frame has context_player_state: {"endpoint":"play","context":{"uri":"spotify:user:spotify:playlist:37i9dQZF1DWUq3wF0JVtEy","metadat
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 DEBUG Player:363 - Loading context, uri: spotify:user:spotify:playlist:37i9dQZF1DWUq3wF0JVtEy
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE MercuryClient:131 - Send Mercury request, seq: 6, uri: hm://context-resolve/v1/spotify:user:spotify:playlist:37i9dQZF1DWUq3wF0JVtEy, method: GET
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE SpotifyIrc:105 - Send frame, type: kMessageTypeNotify
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE MercuryClient:131 - Send Mercury request, seq: 7, uri: hm://remote/3/user/jan_koch/, method: POST
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 6, flags: 0, parts: 1
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 6, flags: 2, parts: 1
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 6, flags: 2, parts: 1
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 7, flags: 1, parts: 1
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE SpotifyIrc:119 - Frame sent successfully, type: kMessageTypeNotify
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 6, flags: 1, parts: 1
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE SpotifyIrc:105 - Send frame, type: kMessageTypeNotify
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE MercuryClient:131 - Send Mercury request, seq: 8, uri: hm://remote/3/user/jan_koch/, method: POST
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 8, flags: 1, parts: 1
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE SpotifyIrc:119 - Frame sent successfully, type: kMessageTypeNotify
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE MercuryClient:131 - Send Mercury request, seq: 9, uri: hm://metadata/4/track/7d4b2c1bf30440bfa47e769fb17b02d8, method: GET
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 9, flags: 1, parts: 2
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 DEBUG CdnManager:97 - Fetched CDN url for BD6EC3BEBBEF65299B6E28ABDFE46CC2E6EA7611: http://audio4-fa.scdn.co/audio/bd6ec3bebbef65299b6e28abdfe46cc2e6e
Jul 21 15:50:09 raspberrypi java[1088]: 2019-07-21 15:50:09 TRACE CdnManager:274 - Chunk 0/27 completed, cdn: audio4-fa.scdn.co, cached: false, stream: {fileId: BD6EC3BEBBEF65299B6E28ABDFE46CC2E6EA7611}
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 DEBUG CdnManager:97 - Fetched CDN url for BD6EC3BEBBEF65299B6E28ABDFE46CC2E6EA7611: http://audio4-ak.spotify.com.edgesuite.net/audio/bd6ec3bebbef65299
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 TRACE CdnManager:274 - Chunk 0/27 completed, cdn: audio4-ak.spotify.com.edgesuite.net, cached: false, stream: {fileId: BD6EC3BEBBEF65299B6E28ABDFE46CC
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 TRACE CdnManager:274 - Chunk 0/27 completed, cdn: audio4-fa.scdn.co, cached: true, stream: {fileId: BD6EC3BEBBEF65299B6E28ABDFE46CC2E6EA7611}
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 TRACE CdnManager:274 - Chunk 0/27 completed, cdn: audio4-ak.spotify.com.edgesuite.net, cached: true, stream: {fileId: BD6EC3BEBBEF65299B6E28ABDFE46CC2
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 TRACE CdnManager:274 - Chunk 1/27 completed, cdn: audio4-ak.spotify.com.edgesuite.net, cached: true, stream: {fileId: BD6EC3BEBBEF65299B6E28ABDFE46CC2
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 TRACE CdnManager:274 - Chunk 1/27 completed, cdn: audio4-fa.scdn.co, cached: true, stream: {fileId: BD6EC3BEBBEF65299B6E28ABDFE46CC2E6EA7611}
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 TRACE CdnManager:274 - Chunk 2/27 completed, cdn: audio4-fa.scdn.co, cached: true, stream: {fileId: BD6EC3BEBBEF65299B6E28ABDFE46CC2E6EA7611}
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 TRACE CdnManager:274 - Chunk 2/27 completed, cdn: audio4-ak.spotify.com.edgesuite.net, cached: true, stream: {fileId: BD6EC3BEBBEF65299B6E28ABDFE46CC2
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 TRACE CdnManager:274 - Chunk 3/27 completed, cdn: audio4-fa.scdn.co, cached: true, stream: {fileId: BD6EC3BEBBEF65299B6E28ABDFE46CC2E6EA7611}
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 TRACE NormalizationData:29 - Loaded normalization data, track_gain: -10,09, track_peak: 1,23, album_gain: -10,09, album_peak: 1,23
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 TRACE NormalizationData:29 - Loaded normalization data, track_gain: -10,09, track_peak: 1,23, album_gain: -10,09, album_peak: 1,23
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 TRACE CdnManager:274 - Chunk 3/27 completed, cdn: audio4-ak.spotify.com.edgesuite.net, cached: true, stream: {fileId: BD6EC3BEBBEF65299B6E28ABDFE46CC2
Jul 21 15:50:10 raspberrypi java[1088]: 2019-07-21 15:50:10 INFO  TrackHandler:80 - Loaded track, name: 'King Of My Castle - Don Diablo Edit', artists: 'Don Diablo, Keanu Silva', gid: 7D4B2C1BF30440BFA47E769FB1
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 TRACE MercuryClient:173 - Handling packet, cmd: MercuryEvent, seq: 4881906394116128768, flags: 1, parts: 2
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 INFO  LinesHolder:65 - Available mixers: 'Pro [default]', 'ALSA [plughw:0,0]', 'ALSA [plughw:0,1]', 'Pro [plughw:1,0]', 'Pro [plughw:1,1]'
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 TRACE SpotifyIrc:195 - Handling frame, type: kMessageTypeLoad, ident: 34549626d56ac86d0c89dd96d1a743979dbfe12c
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 TRACE Player:187 - Frame has context_player_state: {"endpoint":"play","context":{"uri":"spotify:user:spotify:playlist:37i9dQZF1DWUq3wF0JVtEy","metadat
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 TRACE PlayerRunner:36 - Player ready for playback, codec: VORBIS, fileId: {fileId: BD6EC3BEBBEF65299B6E28ABDFE46CC2E6EA7611}
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 DEBUG Player:363 - Loading context, uri: spotify:user:spotify:playlist:37i9dQZF1DWUq3wF0JVtEy
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 TRACE MercuryClient:131 - Send Mercury request, seq: 10, uri: hm://context-resolve/v1/spotify:user:spotify:playlist:37i9dQZF1DWUq3wF0JVtEy, method: GE
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 TRACE SpotifyIrc:105 - Send frame, type: kMessageTypeNotify
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 TRACE MercuryClient:131 - Send Mercury request, seq: 11, uri: hm://remote/3/user/jan_koch/, method: POST
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 10, flags: 0, parts: 1
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 10, flags: 2, parts: 1
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 10, flags: 1, parts: 1
Jul 21 15:50:11 raspberrypi java[1088]: 2019-07-21 15:50:11 TRACE MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 10, flags: 2, parts: 1
Jul 21 15:50:11 raspberrypi java[1088]: Exception in thread "handle-packet-23944394" com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept
Jul 21 15:50:11 raspberrypi java[1088]:         at com.google.gson.JsonParser.parse(JsonParser.java:65)
Jul 21 15:50:11 raspberrypi java[1088]:         at xyz.gianlu.librespot.mercury.JsonMercuryRequest.instantiate(JsonMercuryRequest.java:27)
lines 1-102`

Sorry for the delay, that is the output of
sudo journalctl -u spocon

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

There's a Java exception:
Jul 21 15:50:11 raspberrypi java[1088]: Exception in thread "handle-packet-23944394" com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept Jul 21 15:50:11 raspberrypi java[1088]: at com.google.gson.JsonParser.parse(JsonParser.java:65) Jul 21 15:50:11 raspberrypi java[1088]: at xyz.gianlu.librespot.mercury.JsonMercuryRequest.instantiate(JsonMercuryRequest.java:27

from spocon.

spocon avatar spocon commented on June 5, 2024

That means that it could not read your config.toml in /opt/spocon/config.toml.

Try this :

sudo apt install dos2unix 
sudo dos2unix /opt/spocon/config.toml
sudo service spocon restart

btw which version are you using ?

sudo apt list spocon

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

Thanks for the quick response, will test that!
Version info:
spocon/bionic,now 0.16.4 armhf

from spocon.

devgianlu avatar devgianlu commented on June 5, 2024

There seems to be an issue with librespot-java, for some reason it is receiving a truncated JSON message:

2019-07-21 15:50:11 TRACE Player:187 - Frame has context_player_state: {"endpoint":"play","context":{"uri":"spotify:user:spotify:playlist:37i9dQZF1DWUq3wF0JVtEy","metadat

Does this happen consistently?

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

I'm sorry, that was my bad in copying the log message. The JSON is not truncated, but copying from my Windows Bash only copied the visible characters

from spocon.

devgianlu avatar devgianlu commented on June 5, 2024

Could you post the full JSON?

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

Here's the full output from sudo journalctl -u spocon as a log file.
spocon.log

from spocon.

devgianlu avatar devgianlu commented on June 5, 2024

I suppose your "favorite songs" playlist is very big. Anyway, there seems to be an issue with receiving the response from the server.

MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 10, flags: 0, parts: 1
MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 10, flags: 2, parts: 1
MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 10, flags: 1, parts: 1
MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 10, flags: 2, parts: 1

should be

MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 10, flags: 0, parts: 1
MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 10, flags: 2, parts: 1
MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 10, flags: 2, parts: 1
MercuryClient:173 - Handling packet, cmd: MercuryReq, seq: 10, flags: 1, parts: 1

I don't know what's wrong here, but this system is not used anymore in the newest version (yet to be released). Are you able to compile from source? Or maybe we can ask @spocon to create a snapshot build of the new-spotify-api branch?

from spocon.

spocon avatar spocon commented on June 5, 2024

sure , no problem. give me 30 min

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

I appreciate your efforts in helping me, fantastic service!

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

@devgianlu the playlists I listen to usually have anywhere from 15 - 200+ songs, in case that info helps

from spocon.

spocon avatar spocon commented on June 5, 2024

@jan-koch 30 min was a bit too optimistic. But it will be released today. There are some things which have to be fixed first.

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

No worries, thank you for the effort!

from spocon.

spocon avatar spocon commented on June 5, 2024

Hej Jan,

I have build the package but launchpad ppa ( the repository which holds our packages.) is today very slow with publishing the packages.

You can check the status here:
https://launchpad.net/~spocon/+archive/ubuntu/spocon/+packages

Once thats done and status is published you can just do a:

sudo apt update & sudo apt upgrade

from spocon.

spocon avatar spocon commented on June 5, 2024

ok its done :-)

from spocon.

spocon avatar spocon commented on June 5, 2024

one more thing:
@devgianlu
I tested the new-spotify-api and the first time when i installed it it couldn't find the mixer. Had to restart the service. Seems like a one time bug.

@jan-koch
let me know if you saw the same error , please

I wrote a bug report for it:

librespot-org/librespot-java#117

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

Than you @spocon! Will test it out today and keep you posted

from spocon.

spocon avatar spocon commented on June 5, 2024

Unfortunately the new version has some bugs.

When connecting to spocon and than go back to my former device spocon continues to play. Reconnecting to spocon is not possible and I'm ending up to here music on two devices
@devgianlu
I'm on my way to the airport. But going to create a bug report this evening.

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

Yeah, was just about to say that I also see Java exceptions with the new version. Attached the output of sudo journalctl -u spocon.
spocon.log

from spocon.

devgianlu avatar devgianlu commented on June 5, 2024

The latest commits on new-spotify-api should fix these issues.

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

Thanks, @devgianlu.
What's the best way for me to test? Compile new-spotify-api from source?

from spocon.

devgianlu avatar devgianlu commented on June 5, 2024

Definitely, it is quite simple and recompiling is very inexpensive.

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

Ok, will see if I can manage to do that successfully :-D

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

Managed to recompile and librespot-java is showing up as device in Spotify under connected devices. But it does not output sound, restarting the Raspberry Pi didn't help.

Not sure if I configured librespot-java to grab the USB soundcard properly though. Sorry, I'm not an expert at this stuff, just learning

from spocon.

spocon avatar spocon commented on June 5, 2024

did you try this as well ?
https://github.com/spocon/spocon#troubleshooting

btw. i have made a new version , it fixes the most of the issues with librespot-java ( at least with HDMI output on TV)

sudo apt update & sudo apt upgrade

fixed as well :

  • An issue with gpg-key from the keyserver ubuntu ( was not importing correctly)
  • Audio permission , one time bug with installation

now the installation should be smooth

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

Yes, I have updated alsa.cnf and created the snd_soc_core.cnf file.
I also updated via apt, but got another Java exception, please see the logfile attached.
spocon.log

from spocon.

devgianlu avatar devgianlu commented on June 5, 2024

I've added a small guide to the README: https://github.com/librespot-org/librespot-java#audio-output-configuration

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

Getting closer!
I see these infos when running the newly compiled new-spotify-api from librespot-java:

2019-07-24 17:28:06 INFO  LinesHolder:65 - Available mixers: 'ALSA [default]', 'ALSA [plughw:0,0]', 'ALSA [plughw:0,1]', 'Pro [plughw:1,0]', 'Pro [plughw:1,1]'
2019-07-24 17:28:06 TRACE PlayerRunner:36 - Player ready for playback, codec: VORBIS, fileId: {fileId: 568C74AC29940FA9E68C86F64E8D17907B4ED34C}
2019-07-24 17:28:06 TRACE SpotifyIrc:105 - Send frame, type: kMessageTypeNotify
2019-07-24 17:28:06 TRACE MercuryClient:131 - Send Mercury request, seq: 7, uri: hm://remote/3/user/jan_koch/, method: POST
2019-07-24 17:28:06 TRACE LinesHolder:142 - New line opened for mixer 'ALSA [default]'.

I have set config.toml in the librespot-java folder to:

mixerSearchKeywords = "Pro [plughw:1,1]"

Given that's the correct identifier of the soundcard, is that the correct syntax? I do not see exceptions anymore but no sound either.

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

It's working!!!
Running librespot-java directly now, with the ´new-spotify-api` build.

THANK YOU! You've made my entire week :)

from spocon.

devgianlu avatar devgianlu commented on June 5, 2024

@jan-koch Awesome! Since you're running new-spotify-api, you can report any issue on librespot-org/librespot-java#105

from spocon.

jan-koch avatar jan-koch commented on June 5, 2024

Will do if I encounter any!

from spocon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.