Ncmpcpp connection refused and ErrorType.USER_NEEDS_PREMIUM: 15

Hello
So I am trying to get ncmpcpp and mopidy-spotify to work.
I followed this guide to get it all setup, wasnt difficult, but then I got stuck because ncmpcpp refused connection. I looked around and check that port and hostname is set corretly but nothing worked. I can run mopidy, but then it gives this ERROR 2023-06-04 12:47:36,102 [38770:SpotifyEventLoop] spotify.session Spotify login error: <ErrorType.USER_NEEDS_PREMIUM: 15>, but then it just continues with :INFO 2023-06-04 12:47:36,689 [38770:SpotifyBackend-6 (_actor_loop)] mopidy_spotify.web Logged into Spotify Web API as bergistegi INFO 2023-06-04 12:47:40,743 [38770:SpotifyBackend-6 (_actor_loop)] mopidy_spotify.playlists Refreshed 9 Spotify playlists INFO 2023-06-04 12:47:40,744 [38770:MainThread] mopidy.commands Starting Mopidy core INFO 2023-06-04 12:47:40,751 [38770:Core-9 (_actor_loop)] mopidy.core.actor Loading state from /home/rafael/.local/share/mopidy/core/state.json.gz INFO 2023-06-04 12:47:40,751 [38770:Core-9 (_actor_loop)] mopidy.internal.storage File does not exist: /home/rafael/.local/share/mopidy/core/state.json.gz INFO 2023-06-04 12:47:40,751 [38770:Core-9 (_actor_loop)] mopidy.core.actor Failed to delete /home/rafael/.local/share/mopidy/core/state.json.gz INFO 2023-06-04 12:47:40,751 [38770:MainThread] mopidy.commands Starting Mopidy frontends: HttpFrontend INFO 2023-06-04 12:47:40,752 [38770:HttpFrontend-11 (_actor_loop)] mopidy.http.actor HTTP server running at [::ffff:127.0.0.1]:6680 INFO 2023-06-04 12:47:40,753 [38770:MainThread] mopidy.commands Starting GLib mainloop ^CINFO 2023-06-04 13:04:58,555 [38770:MainThread] mopidy.commands Interrupted. Exiting... INFO 2023-06-04 13:04:58,555 [38770:MainThread] mopidy.commands Stopping Mopidy frontends INFO 2023-06-04 13:04:58,558 [38770:MainThread] mopidy.commands Stopping Mopidy core INFO 2023-06-04 13:04:58,559 [38770:Core-9 (_actor_loop)] mopidy.core.actor Saving state to /home/rafael/.local/share/mopidy/core/state.json.gz INFO 2023-06-04 13:04:58,562 [38770:MainThread] mopidy.commands Stopping Mopidy backends INFO 2023-06-04 13:04:58,565 [38770:MainThread] mopidy.commands Stopping Mopidy audio INFO 2023-06-04 13:04:58,566 [38770:MainThread] mopidy.commands Stopping Mopidy mixer
I did not run it yet as a system service, I will maybe once it works.
Here is my ncmpcpp config mpd_host = "127.0.0.1" mpd_port = "6600" mpd_music_dir = ~/music and the error log is just and empty for some reason. Also here is my mpd .config [core] restore_state = true [mpd] enabled = true hostname = 127.0.0.1 port = 6600 [spotify] enabled = true username = ***** password = ***** client_id = ***** client_secret = ****** bitrate = 320
I am will continue to try to figure it out but I cant get it to work.

Sorry for late response, work to do. So I installed it from source reinstalled all dependencies. I think mopidy-spotify is now good, there is no error. Here you can see whole terminal response after running mopidy.

INFO     2023-06-09 22:13:02,852 [112093:MainThread] mopidy.__main__
  Starting Mopidy 3.4.1
INFO     2023-06-09 22:13:02,857 [112093:MainThread] mopidy.config
  Loading config from builtin defaults
INFO     2023-06-09 22:13:02,858 [112093:MainThread] mopidy.config
  Loading config from file:///home/rafael/.config/mopidy/mopidy.conf
INFO     2023-06-09 22:13:02,858 [112093:MainThread] mopidy.config
  Loading config from command line options
WARNING  2023-06-09 22:13:02,859 [112093:MainThread] mopidy.config
  Ignoring config section 'mpd' because no matching extension was found
INFO     2023-06-09 22:13:02,900 [112093:MainThread] mopidy.__main__
  Enabled extensions: stream, m3u, softwaremixer, file, spotify, http
INFO     2023-06-09 22:13:02,900 [112093:MainThread] mopidy.__main__
  Disabled extensions: none
INFO     2023-06-09 22:13:02,927 [112093:MainThread] mopidy.commands
  Starting Mopidy mixer: SoftwareMixer
INFO     2023-06-09 22:13:02,928 [112093:MainThread] mopidy.commands
  Starting Mopidy audio
INFO     2023-06-09 22:13:02,929 [112093:MainThread] mopidy.commands
  Starting Mopidy backends: FileBackend, M3UBackend, StreamBackend, SpotifyBackend
INFO     2023-06-09 22:13:02,932 [112093:Audio-2 (_actor_loop)] mopidy.audio.actor
  Audio output set to "autoaudiosink"
INFO     2023-06-09 22:13:03,815 [112093:SpotifyBackend-6 (_actor_loop)] mopidy_spotify.web
  Logged into Spotify Web API as bergistegi
INFO     2023-06-09 22:13:03,815 [112093:SpotifyBackend-6 (_actor_loop)] mopidy_spotify.playlists
  Refreshing Spotify playlists
INFO     2023-06-09 22:13:07,480 [112093:SpotifyBackend-6 (_actor_loop)] mopidy_spotify.playlists
  Refreshed 9 Spotify playlists
INFO     2023-06-09 22:13:07,480 [112093:MainThread] mopidy.commands
  Starting Mopidy core
INFO     2023-06-09 22:13:07,484 [112093:Core-7 (_actor_loop)] mopidy.core.actor
  Loading state from /home/rafael/.local/share/mopidy/core/state.json.gz
INFO     2023-06-09 22:13:07,486 [112093:MainThread] mopidy.commands
  Starting Mopidy frontends: HttpFrontend
INFO     2023-06-09 22:13:07,487 [112093:HttpFrontend-9 (_actor_loop)] mopidy.http.actor
  HTTP server running at [::ffff:127.0.0.1]:6680
INFO     2023-06-09 22:13:07,487 [112093:MainThread] mopidy.commands
  Starting GLib mainloop

But there is one thing, it is this: WARNING 2023-06-09 22:13:02,859 [112093:MainThread] mopidy.config Ignoring config section 'mpd' because no matching extension was found. This is my config of mpd:

[core]
restore_state = true

