PDA

View Full Version : Spotty Connect is visible but does not produce output



Sindaugh
2018-02-27, 15:20
Hi there,

I started with LMS as my wife was happily using a Sonos with her Spotify - looking at the prices though... I still have my Raspi :-)

I am running LMS and Spotty on my Raspi B with a Hifiberry Digi. Webradio plays fine with piCorePlayer started from LMS. Spotty Connect is visible on a registered Spotify App on a mobile. I can select the piCorePlayer with the exact name as defined. However ... no sound comes from the stereo...

Webradio works like a charm though

Log (Spotty in Debug)

Plugins::Spotty::Connect::DaemonManager::initHelpe rs (54) Initializing Spotty Connect helper daemons...
this line repeats itself every 1 minute


[18-02-27 23:13:04.4660] Plugins::Spotty::Connect::__ANON__ (256) Current Connect state:
do {
my $a = {
context => "spotify:album:6SmilE6RnHtRiZfJ9Ng4zr",
device => {
id => "7769113f1c3db537e4e6827de2615c3799d70f17",
is_active => bless(do{\(my $o = 1)}, "JSON::XS::Boolean"),
is_restricted => bless(do{\(my $o = 0)}, "JSON::XS::Boolean"),
name => "Wohnzimmer",
type => "Speaker",
volume_percent => 55,
},
is_playing => 'fix',
item => {
album => {
album_type => "album",
artists => [
{
external_urls => {
spotify => "https://open.spotify.com/artist/3t2iKODSDyzoDJw7AsD99u",
},
href => "https://api.spotify.com/v1/artists/3t2iKODSDyzoDJw7AsD99u",
id => "3t2iKODSDyzoDJw7AsD99u",
name => "Bibi Blocksberg",
type => "artist",
uri => "spotify:artist:3t2iKODSDyzoDJw7AsD99u",
},
],
external_urls => {
spotify => "https://open.spotify.com/album/6SmilE6RnHtRiZfJ9Ng4zr",
},
href => "https://api.spotify.com/v1/albums/6SmilE6RnHtRiZfJ9Ng4zr",
id => "6SmilE6RnHtRiZfJ9Ng4zr",
image => "https://i.scdn.co/image/1de67f5445e2719dcb77f43de61ac90a99d06169",
name => "Bibi total verknallt! - H\xF6rbuch",
release_date => "2014-06-06",
"release_date_precision" => "day",
type => "album",
uri => "spotify:album:6SmilE6RnHtRiZfJ9Ng4zr",
},
artists => [
{
external_urls => {
spotify => "https://open.spotify.com/artist/3t2iKODSDyzoDJw7AsD99u",
},
href => "https://api.spotify.com/v1/artists/3t2iKODSDyzoDJw7AsD99u",
id => "3t2iKODSDyzoDJw7AsD99u",
name => "Bibi Blocksberg",
type => "artist",
uri => "spotify:artist:3t2iKODSDyzoDJw7AsD99u",
},
],
disc_number => 1,
duration_ms => 405_373,
explicit => 'fix',
external_ids => { isrc => "DEB581400176" },
external_urls => {
spotify => "https://open.spotify.com/track/32kwhQi85sgCKUIvB3lqZ2",
},
href => "https://api.spotify.com/v1/tracks/32kwhQi85sgCKUIvB3lqZ2",
id => "32kwhQi85sgCKUIvB3lqZ2",
name => "Bibi total verknallt! - Kapitel 1: Bruchlandung",
popularity => 24,
preview_url => "https://p.scdn.co/mp3-preview/62defb8dabf75c52c829ada83f615a44a3357e7b?cid=93aac 68fb06348598c1e67734dfaceee",
track_number => 1,
type => "track",
uri => "spotify:track:32kwhQi85sgCKUIvB3lqZ2",
},
no_context => 1,
progress => "405.373",
progress_ms => 405_373,
repeat_state => "off",
shuffle_state => 'fix',
timestamp => "1519769583681",
track => 'fix',
};
$a->{is_playing} = \${$a->{device}{is_active}};
$a->{item}{explicit} = \${$a->{device}{is_restricted}};
$a->{shuffle_state} = \${$a->{device}{is_restricted}};
$a->{track} = $a->{item};
($a, "start");
}
[18-02-27 23:13:04.4704] Plugins::Spotty::Connect::__ANON__ (266) Got a new track to be played: spotify:track:32kwhQi85sgCKUIvB3lqZ2
Looks fine to me. Maybe it is something with the 55% volume? Digi only knows 0 and 100...

PS: Never mind the title playing - was my daughters mobile

Any help would be great!

Thanks a lot.

mherger
2018-02-27, 21:58
You say Raspberry Pi B - is this a 2/3B? First generation might not be good enough.

And could you please provide a log file of the full session?

Sindaugh
2018-02-28, 01:45
Hi,

thanks for the quick answer. I am afraid it is a Raspberry Pi 1 Model B revision 1.2 - I remember soldering on the 8 PIN head for the Hifiberry Digi

Sure, I can get you all the logs, but what do you mean with full session? Since startup? LMS log? piCorePlayer log?

Sorry, but I just started playing with LMS and spotty, so I still have a lot of questions :-)

Thanks

mherger
2018-02-28, 02:22
> thanks for the quick answer. I am afraid it is a Raspberry Pi 1 Model B
> revision 1.2 - I remember soldering on the 8 PIN head for the Hifiberry
> Digi

Ok, I guess that just won't work. I've seen spotty crash on a Pi0 with
the double of memory.

--

Michael

Sindaugh
2018-02-28, 02:27
OK.

Then I need to get it running on my QNAP 212 :-) - Or I convert some old notebook to the task.

Thanks for the help though.

One last question:
If I move LMS and thus spotty to a different machine - would the raspberry be powerful enough to just play the music coming from LMS?

mherger
2018-02-28, 03:15
> Then I need to get it running on my QNAP 212 :-) - Or I convert some old
> notebook to the task.

I haven't had good feedback about Spotty on QNAP... People are
struggling eg. to get IO::Socket::SSL installed on the device.

Buying a Pi3 might be a much more reasonable path forward.

> If I move LMS and thus spotty to a different machine - would the
> raspberry be powerful enough to just play the music coming from LMS?

Yes, playback shouldn't be any problem at all.

--

Michael

Sindaugh
2018-02-28, 03:25
Thanks again.

Yeah, I am looking in buying a PI 3 - that would also move some stuff from the QNAP to the PI3 then.

Sindaugh
2018-03-04, 15:49
Hi there,

ok, I am back. Got a Pi3 - working. But I am stuck in the same place. Radio works fine - spotty just does not. It says in the LMS that it is playing (even got it to play at 100% volume ... it is the setting of the mobile device)

I now entered some credentials into the spotty plugin. I can now play with the other device, but I can't control it, as it is a different account.

Summary:
- Spotty with credentials work (phew not a sound issue, player is fine), but not usable for me as I need to play different accounts
- just spotify connect does not work

On a side note, spotify on the mobile sometimes shows a spotify connect (raspberry).
I do not know where that is coming from, but uninstalled all other LMS I had (qnap, raspi 1B) - raspi3 is last LMS standing...

Thanks for your help
Steven

mherger
2018-03-04, 23:11
> ok, I am back. Got a Pi3 - working. But I am stuck in the same place.

Ok, now tell us a little bit about your setup:

- what OS?
- what LMS version?
- what Spotty version?
- server.log after you enabled plugin.spotty=info in
Settings/Advanced/Logging

> I now entered some credentials into the spotty plugin. I can now play
> with the other device, but I can't control it, as it is a different
> account.

"the other device"?

> - just spotify connect does not work

Did you enable Connect for your players in the Spotty settings, too?

--

Michael

Sindaugh
2018-03-05, 00:42
Hi,

I'll look up the details tonight (gotta earn some money first)

From the top of my head:
OS: raspbian lite (latest - did a complete fresh install yesterday with update and upgrade)
LMS: 4.9.1
Spotty: The one represented in the plugins 3rd party


regarding the other device:
- bad wording
We have a mobile phone with spotify account A and a mobile phone with account B. Both phones can be active at the same time used by different members of my family, playing different songs. I want both of them to be able to play on the piCorePlayer attached to the stereo - obviously not in parallel.

At a later stage I want to have more piCorePlayers around the house.

More tonight.

Thanks again

Sindaugh
2018-03-05, 13:39
Okies,

OS

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"


pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux

LMS - sorry it is in German

Logitech Media Server Version: 7.9.1 - 1519287262 @ Thu Feb 22 09:24:41 CET 2018
Hostname: raspberrypi
IP-Adresse des Servers: 192.168.1.XYZ
Server-HTTP-Portnummer: 9000
Betriebssystem: Debian - DE - utf8
Plattformarchitektur: armv7l-linux
Perl-Version: 5.24.1 - arm-linux-gnueabihf-thread-multi-64int
Audio::Scan: 0.95
Datenbankversion: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
Anzahl erkannter Player: 1

and the player:

Player-Modell: SqueezeLite
Gerätetyp: squeezelite
Firmware: v1.8.7-999
IP-Adresse des Players: 192.168.1.XYZ
MAC-Adresse des Players: ...

Spotty version is 2.1.11 (says so in plugins)

Log does not give much... nothing on INFO, currently set to DEBUG
[CODE][18-03-04 22:50:43.2599] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
[18-03-05 20:37:21.4557] Plugins::Spotty::Plugin::purgeAudioCacheAfterXTrac ks (432) Played 1 song(s) since last audio cache purge.
[18-03-05 20:38:00.0012] Plugins::Spotty::Connect::DaemonManager::initHelpe rs (54) Initializing Spotty Connect helper daemons...
[18-03-05 20:39:00.0013] Plugins::Spotty::Connect::DaemonManager::initHelpe rs (54) Initializing Spotty Connect helper daemons...
1st line is the last from yesterday before shutdown

Sindaugh
2018-03-05, 13:45
More Okay (might be that my previous post is not yet approved though),

I found the persist log settings setting :-)

Here is spotty after restart:

[18-03-05 20:41:33.6265] Slim::Utils::PluginManager::_loadPluginCache (621) Spotty
[18-03-05 20:41:36.5920] Slim::Utils::PluginManager::load (241) Loading plugin: Spotty
[18-03-05 20:41:36.7467] Slim::Utils::PluginManager::load (343) Adding Bin directory: [/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin]
[18-03-05 20:41:36.7474] Slim::Utils::PluginManager::load (374) Adding HTML directory: [/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/HTML]

mherger
2018-03-05, 22:54
> Here is spotty after restart:

Not with plugin.spotty enabled, is this? Please provide the full
server.log file.

--

Michael

Sindaugh
2018-03-06, 00:21
Hmmm, that was pretty much it after I filtered for "spotty" in the log.

What I did now:
- deactivate Spotty -> restart
- activate spotty -> restart

The log is too big to paste here, so I put it in the attachments.

Thanks a lot

mherger
2018-03-06, 01:22
> Hmmm, that was pretty much it after I filtered for "spotty" in the log.

Go to Settings/Advanced/Logging, reset the settings (in the dropdown at
the top), check the "keep on reboot" box, enable logging for
plugin.spotty, apply.

What you've enabled is something like server.plugin. That's not what I'm
looking for.

And then there's a link to download the server.log file as a zip archive ;-)
--

Michael

Sindaugh
2018-03-06, 01:35
Hello,

I am going to do what you asked. I noticed something on the LMS UI

Bitte überprüfen Sie Einstellungen/Erweitert/Spotty Spotify für Squeezebox im Web Interface
Bitte überprüfen Sie Einstellungen/Erweitert/Spotty Spotify für Squeezebox im Web Interface
0, Ogg Vorbis (Spotify)
Maybe that also helps

24662

mherger
2018-03-06, 01:51
> Bitte überprüfen Sie Einstellungen/Erweitert/Spotty Spotify für Squeezebox im Web Interface

This usually means you haven't authenticated your Spotty plugin. Did you
check the settings as the message says?

Also make sure your partner is using the same wifi connection as your
LMS is on.

--

Michael

Sindaugh
2018-03-06, 04:59
Hello,

maybe I have a misconsception here. I thought that checking "Spotify Connect" in the players section would be enough. Do I also need to enter credentials in the Spotify plugin?


Thanks

slartibartfast
2018-03-06, 05:09
Hello,

maybe I have a misconsception here. I thought that checking "Spotify Connect" in the players section would be enough. Do I also need to enter credentials in the Spotify plugin?


ThanksIs your Spotify account listed in the Spotty settings page?

