Spotifyd / spotifyd

A spotify daemon
https://spotifyd.rs
GNU General Public License v3.0
9.68k stars 444 forks source link

"spotifyd: cannot execute: required file not found" on fresh Raspberry Pi 4 #1266

Closed EddieCarrera closed 5 months ago

EddieCarrera commented 5 months ago

I'm trying to get spotifyd installed on a fresh raspberry pi 4 running Raspberry Pi OS Lite (64-bit, Kernel version: 6.1 Debian version: 12 (bookworm)). I tried following along with these instructions along with the install guide in the wiki, but neither seems to allow me to run the spotifyd executable.

Here are the steps I personally took and the errors that comes up as a result:

ledfx@raspberrypi:~ $ wget https://github.com/Spotifyd/spotifyd/releases/download/v0.3.5/spotifyd-linux-armhf-default.tar.gz

--2024-02-15 20:15:49--  https://github.com/Spotifyd/spotifyd/releases/download/v0.3.5/spotifyd-linux-armhf-default.tar.gz
Resolving github.com (github.com)... 192.30.255.112
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/27839676/b953a915-70c9-4592-9183-099bfc2ee80d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240215%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240215T201549Z&X-Amz-Expires=300&X-Amz-Signature=a33bf10e66ed5fe7f3ab09cbf2cd26bd5f43e4377e0d86e89e08412bf474bdaa&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=27839676&response-content-disposition=attachment%3B%20filename%3Dspotifyd-linux-armhf-default.tar.gz&response-content-type=application%2Foctet-stream [following]
--2024-02-15 20:15:49--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/27839676/b953a915-70c9-4592-9183-099bfc2ee80d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240215%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240215T201549Z&X-Amz-Expires=300&X-Amz-Signature=a33bf10e66ed5fe7f3ab09cbf2cd26bd5f43e4377e0d86e89e08412bf474bdaa&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=27839676&response-content-disposition=attachment%3B%20filename%3Dspotifyd-linux-armhf-default.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7911899 (7.5M) [application/octet-stream]
Saving to: ‘spotifyd-linux-armhf-default.tar.gz.1’

spotifyd-linux-armhf-default.tar.gz.1                       100%[========================================================================================================================================>]   7.54M  5.06MB/s    in 1.5s

2024-02-15 20:15:51 (5.06 MB/s) - ‘spotifyd-linux-armhf-default.tar.gz.1’ saved [7911899/7911899]

ledfx@raspberrypi:~ $ wget https://github.com/Spotifyd/spotifyd/releases/download/v0.3.5/spotifyd-linux-armhf-default.sha512

--2024-02-15 20:16:01--  https://github.com/Spotifyd/spotifyd/releases/download/v0.3.5/spotifyd-linux-armhf-default.sha512
Resolving github.com (github.com)... 192.30.255.112
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/27839676/c29f76d0-c9e6-4a20-95fe-792be9317cb3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240215%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240215T201601Z&X-Amz-Expires=300&X-Amz-Signature=e12e190141a7cc2dc06ae83494625f9fcd48c78cdd2651264b94b7715b081f04&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=27839676&response-content-disposition=attachment%3B%20filename%3Dspotifyd-linux-armhf-default.sha512&response-content-type=application%2Foctet-stream [following]
--2024-02-15 20:16:01--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/27839676/c29f76d0-c9e6-4a20-95fe-792be9317cb3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240215%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240215T201601Z&X-Amz-Expires=300&X-Amz-Signature=e12e190141a7cc2dc06ae83494625f9fcd48c78cdd2651264b94b7715b081f04&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=27839676&response-content-disposition=attachment%3B%20filename%3Dspotifyd-linux-armhf-default.sha512&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 166 [application/octet-stream]
Saving to: ‘spotifyd-linux-armhf-default.sha512.1’

spotifyd-linux-armhf-default.sha512.1                       100%[========================================================================================================================================>]     166  --.-KB/s    in 0s

2024-02-15 20:16:02 (606 KB/s) - ‘spotifyd-linux-armhf-default.sha512.1’ saved [166/166]

ledfx@raspberrypi:~ $ sha512sum -c spotifyd-linux-armhf-default.sha512
spotifyd-linux-armhf-default.tar.gz: OK

ledfx@raspberrypi:~ $ sudo tar -xzf spotifyd-linux-armhf-default.tar.gz -C /usr/bin/
[sudo] password for ledfx:

ledfx@raspberrypi:~ $ sudo nano ~/.config/systemd/user/spotifyd.service
ledfx@raspberrypi:~ $ sudo nano ~/.config/spotifyd/spotifyd.conf
ledfx@raspberrypi:~ $ systemctl --user daemon-reload
ledfx@raspberrypi:~ $ /usr/bin/spotifyd --no-daemon
-bash: /usr/bin/spotifyd: cannot execute: required file not found
Ke-fle commented 4 months ago

Do you have a solution for this?

EddieCarrera commented 4 months ago

Yea, it worked with a spotifyd executable I built from source - which involved installing rust and building the cargo.

judahpaul16 commented 2 months ago

@Ke-fle Fix for me (without compiling from Rust) was to add the armhf base image with dpkg --add-architecture armhf and install these dependencies: libc6:armhf libdbus-1-3:armhf libasound2:armhf