[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600

And here is of my ncmpcpp : mpd_host = "127.0.0.1" mpd_port = "6600" mpd_music_dir = ~/Music I will look how to solve that warning message of mpd, becuase it yellow, its not red. If you have any idea let me know and I am sorry again.

Ok so I used both the python pip and paru latest git aur and both have the warning of mpd not being loaded, any, I could find a way to fix it.

If you want to use the MPD functionality, install Mopidy-MPD from apt, or git, or pypi, or wherever.

Hello
So I install the mopidy-mpd an that got it to work for me.
But the connection is almost unusable, like its really bad. First I dont have my like songs, I just have my other playlist and I cant enter the playlist with enter button, I will just play a song. But the bigger problem, its laggy , because when I select a playlist and hit enter to play. It will often show at the bottom ncmpcpp timeout and just then and it would take around 10-30 sec or sometmies longer till my it works again, and the all the input comes at once, so if I did down arrow 2 times becuase it was not working it would do it in an instant. It is really wierd and I did not change anything with the configs since installing it.
here is the terminal messages from mopidy

INFO     2023-06-10 17:19:17,512 [2085:MainThread] mopidy.__main__
  Starting Mopidy 3.4.1
INFO     2023-06-10 17:19:17,519 [2085:MainThread] mopidy.config
  Loading config from builtin defaults
INFO     2023-06-10 17:19:17,519 [2085:MainThread] mopidy.config
  Loading config from file:///home/rafael/.config/mopidy/mopidy.conf
INFO     2023-06-10 17:19:17,519 [2085:MainThread] mopidy.config
  Loading config from command line options
INFO     2023-06-10 17:19:17,594 [2085:MainThread] mopidy.__main__
  Enabled extensions: http, file, mpd, stream, m3u, spotify, softwaremixer
INFO     2023-06-10 17:19:17,594 [2085:MainThread] mopidy.__main__
  Disabled extensions: none
INFO     2023-06-10 17:19:17,663 [2085:MainThread] mopidy.commands
  Starting Mopidy mixer: SoftwareMixer
INFO     2023-06-10 17:19:17,664 [2085:MainThread] mopidy.commands
  Starting Mopidy audio
INFO     2023-06-10 17:19:17,664 [2085:MainThread] mopidy.commands
  Starting Mopidy backends: SpotifyBackend, FileBackend, M3UBackend, StreamBackend
INFO     2023-06-10 17:19:17,671 [2085:Audio-2 (_actor_loop)] mopidy.audio.actor
  Audio output set to "autoaudiosink"
INFO     2023-06-10 17:19:18,766 [2085:SpotifyBackend-3 (_actor_loop)] mopidy_spotify.web
  Logged into Spotify Web API as bergistegi
INFO     2023-06-10 17:19:18,766 [2085:SpotifyBackend-3 (_actor_loop)] mopidy_spotify.playlists
  Refreshing Spotify playlists
INFO     2023-06-10 17:19:27,253 [2085:SpotifyBackend-3 (_actor_loop)] mopidy_spotify.playlists
  Refreshed 9 Spotify playlists
INFO     2023-06-10 17:19:27,254 [2085:MainThread] mopidy.commands
  Starting Mopidy core
INFO     2023-06-10 17:19:27,259 [2085:Core-7 (_actor_loop)] mopidy.core.actor
  Loading state from /home/rafael/.local/share/mopidy/core/state.json.gz
INFO     2023-06-10 17:19:27,259 [2085:Core-7 (_actor_loop)] mopidy.internal.storage
  File does not exist: /home/rafael/.local/share/mopidy/core/state.json.gz
INFO     2023-06-10 17:19:27,259 [2085:Core-7 (_actor_loop)] mopidy.core.actor
  Failed to delete /home/rafael/.local/share/mopidy/core/state.json.gz
INFO     2023-06-10 17:19:27,259 [2085:MainThread] mopidy.commands
  Starting Mopidy frontends: HttpFrontend, MpdFrontend
INFO     2023-06-10 17:19:27,260 [2085:HttpFrontend-9 (_actor_loop)] mopidy.http.actor
  HTTP server running at [::ffff:127.0.0.1]:6680
INFO     2023-06-10 17:19:27,261 [2085:MainThread] mopidy_mpd.actor
  MPD server running at [::ffff:0.0.0.0]:6600
INFO     2023-06-10 17:19:27,262 [2085:MainThread] mopidy.commands
  Starting GLib mainloop
INFO     2023-06-10 17:19:27,895 [2085:MpdSession-11 (_actor_loop)] mopidy_mpd.session
  New MPD connection from [::ffff:127.0.0.1]:43892
INFO     2023-06-10 17:19:40,712 [2085:MpdSession-12 (_actor_loop)] mopidy_mpd.session
  New MPD connection from [::ffff:127.0.0.1]:54434
INFO     2023-06-10 17:21:05,163 [2085:MpdSession-15 (_actor_loop)] mopidy_mpd.session
  New MPD connection from [::ffff:127.0.0.1]:58060
INFO     2023-06-10 17:21:11,172 [2085:MpdSession-16 (_actor_loop)] mopidy_mpd.session
  New MPD connection from [::ffff:127.0.0.1]:44414
INFO     2023-06-10 17:21:16,679 [2085:MpdSession-17 (_actor_loop)] mopidy_mpd.session
  New MPD connection from [::ffff:127.0.0.1]:44418
INFO     2023-06-10 17:21:21,724 [2085:MpdSession-18 (_actor_loop)] mopidy_mpd.session
  New MPD connection from [::ffff:127.0.0.1]:50322
INFO     2023-06-10 17:21:26,732 [2085:MpdSession-19 (_actor_loop)] mopidy_mpd.session
  New MPD connection from [::ffff:127.0.0.1]:50328
INFO     2023-06-10 17:21:31,739 [2085:MpdSession-20 (_actor_loop)] mopidy_mpd.session
  New MPD connection from [::ffff:127.0.0.1]:34280

I am still looking into and trying to figure it out.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.