# Spotify and Youtube not working ...

**URL:** <https://community.volumio.com/t/spotify-and-youtube-not-working/9537>\
**Category:** Help\
**Created:** [December 8, 2018, 4:54pm UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537 "2018-12-08T16:54:56Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rszemeti](https://community.volumio.com/letter_avatar_proxy/v4/letter/r/48db29/32.png) [@rszemeti](https://community.volumio.com/u/rszemeti)\
**Post date:** [December 8, 2018, 4:54pm UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/1 "2018-12-08T16:54:56Z")

</div>

So … latest version on a Pi with a iqaudio DAC.

Webradio works a treat, no issues.

Youtube, did the register thing … typed the code into [google.com/devices](http://google.com/devices) (hint: instead of just displaying the URL on the screen, why not just make a clickable link?) Registered the device ID, google says it’s happy.

When I try to search for a Youtube track, I get a pair of small blue popups on right hand side of screen. One says "register you device in order "etc, the other says “searcing Youtube, may take a while” … then after a while, “Error: no results” … never gets any results.

Spotify: I have a premium account … the plugin does correctly search spotify, and when I click a track it says "now playing … " in a popup, loads the cover image, knows the track length, knows its 320kbits or whatever … but it never plays, the timer stays on 0:00 forever. Skipping it forward, pressing play etc has no effect.

Sigh … any ideas?

---

<div class="post-metadata">

**Author:** ![chsims1](https://community.volumio.com/user_avatar/community.volumio.com/chsims1/32/87_2.png) [@chsims1](https://community.volumio.com/u/chsims1)\
**Post date:** [December 8, 2018, 5:22pm UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/2 "2018-12-08T17:22:50Z")

</div>

Spotify search and play tracks is working fine here. Can you reboot your device, try to play a track (and presumably fail), and the send a system log please?

---

<div class="post-metadata">

**Author:** ![rszemeti](https://community.volumio.com/letter_avatar_proxy/v4/letter/r/48db29/32.png) [@rszemeti](https://community.volumio.com/u/rszemeti)\
**Post date:** [December 8, 2018, 6:52pm UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/3 "2018-12-08T18:52:37Z")

</div>

Done.

[logs.volumio.org/volumio/AODRCjf.html](http://logs.volumio.org/volumio/AODRCjf.html)

It appears to be unable to connect to: [ap.spotify.com:80](http://ap.spotify.com:80)

Checked from a browser, also unabel to connect. It’s been like this for weeks, so I don’t think it’s a temproary outage.

---

<div class="post-metadata">

**Author:** ![rszemeti](https://community.volumio.com/letter_avatar_proxy/v4/letter/r/48db29/32.png) [@rszemeti](https://community.volumio.com/u/rszemeti)\
**Post date:** [December 12, 2018, 3:36am UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/4 "2018-12-12T03:36:31Z")

</div>

@chisms … any news?

---

<div class="post-metadata">

**Author:** ![rszemeti](https://community.volumio.com/letter_avatar_proxy/v4/letter/r/48db29/32.png) [@rszemeti](https://community.volumio.com/u/rszemeti)\
**Post date:** [December 14, 2018, 12:49am UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/5 "2018-12-14T00:49:33Z")

</div>

OK, no response, I am going to assume its broken and not likely to be fixed anytime soon.

---

<div class="post-metadata">

**Author:** ![twinterfinder](https://community.volumio.com/user_avatar/community.volumio.com/twinterfinder/32/572_2.png) [@twinterfinder](https://community.volumio.com/u/twinterfinder)\
**Post date:** [December 16, 2018, 1:16am UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/6 "2018-12-16T01:16:19Z")

</div>

I have exactly the same issue. Youtube plug-in used to be perfect.

In addition to that, as I tried to connect to spotify, it kept disconnecting itself. rebooted and tried it many times, sometimes worked sometimes didn’t. This all happened after the latest update.

I found it disconnected at specific track I played. Those songs just can’t be played.

Running at resp pi B+, Applepi DAC.

---

<div class="post-metadata">

**Author:** ![cmoulliard](https://community.volumio.com/user_avatar/community.volumio.com/cmoulliard/32/4503_2.png) [@cmoulliard](https://community.volumio.com/u/cmoulliard)\
**Post date:** [December 22, 2018, 12:06pm UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/7 "2018-12-22T12:06:44Z")

</div>

I can’t also access spotify using latest version of volumio installed in Pi3 + Allo Boss DAC. This message appears within the log when I click on the save button of the spotify plugin

I created a ticket : [github.com/volumio/volumio-plugins/issues/286](https://github.com/volumio/volumio-plugins/issues/286)

> [@](#):
>
> 2018-12-21T18:09:44.123Z - info: [{“prettyName”:“Spotify”,“name”:“spop”,“category”:“music\_service”,“version”:“1.3.5”,“icon”:“fa-spotify”,“enabled”:true,“active”:true},{“prettyName”:“Youtube Playback”,“name”:“youtube”,“category”:“music\_service”,“version”:“0.0.9”,“icon”:“fa-youtube”,“enabled”:true,“active”:true},{“prettyName”:“Backup & Restore Data”,“name”:“backup\_restore”,“category”:“system\_controller”,“version”:“0.7.2”,“icon”:“fa-floppy-o”,“enabled”:true,“active”:true}]  
> 2018-12-21T18:09:49.001Z - info: CoreCommandRouter::getUIConfigOnPlugin  
> 2018-12-21T18:10:25.874Z - info: CALLMETHOD: music\_service spop saveSpotifyAccount [object Object]  
> 2018-12-21T18:10:25.875Z - info: CoreCommandRouter::executeOnPlugin: spop , saveSpotifyAccount  
> 2018-12-21T18:10:26.038Z - info: SpopD Daemon Started  
> 2018-12-21T18:10:31.039Z - info: Connecting to daemon  
> 2018-12-21T18:10:31.050Z - info: SPOP command error:  
> 2018-12-21T18:10:31.051Z - info: message=connect ECONNREFUSED 127.0.0.1:6602, stack=Error: connect ECONNREFUSED 127.0.0.1:6602  
> at Object.\_errnoException (util.js:1022:11)  
> at \_exceptionWithHostPort (util.js:1044:20)  
> at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14), code=ECONNREFUSED, errno=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=6602  
> 2018-12-21T18:10:31.053Z - info: SPOP status error:  
> 2018-12-21T18:10:31.054Z - info: message=connect ECONNREFUSED 127.0.0.1:6602, stack=Error: connect ECONNREFUSED 127.0.0.1:6602  
> at Object.\_errnoException (util.js:1022:11)  
> at \_exceptionWithHostPort (util.js:1044:20)  
> at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14), code=ECONNREFUSED, errno=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=6602  
> 2018-12-21T18:10:31.336Z - info: Spotify access token expires at 1545419431041  
> 2018-12-21T18:10:31.337Z - info: Spotify access token is BQBwZhGeihRGpoErWvNisu1CvbFd2bVeYlcmrpYxMqk4XxKEgJALe3aACdS-HErMQ9Yoo\_el\_f-xDXvN\_zE  
> 2018-12-21T18:10:31.337Z - info: Spotify credentials grant success

---

<div class="post-metadata">

**Author:** ![cmoulliard](https://community.volumio.com/user_avatar/community.volumio.com/cmoulliard/32/4503_2.png) [@cmoulliard](https://community.volumio.com/u/cmoulliard)\
**Post date:** [December 22, 2018, 1:42pm UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/8 "2018-12-22T13:42:55Z")

</div>

I have investigated the log of the spotify daemon and it reports that we can’t use anymore spotify without a premium account

Is there a workaround ?

volumio@volumio:~$ systemctl status spop.service  
● spop.service - Spotify Daemon  
Loaded: loaded (/lib/systemd/system/spop.service; disabled)  
Active: failed (Result: signal) since Sat 2018-12-22 12:46:14 UTC; 3s ago  
Process: 30985 ExecStart=/usr/bin/spopd -f -c /etc/spopd.conf (code=killed, signal=TRAP)  
Main PID: 30985 (code=killed, signal=TRAP)

Dec 22 12:46:14 volumio systemd[1]: Started Spotify Daemon.  
Dec 22 12:46:14 volumio volumio[30985]: 2018-12-22 12:46:14 [SPTF] 12:46:14.336 I [offline\_authorizer.cpp:297] Unable to login offline: no such user  
Dec 22 12:46:14 volumio volumio[30985]: 2018-12-22 12:46:14 [SPTF] 12:46:14.342 I [ap:1752] Connecting to AP [ap.spotify.com:4070](http://ap.spotify.com:4070)  
Dec 22 12:46:14 volumio volumio[30985]: 2018-12-22 12:46:14 [SPTF] 12:46:14.442 I [ap:1226] Connected to AP: 104.199.65.235:4070  
Dec 22 12:46:14 volumio volumio[30985]: 2018-12-22 12:46:14 [SPTF] 12:46:14.651 E [ap:3953] Connection error: 409  
Dec 22 12:46:14 volumio volumio[30985]: 2018-12-22 12:46:14 [WARN] Login failed: User needs a premium account  
Dec 22 12:46:14 volumio volumio[30985]: 2018-12-22 12:46:14 [ERR] Could not get the playlist container.  
Dec 22 12:46:14 volumio systemd[1]: spop.service: main process exited, code=killed, status=5/TRAP  
Dec 22 12:46:14 volumio systemd[1]: Unit spop.service entered failed state.

---

<div class="post-metadata">

**Author:** ![twinterfinder](https://community.volumio.com/user_avatar/community.volumio.com/twinterfinder/32/572_2.png) [@twinterfinder](https://community.volumio.com/u/twinterfinder)\
**Post date:** [December 23, 2018, 2:00am UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/9 "2018-12-23T02:00:11Z")

</div>

My problem fixed.

I re-installed the spotify plug-in(whatever you have installed) and it works.  
You may need to re-log in the premium Spotify account.

Did the same to my youtube plug-in, too. It was recovered and work well now.

I bet the new update confilicted to the plug-in.

---

<div class="post-metadata">

**Author:** ![cmoulliard](https://community.volumio.com/user_avatar/community.volumio.com/cmoulliard/32/4503_2.png) [@cmoulliard](https://community.volumio.com/u/cmoulliard)\
**Post date:** [December 23, 2018, 12:11pm UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/10 "2018-12-23T12:11:50Z")

</div>

Is it possible to also add a remark/comment under the official Volumio Spotify plugin to specify that it only works with a Spotify Premium Account ?

---

<div class="post-metadata">

**Author:** ![chsims1](https://community.volumio.com/user_avatar/community.volumio.com/chsims1/32/87_2.png) [@chsims1](https://community.volumio.com/u/chsims1)\
**Post date:** [December 23, 2018, 12:16pm UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/11 "2018-12-23T12:16:57Z")

</div>

I’ve added the note to the forum list of Volumio plugins [here](https://volumio.org/forum/volumio-plugins-collection-t6251.html#p30689).

---

<div class="post-metadata">

**Author:** ![rszemeti](https://community.volumio.com/letter_avatar_proxy/v4/letter/r/48db29/32.png) [@rszemeti](https://community.volumio.com/u/rszemeti)\
**Post date:** [December 24, 2018, 10:51am UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/12 "2018-12-24T10:51:07Z")

</div>

I actually have a Spotify Premium account, so it’s not that.

It also doesnt explain the failure to work with YouTube …

---

<div class="post-metadata">

**Author:** ![rorygennaro](https://community.volumio.com/letter_avatar_proxy/v4/letter/r/4af34b/32.png) [@rorygennaro](https://community.volumio.com/u/rorygennaro)\
**Post date:** [March 17, 2019, 1:56am UTC](https://community.volumio.com/t/spotify-and-youtube-not-working/9537/13 "2019-03-17T01:56:39Z")

</div>

I used your last index.js and now my PlayLists works but Stotify FeaturedPlayLists. ❓
