Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing spotify related software on fresh install #4768

Closed
ezekini opened this issue Sep 22, 2021 · 9 comments
Closed

Missing spotify related software on fresh install #4768

ezekini opened this issue Sep 22, 2021 · 9 comments

Comments

@ezekini
Copy link

ezekini commented Sep 22, 2021

Creating a bug report/issue

Required Information

  • DietPi version
    G_DIETPI_VERSION_CORE=7
    G_DIETPI_VERSION_SUB=6
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH='master'
    G_GITOWNER='MichaIng'
    G_LIVE_PATCH_STATUS[0]='not applicable'
    G_LIVE_PATCH_STATUS[1]='applied'
  • Distro version: bullseye 0
  • Kernel version: Linux DietPi 5.10.60-v8+ # 1449 SMP PREEMPT Wed Aug 25 15:01:33 BST 2021 aarch64 GNU/Linux
  • SBC model: RPi 3 Model B+ (aarch64)

Additional Information (if applicable)

  • Software title : Raspotify / Spotifyd
  • Was the software title installed freshly or updated/migrated? Fresh
  • Can this issue be replicated on a fresh installation of DietPi? Yes

Steps to reproduce

  1. Fresh install on rpi3B+
  2. Search for Spotifyd or Raspotify in dietpi-software. No software found
@Joulinar
Copy link
Collaborator

Hi,

these software title are disabled on 64bit aarch64

ID 141 | =0 | Spotify Connect Web: web interface for spotify premium | +ALSA DISABLED for aarch64 | https://dietpi.com/docs/software/media/#spotify-connect-web
ID 167 | =0 | Raspotify: spotify connect client | +ALSA DISABLED for aarch64 | https://dietpi.com/docs/software/media/#raspotify
ID 199 | =0 | Spotifyd: Open source Spotify client running as UNIX daemon | +ALSA DISABLED for aarch64 | https://dietpi.com/docs/software/media/#spotifyd

@ezekini
Copy link
Author

ezekini commented Sep 22, 2021

Hi,

these software title are disabled on 64bit aarch64

ID 141 | =0 | Spotify Connect Web: web interface for spotify premium | +ALSA DISABLED for aarch64 | https://dietpi.com/docs/software/media/#spotify-connect-web
ID 167 | =0 | Raspotify: spotify connect client | +ALSA DISABLED for aarch64 | https://dietpi.com/docs/software/media/#raspotify
ID 199 | =0 | Spotifyd: Open source Spotify client running as UNIX daemon | +ALSA DISABLED for aarch64 | https://dietpi.com/docs/software/media/#spotifyd

Thank you for the reply. Does that mean that it doesn't work or just not tested? I was tempted to try to install from source (curl -sL https://dtcooper.github.io/raspotify/install.sh | sh), but wanted to ask here first.

@Joulinar
Copy link
Collaborator

it's a limitation of Raspotify as it did not support arm64

repository 'https://dtcooper.github.io/raspotify raspotify InRelease' doesn't support architecture 'arm64'

@MichaIng
Copy link
Owner

MichaIng commented Sep 22, 2021

The repository which is installed by the installer and where Raspotify is installed from is 32-bit (ARMv6) only, so that doesn't work on the 64-bit image.

Spotifyd currently does not ship aarch64 binaries: https://github.com/Spotifyd/spotifyd/releases
But it seems it is about to be implemented:

Spotify Connect Web didn't see some development the last years: https://github.com/Fornoth/spotify-connect-web
The pre-compiled binaries provided with the releases are armv7l only, but I see that all required shared binaries are packaged together with the archive, so it may run on aarch64 and mostly independent of the host system anyway. This is something you might want to test:

There is a fork which fixed the build it seems: https://github.com/theohbrothers/spotify-connect-web
So theoretically we may be able to build own binaries which use the shared system libraries instead of shipping the whole set, and then also for other architectures. Since Spotify Connect Web has a web interface, it is unique among the three, so maybe someone wants to tinker with this 🙂.

@ezekini
Copy link
Author

ezekini commented Sep 22, 2021

OK, thank you. Googling a little bit ended up finding spocon. Installed and configured in one minute, been using it for a few hours, working as expected; in case anyone finds the same issue.

@MichaIng
Copy link
Owner

Looks good. Only things:

  • Java... Can you show the memory usage? htop
  • The installer installs the Ubuntu Bionic suite while Debian Bullseye is closer to Ubuntu Focal:
    sed -i 's/bionic/focal/' /etc/apt/sources.list.d/spocon.list
    However, at the moment this doesn't make any difference as both ship the exactly same package from the pool 😄. So it's more to be consistent and future proove.

@ezekini
Copy link
Author

ezekini commented Sep 22, 2021

Thank you for the tip-command.Here's a screenshot while streaming, no idea what's acceptable.

image

@MichaIng
Copy link
Owner

Thanks, as expected, very high memory usage of > 200 MiB, the price of using Java applications in most cases. For comparison: Spotifyd uses 11 MiB and a constant 0.0% CPU usage on idle. Or is it currently streaming music in your case (7.3% CPU usage)?

However, sufficient memory is available, so not a big issue in your case 🙂.

@MichaIng
Copy link
Owner

MichaIng commented Oct 6, 2021

I'll close this issue. Feel free to reopen if required.

@MichaIng MichaIng closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants