glk1001 / plugin.audio.spotify

Unofficial Spotify for Kodi Add-on updated for Kodi 19 and 20.
GNU General Public License v3.0
9 stars 3 forks source link

zeroconf version 1.3.10 - addon isn't found in the LAN - libreelec #7

Open tobias-tobias opened 4 weeks ago

tobias-tobias commented 4 weeks ago

Hallo everybody,

updated spotify addon to version 1.3.10 on libreelec and before I deleted the addon cache. The addon isn't found in the local WLAN hotspot while computer app and handy app find each other. When I start the addon I get the message, that I have to connect to addon and after that this:

Failed to authenticate. Could not find the credentials file: "/spotty-cache/credentials.json". Terminating the spotify plugin

I tried to create the credentials.json file via touch command, but this did not make any difference.

Kind regards, Tobias

glk1001 commented 4 weeks ago

Before we try anything else try installing the plugin again from https://github.com/glk1001/glk1001.github.io. I've just updated the .zip with an older Spotify client_id which has fixed other users problems. If you're directly using the source from here, then you will also need to get the latest code and try again. Let me know how you go

tobias-tobias commented 3 weeks ago

Hello glk1001, the new zip makes no difference )-:

Tobias

tobias-tobias commented 3 weeks ago

... is there some zeroconf configuration in the libreelec settings?

glk1001 commented 3 weeks ago

Does this help?

https://forum.libreelec.tv/thread/10761-avahi-not-starting-with-zeroconf-turned-on-libreelec-rpi2-arm-8-2-1/

patricksrentsch commented 3 weeks ago

I experience a similar issue: i am using kodi 20.5 on three different devices: Raspi 4 with latest bookworm with identical packages installed. One Raspi is immediately seen as Spotty-Kodi when the plugin is started, the other two Raspis are not… I cannot see Kodi nor in the IOS Spotify App nor on the Webinterface. the two Raspi not showing up have the original 7’’ touchscreen whereas the one working is connected to a TV.

I even tried to swap the SD card, but with no success. Any ideas?

Kind regards Patrick

tobias-tobias commented 4 days ago

Hello! Sorry, that you have waited so long!

I installed spotify addon 11 today. There was no change.

After that I tried to connect via Wlan hotspot with my handy app and locked at the log file:

cat /storage/.kodi/temp/kodi.log |grep spot

_2024-09-11 21:55:12.169 T:4282 INFO : plugin.audio.spotify:spotty_helper:get_linux_spotty_path: Reported architecture: 'aarch64'. 2024-09-11 21:55:12.217 T:4282 INFO : plugin.audio.spotify:spotty_helper:test_spotty: ok spotty v1.3.1 - using librespot 0.4.2 d197824 (Built on 2023-08-06, Build ID: wUhGRbBx, Profile: release) 2024-09-11 21:55:12.218 T:4282 INFO : plugin.audio.spotify:spotty_helper:__get_spotty_path: Spotty architecture detected. Using spotty binary '/storage/.kodi/addons/plugin.audio.spotify/resources/lib/deps/spotty/arm-linux/spotty-muslhf'. 2024-09-11 21:55:17.237 T:4282 INFO : plugin.audio.spotify:spotty:run_spotty: Running spotty... 2024-09-11 21:55:17.243 T:4282 INFO : plugin.audio.spotify:spotty:run_spotty: Spotty args: /storage/.kodi/addons/plugin.audio.spotify/resources/lib/deps/spotty/arm-linux/spotty-muslhf --cache /storage/.kodi/userdata/addon_data/plugin.audio.spotify/spotty-cache --verbose --name Kodi-Spotty --zeroconf-port 10001 2024-09-11 21:55:32.994 T:4282 ERROR : plugin.audio.spotify:spotty_auth:zeroconf_authenticated_ok: Failed to authenticate. Could not find the credentials file: "/spotty-cache/credentials.json". 2024-09-11 21:55:36.321 T:4282 INFO : CPythonInvoker(18, /storage/.kodi/addons/plugin.audio.spotify/plugin.py): script aborted 2024-09-11 21:55:36.710 T:4281 ERROR : GetDirectory - Error getting plugin://plugin.audio.spotify/ 2024-09-11 21:55:36.721 T:1677 ERROR : CGUIMediaWindow::GetDirectory(plugin://plugin.audio.spotify/) failed_

Could this help to understand the problem? There is no credentials file:

find / -name 'credentials.json' find: /proc/1677/task/1706/fd/61: No such file or directory find: /proc/1677/task/4420/fdinfo/61: No such file or directory

tobias-tobias commented 4 days ago

Than I looked at this:

cat /etc/avahi/avahi-daemon.conf

_[server]

host-name=foo

domain-name=local

\ browse-domains=

use-ipv4=yes use-ipv6=yes

allow-interfaces=eth0

deny-interfaces=eth1

check-response-ttl=no

use-iff-running=no

enable-dbus=yes

disallow-other-stacks=no

allow-point-to-point=no

cache-entries-max=4096

clients-max=4096

objects-per-client-max=1024

entries-per-entry-group-max=32

ratelimit-interval-usec=1000000 ratelimit-burst=1000

[wide-area] enable-wide-area=no

[publish]

disable-publishing=no

disable-user-service-publishing=no

add-service-cookie=no

publish-addresses=yes

publish-hinfo=no publish-workstation=no

publish-domain=yes

publish-dns-servers=192.168.50.1, 192.168.50.2

publish-resolv-conf-dns-servers=yes

publish-aaaa-on-ipv4=yes

publish-a-on-ipv6=no

[reflector]

enable-reflector=no

reflect-ipv=no

reflect-filters=_airplay._tcp.local,_raop._tcp.local

[rlimits]

rlimit-as=

rlimit-core=0

rlimit-data=8388608

rlimit-fsize=0

rlimit-nofile=768

rlimit-stack=8388608

rlimit-nproc=3

_

cat /storage/.cache/services/avahi.conf

... empty file

glk1001 commented 3 days ago

Unfortunately your problem seems to be with avahi. In the log, there is the error 'Could not find the credentials file' which happens because the 'spotty' program has some error (I'm guessing to do with zeroconf) and does not produce the credentials file. From what I know, zeroconf just works with most Kodi setups but with Rasp Pi I really don't know.