You are not logged in.

#1 2024-05-04 14:43:12

themusicalduck
Member
Registered: 2011-07-04
Posts: 126

[SOLVED] Can't run spotify-launcher or spotify from the AUR.

Edit: the fix was to remove ~/.cache/spotify

I used spotify-launcher for a long time on my desktop PC without any issue. Now I'm trying to set up Spotify on my laptop, but with both spotify-launcher and the AUR installed version, Spotify just exits with exit status 1 and no useful output.

➜  ~ spotify
/opt/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /opt/spotify/spotify)
/opt/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /opt/spotify/spotify)
/opt/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /opt/spotify/spotify)
➜  ~ echo $?
1
➜  ~ spotify-launcher
[2024-05-04T14:40:06Z INFO  spotify_launcher::config] Loading configuration file at "/etc/spotify-launcher.conf"
[2024-05-04T14:40:06Z INFO  spotify_launcher] No update needed
spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by spotify)
/home/theo/.local/share/spotify-launcher/install/usr/share/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /home/theo/.local/share/spotify-launcher/install/usr/share/spotify/spotify)
/home/theo/.local/share/spotify-launcher/install/usr/share/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /home/theo/.local/share/spotify-launcher/install/usr/share/spotify/spotify)
➜  ~ echo $?
1
➜  ~

The flatpak version works fine, but seems to struggle with playing local files. Any thoughts at all on what could be happening? I'm not sure if the gnutls warning is relevant or not. xorg-xwayland is installed.

I also tried forcing wayland in /etc/spotify-launcher.conf

extra_arguments = ["--enable-features=UseOzonePlatform", "--ozone-platform=wayland"]

but it made no difference.

I'm using up to date Arch with Gnome and GDM.

Thanks.

Last edited by themusicalduck (2024-05-05 16:13:07)

Offline

#2 2024-05-04 18:28:07

xerxes_
Member
Registered: 2018-04-29
Posts: 691

Re: [SOLVED] Can't run spotify-launcher or spotify from the AUR.

Do you have libcurl-gnutls installed? Compare it's library version(s) with what displays command 'ldd /path/to/your/spotify' or spotify-launcher binary ( "/usr/bin/spotify-launcher" from arch official package).

Last edited by xerxes_ (2024-05-04 18:30:16)

Offline

#3 2024-05-04 19:39:27

themusicalduck
Member
Registered: 2011-07-04
Posts: 126

Re: [SOLVED] Can't run spotify-launcher or spotify from the AUR.

This is what I've found:

➜  ~ pacman -Ql libcurl-gnutls
libcurl-gnutls /usr/
libcurl-gnutls /usr/lib/
libcurl-gnutls /usr/lib/libcurl-gnutls.so
libcurl-gnutls /usr/lib/libcurl-gnutls.so.3
libcurl-gnutls /usr/lib/libcurl-gnutls.so.4
libcurl-gnutls /usr/lib/libcurl-gnutls.so.4.0.0
libcurl-gnutls /usr/lib/libcurl-gnutls.so.4.1.0
libcurl-gnutls /usr/lib/libcurl-gnutls.so.4.2.0
libcurl-gnutls /usr/lib/libcurl-gnutls.so.4.3.0
libcurl-gnutls /usr/lib/libcurl-gnutls.so.4.4.0
libcurl-gnutls /usr/lib/libcurl-gnutls.so.4.5.0
libcurl-gnutls /usr/lib/libcurl-gnutls.so.4.6.0
libcurl-gnutls /usr/lib/libcurl-gnutls.so.4.7.0
libcurl-gnutls /usr/lib/libcurl-gnutls.so.4.8.0
libcurl-gnutls /usr/share/
libcurl-gnutls /usr/share/licenses/
libcurl-gnutls /usr/share/licenses/libcurl-gnutls
➜  ~ ldd /opt/spotify/spotify | grep gnutls
/opt/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /opt/spotify/spotify)
	libcurl-gnutls.so.4 => /usr/lib/libcurl-gnutls.so.4 (0x000073dfb2ed4000)
	libgnutls.so.30 => /usr/lib/libgnutls.so.30 (0x000073dfa4a1f000)
➜  ~ stat /usr/lib/libcurl-gnutls.so
  File: /usr/lib/libcurl-gnutls.so -> libcurl-gnutls.so.4
  Size: 19        	Blocks: 0          IO Block: 4096   symbolic link
Device: 259,2	Inode: 214568172   Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-05-04 15:37:02.642046869 +0100
Modify: 2024-04-26 18:52:55.000000000 +0100
Change: 2024-05-04 15:37:01.632044899 +0100
 Birth: 2024-05-04 15:37:01.632044899 +0100

/usr/lib/libcurl-gnutls.so seems to be symlinked to libcurl-gnutls.so.4. I can't see anything amiss here.

Offline

#4 2024-05-05 11:03:57

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,038

Re: [SOLVED] Can't run spotify-launcher or spotify from the AUR.

spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by spotify)
/home/theo/.local/share/spotify-launcher/install/usr/share/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /home/theo/.local/share/spotify-launcher/install/usr/share/spotify/spotify)
/home/theo/.local/share/spotify-launcher/install/usr/share/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /home/theo/.local/share/spotify-launcher/install/usr/share/spotify/spotify)

Those don't block spotify-launcher from starting and are probably a red herring .

create a fresh user and test if it works for them.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2024-05-05 14:34:47

Trinity1974
Member
Registered: 2024-05-05
Posts: 1

Re: [SOLVED] Can't run spotify-launcher or spotify from the AUR.

I am having the same:
/opt/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /opt/spotify/spotify)
/opt/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /opt/spotify/spotify)
/opt/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /opt/spotify/spotify)

However in my case Spotify does run but it cannot play songs or display playlists. Same with spotify-launcher.

'create a fresh user and test if it works for them' - I did that, still having the same behaviour.

Offline

#6 2024-05-05 14:37:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,660

Re: [SOLVED] Can't run spotify-launcher or spotify from the AUR.

Trinity1974 wrote:

'create a fresh user and test if it works for them' - I did that, still having the same behaviour.

Right, because as they said, the behavior you're seeing is normal.

Offline

#7 2024-05-05 16:03:44

themusicalduck
Member
Registered: 2011-07-04
Posts: 126

Re: [SOLVED] Can't run spotify-launcher or spotify from the AUR.

Tried it in a new user. Interestingly it didn't crash this time, but I got the exact same output and no window ever appears.

Offline

Board footer

Powered by FluxBB