Installed mopidy + ncmpcpp with no issue but not working at all

HI
Installed mopidy + mpd + ncmpcpp in ubuntu Eoan to listen my spotify music this way

sudo apt install mpd mopidy mopidy-spotify ncmpcpp

configured using official docs. Launched at terminal ok But nothing appears on ncmpcpp. No playlist, no search function…
ncmpcpp is playing local music ok. I can not see any error. Need some guidance.
Seems that mopidy is ignoring spotify config. (see config file below)

Config files and output below:

CONFIG (running mopidy config on terminal)

[core]
cache_dir = $XDG_CACHE_DIR/mopidy
config_dir = $XDG_CONFIG_DIR/mopidy
data_dir = $XDG_DATA_DIR/mopidy
max_tracklist_length = 10000
restore_state = false

[logging]
verbosity = 0
format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(message)s
color = true
config_file =

[audio]
mixer = software
mixer_volume = 
output = autoaudiosink
buffer_time = 

[proxy]
scheme = 
hostname = 
port = 
username = 
password = 

[file]
enabled = true
media_dirs = 
  $XDG_MUSIC_DIR|Music
  ~/|Home
excluded_file_extensions = 
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .pdf
  .png
  .txt
  .zip
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 1000

[http]
enabled = true
hostname = 127.0.0.1
port = 6680
zeroconf = Mopidy HTTP server on $hostname
allowed_origins = 
csrf_protection = true
default_app = mopidy

[m3u]
enabled = true
base_dir = $XDG_MUSIC_DIR
default_encoding = latin-1
default_extension = .m3u8
playlists_dir =

[softwaremixer]
enabled = true

[stream]
enabled = true
protocols = 
  http
  https
  mms
  rtmp
  rtmps
  rtsp
