Authentication form not visible
Hi,
I tried several ways of installing LMS with the spotty plugin: docker, debian native, OS X native. The authentication form, which I found in some tutorials online, was not visible to me in any of the three ways I installed it. I tried different browsers (Chrome, Firefox) and even tried to disable my Adblocker (Adguard Home) instance.
I am not sure whether this way of authentication is necessary, because I didn't find any official guide on configuring the plugin.
Thanks in advance!
Direct authentication is no longer possible. Spotify disabled that feature.
Did you try the easy way of using the Spotify app?
Ah ok, thanks for the feedback - I was not sure whether I was supposed to see the auth form. maybe you could clarify that in the documentation.
Unfortunately I was not. Is there any way to debug the communication? There is no firewall or ACLs in place. I even tried to install it on my macbook (and disabled the local firewall) and tried authentication from the same device or mobile (same wifi and subnet) but without any success...
Is there any other configuration necessary besides installing LMS and activating the plugin? Is there another way besides the "easy way"? :)
Trace from server.log - thanks in advance for your help!
[25-04-21 21:30:07.2243] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SpottyARMPi0Bin/Bin/spotty-custom
[25-04-21 21:30:07.2326] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-x86_64
[25-04-21 21:30:07.2393] Plugins::Spotty::Helper::helperCheck (118) Found helper capabilities table: do {
[25-04-21 21:30:07.2394] Plugins::Spotty::Helper::_findBin (195) Found helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-x86_64
[25-04-21 21:30:07.2457] Plugins::Spotty::Plugin::updateTranscodingTable (278) TMPDIR=/var/lib/squeezeboxserver/cache/spotty [spotty-x86_64] --ap-port=12321 -n Squeezebox -c "/var/lib/squeezeboxserver/cache/spotty" --single-track $URL$ --bitrate 320 --disable-discovery --disable-audio-cache $START$
[25-04-21 21:30:07.2458] Plugins::Spotty::Plugin::updateTranscodingTable (278) TMPDIR=/var/lib/squeezeboxserver/cache/spotty [spotty-x86_64] --ap-port=12321 -n Squeezebox -c "/var/lib/squeezeboxserver/cache/spotty" --single-track $URL$ --bitrate 320 --disable-discovery --disable-audio-cache --pass-through $START$
[25-04-21 21:30:07.2458] Plugins::Spotty::Plugin::updateTranscodingTable (278) TMPDIR=/var/lib/squeezeboxserver/cache/spotty [spotty-x86_64] --ap-port=12321 -n Squeezebox -c "/var/lib/squeezeboxserver/cache/spotty" --single-track $URL$ --bitrate 320 --disable-discovery --disable-audio-cache $START$ | [flac] -cs --channels=2 --sample-rate=44100 --bps=16 --endian=little --sign=signed --fast --totally-silent --ignore-chunk-sizes -
[25-04-21 21:30:07.2459] Plugins::Spotty::Plugin::updateTranscodingTable (278) TMPDIR=/var/lib/squeezeboxserver/cache/spotty [spotty-x86_64] --ap-port=12321 -n Squeezebox -c "/var/lib/squeezeboxserver/cache/spotty" --single-track $URL$ --bitrate 320 --disable-discovery --disable-audio-cache $START$ | [lame] -r --silent -q $QUALITY$ $BITRATE$ - -
[25-04-21 21:30:09.4512] Plugins::Spotty::Connect::DaemonManager::initHelpers (92) Checking Spotty Connect helper daemons...
[25-04-21 21:30:09.4514] Plugins::Spotty::Connect::DaemonManager::initHelpers (126) This is a standalone player with Spotify Connect disabled: cc:cc:64:4e:4f:a1
[25-04-21 21:30:44.7828] Plugins::Spotty::AccountHelper::renameCacheFolder (134) Trying to rename __AUTHENTICATE__ to
[25-04-21 21:30:44.7829] Plugins::Spotty::AccountHelper::renameCacheFolder (136) Error: No newId found in '__AUTHENTICATE__'
[25-04-21 21:30:44.7830] Plugins::Spotty::AccountHelper::renameCacheFolder (136) Backtrace:
frame 0: Slim::Utils::Log::logBacktrace (/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/AccountHelper.pm line 136)
frame 1: Plugins::Spotty::AccountHelper::renameCacheFolder (/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Settings/Auth.pm line 150)
frame 2: Plugins::Spotty::Settings::Auth::cleanup (/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Settings.pm line 61)
frame 3: Plugins::Spotty::Settings::handler (/usr/share/perl5/Slim/Web/HTTP.pm line 1165)
[25-04-21 21:30:44.8021] Plugins::Spotty::Settings::Auth::startHelper (126) Starting Spotty Connect deamon:
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-x86_64 -c /var/lib/squeezeboxserver/cache/spotty/__AUTHENTICATE__ -n Spotify Authorization (media) -a --ap-port=12321
[25-04-21 21:30:44.8058] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SpottyARMPi0Bin/Bin/spotty-custom
[25-04-21 21:30:44.8147] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty
[25-04-21 21:30:44.8217] Plugins::Spotty::Helper::_findBin (195) Found helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty
[25-04-21 21:30:44.8220] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-x86_64
[25-04-21 21:30:44.8289] Plugins::Spotty::Helper::_findBin (195) Found helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-x86_64
[25-04-21 21:31:09.4520] Plugins::Spotty::Connect::DaemonManager::initHelpers (92) Checking Spotty Connect helper daemons...
[25-04-21 21:31:09.4522] Plugins::Spotty::Connect::DaemonManager::initHelpers (126) This is a standalone player with Spotify Connect disabled: cc:cc:64:4e:4f:a1
Once you go to the Spotty prefs you should see it in your Spotify application. Unless your app is in a different network (eg. cell with your mobile), you have a firewall blocking the discovery, or the Docker container is misconfigured. Did you fire up a Spotify app when prompted by the auth screen in LMS?
Or see eg. https://forums.lyrion.org/forum/user-forums/3rd-party-hardware/109412-announce-squeezelite-esp32-dedicated-thread/page57#post1764824 about the Spotty test version. It offers a more standard oauth flow, but doesn't provide Connect mode.
Thanks for your response!
Currently I am running LMS on a debian LXC container within proxmox. Any specific settings required for the container?
What do you mean by the auth screen in LMS? I don't get any pop-ups or auth screens within LMS. Should there be some kind of pop-up/prompt within LMS? Any hints in the trace that indicate a problem?
Thank you!
Unless you've configured your container in host mode that means it is indeed running in a different network and can't be seen by your other devices. See the readme: https://hub.docker.com/r/lmscommunity/lyrionmusicserver (don't know why this piece of information is under "Synology"... it's generally important).
Once the container is correctly set up and you go to the Spotty Settings page in LMS you should get instructions about opening your Spotify app and selecting the Spotty Authenticator "player". Well, as seen in the screenshot you posted. You should get a screen similar to the screenshot on your screenshot 😁.
Similar problem here:
- LMS is running in docker, network_mode: host
- host OS is trueNAS, I'm not aware of any firewall settings
- the machine itself is in my home network and additionally part of a tailscale network, as are all my devices
Spotty does not appear on any client as a connectable endpoint. Not sure how to debug...
@Soukyuu I don't think your case is the same. The original report was about failure to authenticate. Yours is about using Connect mode. I'd recommend you visit https://forums.lyrion.org and search for Connect related topics. Or ask there.
Hmm maybe it's a misunderstanding, I also can't authenticate. There is no prompt to authorize a device, because no device shows up.
Ah, ok. Anything in server.log (see Settings/Information)? You could set the logging level for plugin.spotty to INFO to get more information about what is going on. Then try to authenticate again. And provide the resulting server.log.zip.
Hmm well it's weird. Somehow after applying a Spotty update it got fixed. The OAuth button showed up correctly and I could add my spotify account. The last issue to tackle is it stating Spotify Connect is not available.
edit: I guess this comment explains why? https://github.com/michaelherger/Spotty-Plugin/issues/141#issuecomment-3185564200