Sent from my SM-G900F using Tapatalk

Sindaugh
2018-03-06, 13:48
Hello,

well, what can I say... suddenly it works. I used two different Spotify accounts on two different mobile phones and both played alright. I did not register any in the Spotty plugin. Still the first to connect was registered - I guess that is ok.

I'll keep an eye on it, but for now it is working.

Sorry for the trouble.

JimKnopf182
2018-04-11, 04:12
Hi guys,

because my problem is roughly the same, I will attach my problem to this thread.

In my setup everything works really fine (authentication works, playing works), until I reboot my raspberry 3.
After a reboot the plugin setup of spotty says that Iam still logged in, but my spotify songs dont want to play.

I have the same error: > Bitte überprüfen Sie Einstellungen/Erweitert/Spotty Spotify für Squeezebox im Web Interface

It feels like the setup forget my authentication after a reboot, but the setup of spotty says still, that Iam logged in.

Hope for some help.

Thanks in advance!

Markus

mherger
2018-04-11, 05:03
Hi guys,

because my problem is roughly the same, I will attach my problem to this thread.


If you believe it's the same issue, then you should probably post the same information I keep asking for...

https://forums.slimdevices.com/showthread.php?108764-Spotty-Connect-is-visible-but-does-not-produce-output&p=908441&viewfull=1#post908441

JimKnopf182
2018-04-11, 10:58
Very thanks for your app and your help!!

Now some infos of my setup and log:
OS:
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"

LMS:
7.9.1 - 1523349116
But tried another stable releases

Spotty:
v2.3.1

Attached my log.


Some other info:
After a reboot I can delete my account and try to add my account again, but this is not possible.
Just after a complete deinstallation and new installation of lms, I can add my account again.
After a reboot same behaviour.

mherger
2018-04-11, 15:22
> Now some infos of my setup and log:
> OS:
> NAME="Raspbian GNU/Linux"
> VERSION_ID="7"
> VERSION="7 (wheezy)"

Is this max2play or pure Raspbian?

--

Michael

JimKnopf182
2018-04-11, 23:40
This is just raspbian with some other server apps on it, like fhem and tvheadend.

mherger
2018-04-11, 23:59
> This is just raspbian with some other server apps on it, like fhem and
> tvheadend.

The log file snippet you posted has indications of networking failure.
Not messages by Spotty, but LMS. But Spotty obviously would fail, too,
if the network wasn't available.

Is this an ongoing issue? You said it did work fine until you rebooted?
Would a LMS restart fix it? What about memory usage?

And no way to update Raspbian? Wheezy is rather old.

--

Michael

JimKnopf182
2018-04-13, 01:44
Thanks for your quick reply.

My pi is directly connected to a switch and then to the router, everything over lan.
I wouldnt know why my pi lost network sometimes.

Yes this is an ongoing issue, everytime I install lms, configure spotty with authentication, after a reboot spotify songs plays 2 seconds without audio output and stops then. I try to authenticate new, but this is not possible.
Also Spotify Connect isnt visible anymore.
I tried to restart lms, but no solution.

memory usage:
total used free shared buffers cached
Mem: 925M 888M 37M 0B 53M 575M
-/+ buffers/cache: 259M 665M
Swap: 99M 0B 99M

Something else of my log:
[18-04-13 10:53:32.0042] Plugins::Spotty::Connect::Daemon::start (66) Starting Spotty Connect daemon:
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/arm-linux/spotty-muslhf -c /var/lib/squeezeboxserver/cache/spotty/797b9804 -n Kueche --disable-audio-cache --bitrate 96 --player-mac 00:04:20:16:5a:56 --lms 192.168.1.47:9000 --disable-discovery
[18-04-13 10:53:42.0018] Plugins::Spotty::Plugin::purgeAudioCache (464) Starting audio cache cleanup...
[18-04-13 10:53:42.0034] Plugins::Spotty::Plugin::purgeAudioCache (518) Starting temporary file cleanup... (/var/lib/squeezeboxserver/cache/spotty)
[18-04-13 10:53:42.0059] Plugins::Spotty::Plugin::purgeAudioCache (538) Audio cache cleanup done!

I think I will get a try to update to a newer raspbian os, but it is not easy as it looks, because of a lot of server stuff on it.
A lot of work -.-