metadata_blacklist = 
timeout = 5000
`

OUTPUT (running on terminal)

INFO     2020-02-11 16:43:40,391 [21619:MainThread] mopidy.__main__
   2   │   Starting Mopidy 3.0.1
   3   │ DEBUG    2020-02-11 16:43:40,399 [21619:MainThread] mopidy.ext
   4   │   Loading entry point: file = mopidy.file:Extension
   5   │ DEBUG    2020-02-11 16:43:40,400 [21619:MainThread] mopidy.ext
   6   │   Loaded extension: Mopidy-File 3.0.1
   7   │ DEBUG    2020-02-11 16:43:40,400 [21619:MainThread] mopidy.ext
   8   │   Loading entry point: http = mopidy.http:Extension
   9   │ DEBUG    2020-02-11 16:43:40,400 [21619:MainThread] mopidy.ext
  10   │   Loaded extension: Mopidy-HTTP 3.0.1
  11   │ DEBUG    2020-02-11 16:43:40,400 [21619:MainThread] mopidy.ext
  12   │   Loading entry point: m3u = mopidy.m3u:Extension
  13   │ DEBUG    2020-02-11 16:43:40,400 [21619:MainThread] mopidy.ext
  14   │   Loaded extension: Mopidy-M3U 3.0.1
  15   │ DEBUG    2020-02-11 16:43:40,400 [21619:MainThread] mopidy.ext
  16   │   Loading entry point: softwaremixer = mopidy.softwaremixer:Extension
  17   │ DEBUG    2020-02-11 16:43:40,401 [21619:MainThread] mopidy.ext
  18   │   Loaded extension: Mopidy-SoftwareMixer 3.0.1
  19   │ DEBUG    2020-02-11 16:43:40,401 [21619:MainThread] mopidy.ext
  20   │   Loading entry point: stream = mopidy.stream:Extension
  21   │ DEBUG    2020-02-11 16:43:40,401 [21619:MainThread] mopidy.ext
  22   │   Loaded extension: Mopidy-Stream 3.0.1
  23   │ DEBUG    2020-02-11 16:43:40,403 [21619:MainThread] mopidy.ext
  24   │   Discovered extensions: file, http, m3u, softwaremixer, stream
  25   │ INFO     2020-02-11 16:43:40,407 [21619:MainThread] mopidy.config
  26   │   Loading config from builtin defaults
  27   │ DEBUG    2020-02-11 16:43:40,408 [21619:MainThread] mopidy.config
  28   │   Loading config from file:///etc/xdg/xdg-regolith/mopidy/mopidy.conf failed; it does not exist
  29   │ DEBUG    2020-02-11 16:43:40,408 [21619:MainThread] mopidy.config
  30   │   Loading config from file:///etc/xdg/mopidy/mopidy.conf failed; it does not exist
  31   │ INFO     2020-02-11 16:43:40,408 [21619:MainThread] mopidy.config
  32   │   Loading config from file:///home/jose/.config/mopidy/mopidy.conf
  33   │ INFO     2020-02-11 16:43:40,410 [21619:MainThread] mopidy.config
  34   │   Loading config from command line options
  35   │ DEBUG    2020-02-11 16:43:40,413 [21619:MainThread] mopidy.config
  36   │   Ignoring unknown config section: spotify-tunigo
  37   │ DEBUG    2020-02-11 16:43:40,413 [21619:MainThread] mopidy.config
  38   │   Ignoring unknown config section: spotify
  39   │ DEBUG    2020-02-11 16:43:40,413 [21619:MainThread] mopidy.config
  40   │   Ignoring unknown config section: mpd
  41   │ DEBUG    2020-02-11 16:43:40,414 [21619:MainThread] mopidy.ext
  42   │   Validating extension: file
  43   │ DEBUG    2020-02-11 16:43:40,451 [21619:MainThread] mopidy.ext
  44   │   Validating extension: http
  45   │ DEBUG    2020-02-11 16:43:40,493 [21619:MainThread] mopidy.ext
  46   │   Validating extension: m3u
  47   │ DEBUG    2020-02-11 16:43:40,494 [21619:MainThread] mopidy.ext
  48   │   Validating extension: softwaremixer
  49   │ DEBUG    2020-02-11 16:43:40,495 [21619:MainThread] mopidy.ext
  50   │   Validating extension: stream
  51   │ INFO     2020-02-11 16:43:40,496 [21619:MainThread] mopidy.__main__
  52   │   Enabled extensions: m3u, stream, softwaremixer, file, http
  53   │ INFO     2020-02-11 16:43:40,496 [21619:MainThread] mopidy.__main__
  54   │   Disabled extensions: none
  55   │ DEBUG    2020-02-11 16:43:40,547 [21619:MainThread] mopidy.commands

MOPIDY USER HOME CONFIG FILE

# For further information about options in this file see:
        #   https://docs.mopidy.com/
        #
        # The initial commented out values reflect the defaults as of:
        #   Mopidy 3.0.1
        #   Mopidy-File 3.0.1
        #   Mopidy-HTTP 3.0.1
        #   Mopidy-M3U 3.0.1
        #   Mopidy-SoftwareMixer 3.0.1
       #   Mopidy-Stream 3.0.1
       #
      # Available options and defaults might have changed since then,
             # run `mopidy config` to see the current effective config and
             # `mopidy --version` to check the current version.
             
             [core]
             #cache_dir = $XDG_CACHE_DIR/mopidy
             #config_dir = $XDG_CONFIG_DIR/mopidy
             #data_dir = $XDG_DATA_DIR/mopidy
             #max_tracklist_length = 10000
             #restore_state = false
             
             [logging]
             #verbosity = 0
             #format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(message)s
             #color = true
             #config_file =
             
             [audio]
             #mixer = software
             #mixer_volume = 
             #output = autoaudiosink
             #buffer_time = 
             
             [proxy]
             #scheme = 
             #hostname = 
             #port = 
             #username = 
             #password = 
             
             [file]
             #enabled = true
             #media_dirs = 
             #  $XDG_MUSIC_DIR|Music
             #  ~/|Home
             #excluded_file_extensions = 
             #  .directory
             #  .html
             #  .jpeg
             #  .jpg
             #  .log
             #  .nfo
             #  .pdf
             #  .png
           
             #  .zip
             #show_dotfiles = false
             #follow_symlinks = false
             #metadata_timeout = 1000
             
             [http]
             #enabled = true
             #hostname = 127.0.0.1
             #port = 6680
             #zeroconf = Mopidy HTTP server on $hostname
             #allowed_origins = 
             #csrf_protection = true
             #default_app = mopidy
             
             [m3u]
             #enabled = true
             #base_dir = $XDG_MUSIC_DIR
             #default_encoding = latin-1
             #default_extension = .m3u8
             #playlists_dir =
             
             [softwaremixer]
             #enabled = true
             
             [stream]
             #enabled = true
             #protocols = 
             #  http
             #  https
             #  mms
             #  rtmp
             #  rtmps
             #  rtsp
             #metadata_blacklist = 
             #timeout = 5000
             
             [spotify-tunigo]
             enabled = true
             
             [spotify]
             enabled = true
             username = xxxxxxxxxx
             password = xxxxxxxxxxxx
             client_id = ab09xxxxxxxxxxxxxxxx985e6d2
             client_secret = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
             
             [mpd]
             enabled = true
             hostname = 127.0.0.1
             port = 6600
             password = 
             max_connections = 20
            tion_timeout = 60
             zeroconf = Mopidy MPD server on $hostname
             command_blacklist = 
               listall
               listallinfo
             default_playlist_scheme = m3u

Mopidy and mpd are different prices of software that don’t talk to each other. Mopidy-MPD provides a way to control Mopidy using an MPD client. Install Mopidy-MPD as per its documentation. You don’t need mpd installed to use Mopidy-MPD.

Your log states that both the mpd and spotify sections are unknown. It’s clear enough you have not installed Mopidy-MPD so that makes sense, but I’m not sure why Mopidy-Spotify isn’t being found. So double-check you actually did install Mopidy-Spotify from apt.mopidy.com. You can also run mopidy deps to check what extensions are installed.

Installed mopidy dependencies (MPD and Spotify). Now config seems ok but still nothing happened when searching inside ncmpcpp.

I followed this steps:

  • install mopidy-MPD
  • install mopidy-spotify
  • reboot
  • start mopidy in command line
  • open ncmpcpp and search for “Metallica” on search pane (3): Nothing Found

Here the output of mopidy deps command:

 mopidy deps
Executable: /usr/local/bin/mopidy
Platform: Linux-5.3.0-29-generic-x86_64-with-Ubuntu-19.10-eoan
Python: CPython 3.7.5 from /usr/lib/python3.7
Mopidy: 3.0.1 from /usr/local/lib/python3.7/dist-packages
  Pykka: 2.0.2 from /usr/local/lib/python3.7/dist-packages
  setuptools: 41.1.0 from /usr/lib/python3/dist-packages
  tornado: 6.0.3 from /usr/local/lib/python3.7/dist-packages
  requests: 2.21.0 from /usr/lib/python3/dist-packages
Mopidy-Spotify: 4.0.1 from /usr/lib/python3/dist-packages
Mopidy-MPD: 3.0.0 from /usr/local/lib/python3.7/dist-packages
  Pykka: 2.0.2 from /usr/local/lib/python3.7/dist-packages
  Mopidy: 3.0.1 from /usr/local/lib/python3.7/dist-packages
  setuptools: 41.1.0 from /usr/lib/python3/dist-packages
GStreamer: 1.16.1.0 from /usr/lib/python3/dist-packages/gi
  Detailed information: 
    Python wrapper: python-gi 3.34.0
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        id3demux
        id3v2mux
        lamemp3enc
        mpegaudioparse
        mpg123audiodec
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        flump3dec
        mad

output of mopidy config:

mopidy config
[core]
cache_dir = $XDG_CACHE_DIR/mopidy
config_dir = $XDG_CONFIG_DIR/mopidy
data_dir = $XDG_DATA_DIR/mopidy
max_tracklist_length = 10000
restore_state = false

[logging]
verbosity = 0
format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(message)s
color = true
config_file =

[audio]
mixer = software
mixer_volume = 
output = autoaudiosink
buffer_time = 

[proxy]
scheme = 
hostname = 
port = 
username = 
password = 

[file]
enabled = true
media_dirs = 
  $XDG_MUSIC_DIR|Music
  ~/|Home
excluded_file_extensions = 
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .pdf
  .png
  .txt
  .zip
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 1000

[http]
enabled = true
hostname = 127.0.0.1
port = 6680
zeroconf = Mopidy HTTP server on $hostname
allowed_origins = 
csrf_protection = true
default_app = mopidy

[m3u]
enabled = true
base_dir = $XDG_MUSIC_DIR
default_encoding = latin-1
default_extension = .m3u8
playlists_dir =

[softwaremixer]
enabled = true

[stream]
enabled = true
protocols = 
  http
  https
  mms
  rtmp
  rtmps
  rtsp
metadata_blacklist = 
timeout = 5000

[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600
password = 
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist = 
  listall
  listallinfo
default_playlist_scheme = m3u

[spotify]
enabled = true
username = vera.josemanuel@gmail.com
password = ********
client_id = ab096e40-fd15-432a-bc14-4b8be985e6d2
client_secret = ********
bitrate = 160
volume_normalization = true
private_session = false
timeout = 10
allow_cache = true
allow_network = true
allow_playlists = true
search_album_count = 20
search_artist_count = 10
search_track_count = 50
toplist_countries =

Deps all looks good. Config looks sensible. Presumably the debug messages reporting unknown config sections have now stopped. Can you share your log showing the MPD client successfully connecting to Mopidy and performing the search? Any other errors/warnings in your log? Is it possible you’ve still got mpd installed and your connecting to that instead?

The issue is the ubuntu MPD server was running, so solved removing MPD. Thanks

But now I got a question: may I use mopidy-MPD to access to my local music?

Seems that all my library has now gone from ncmpcpp

Yes. Install Mopidy-Local, configure it so it knows where to find your music, run mopidy local scan to build a music database.