Tecko
14 September 2023 06:53
1
on Odroid Xu4 device: when I press play connection is lost:
raspotify satus (no errors):
raspotify.service - Raspotify (Spotify Connect Client)
Loaded: loaded (/lib/systemd/system/raspotify.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-09-14 08:48:31 CEST; 2min 20s ago
Docs: https://github.com/dtcooper/raspotify
https://github.com/librespot-org/librespot
https://github.com/dtcooper/raspotify/wiki
https://github.com/librespot-org/librespot/wiki/Options
Main PID: 3926 (librespot)
Tasks: 1 (limit: 4449)
Memory: 1.3M
CPU: 299ms
CGroup: /system.slice/raspotify.service
└─3926 /usr/bin/librespot
crashreport:
– Config –
LIBRESPOT_QUIET=
LIBRESPOT_AUTOPLAY=
LIBRESPOT_DISABLE_AUDIO_CACHE=
LIBRESPOT_DISABLE_CREDENTIAL_CACHE=
LIBRESPOT_ENABLE_VOLUME_NORMALISATION=
LIBRESPOT_DEVICE=default
– Ouput of aplay -l –
**** List of PLAYBACK Hardware Devices ****
card 0: OdroidXU4 [Odroid-XU4], device 0: Primary (*) [Primary (*)]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: OdroidXU4 [Odroid-XU4], device 2: Secondary (*) [Secondary (*)]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: R7 [FiiO R7], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
Jappe
14 September 2023 07:00
2
What connection do you mean? Your network connection? The connection to spotify?
Can you also please fill out the troubleshoot template?!
Tecko
14 September 2023 07:12
4
Required Information
DietPi version | cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=21
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
bullseye
Kernel version | uname -a
Linux DietPi 5.4.253-current-odroidxu4 #2 SMP PREEMPT Mon Aug 14 01:33:04 UTC 2023 armv7l GNU/Linux
Architecture | dpkg --print-architecture
armhf
SBC model | echo $G_HW_MODEL_NAME
or (EG: RPi3)
Odroid XU3/XU4/MC1/HC1/HC2 (armv7l)
Power supply used | (EG: 5V 1A RAVpower)
5v 4A
SD card used | (EG: SanDisk ultra)
Sandisk class10
Bug report ID | echo $G_HW_UUID
59b07ee1-74e5-47b4-8b55-29d819b8a609
Steps to reproduce
Spotify connecting to raspotify but when press play connection fails.
I think audio device is not properly setup to raspotify and spotifyd. Both the same problem.
Crashreport logs :
Sep 14 08:47:34 DietPi systemd[1]: Stopping Raspotify (Spotify Connect Client)...
Sep 14 08:47:34 DietPi systemd[1]: raspotify.service: Succeeded.
Sep 14 08:47:34 DietPi systemd[1]: Stopped Raspotify (Spotify Connect Client).
Sep 14 08:47:34 DietPi systemd[1]: Started Raspotify (Spotify Connect Client).
Sep 14 08:48:11 DietPi librespot[3473]: [2023-09-14T06:48:11Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:4070
Sep 14 08:48:11 DietPi librespot[3473]: [2023-09-14T06:48:11Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:443
Sep 14 08:48:11 DietPi librespot[3473]: [2023-09-14T06:48:11Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:80
Sep 14 08:48:11 DietPi librespot[3473]: [2023-09-14T06:48:11Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gue1.spotify.com:80
Sep 14 08:48:18 DietPi librespot[3473]: [2023-09-14T06:48:18Z ERROR librespot_playback::player] Audio Sink Error Invalid Parameters: <AlsaSink> Device default Unsupported Format S16_LE (S16), ALSA function 'sn>
Sep 14 08:48:18 DietPi systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
Sep 14 08:48:18 DietPi systemd[1]: raspotify.service: Failed with result 'exit-code'.
Sep 14 08:48:18 DietPi systemd[1]: raspotify.service: Triggering OnFailure= dependencies.
Where do I have to select audio device hw:1,0 that is the device what needs to be select by raspotify
Jappe
14 September 2023 08:48
5
Sep 14 08:48:18 DietPi librespot[3473]: [2023-09-14T06:48:18Z ERROR librespot_playback::player] Audio Sink Error Invalid Parameters: <AlsaSink> Device default Unsupported Format S16_LE (S16), ALSA function 'sn>
I think a part of the error message is missing, can you have a look again an post it please?
Tecko
14 September 2023 08:53
6
ALSA function ‘snd_pcm_open’ failed with error ‘EBUSY: Device or resource busy’
1 Like
Jappe
14 September 2023 09:04
7
Hm seems like the audio device you are trying to access is already used by another process.
Did you add the correct audio device in /etc/default/raspotify
?
And you are using the onboard sound chip?
Tecko
14 September 2023 09:16
8
It is in the file /etc/raspotify/conf , at etc/default the direcotry is ampty. I think I am using now with spotify connect in LMS much easier