Problem with configuration

Hi, I’ve just installed mopiby and gis extensions for spotify.
I have modified the “mopidy.conf” file in “/home/username/.config/mopidy”.
But the modification do not appear in "mopidy config"
It return :

[spotify]
enabled = false  ; Extension disabled due to config errors.
username =     ; Must be set.
password =     ; Must be set.

My config file :

 [mpd]
hostname = ::

[spotify]
username = thesimeox
password = *mypassword*

Thanks for helping.

Does running mopidy print any warnings or errors regarding the config? Hopefully, they’ll be more specific.

Here is what it print :

INFO     Starting Mopidy 0.19.4
INFO     Loading config from: builtin defaults, /etc/xdg/xdg-ubuntu/mopidy/mopidy.conf, /usr/share/upstart/xdg/mopidy/mopidy.conf, /etc/xdg/mopidy/mopidy.conf, /home/simon/.config/mopidy/mopidy.conf, command line options
INFO     Enabled extensions: local, mpd, softwaremixer, http, stream
INFO     Disabled extensions: spotify
WARNING  Found spotify configuration errors, the extension has been automatically disabled:
WARNING    spotify/username must be set.
WARNING    spotify/password must be set.
WARNING  Please fix the extension configuration errors or disable the extensions to silence these messages.
INFO     Starting Mopidy mixer: SoftwareMixer
INFO     Mixing using GStreamer software mixing
INFO     Starting Mopidy audio
INFO     Starting Mopidy backends: LocalBackend, StreamBackend
INFO     Loaded 0 local playlists from /home/simon/.local/share/mopidy/local/playlists
INFO     No local library metadata cache found at /home/simon/.local/share/mopidy/local/library.json.gz. Please run `mopidy local scan` to index your local music library. If you do not have a local music collection, you can disable the local backend to hide this message.
INFO     Loaded 0 local tracks using json
INFO     Audio output set to "autoaudiosink"
INFO     Starting Mopidy core
INFO     Starting Mopidy frontends: HttpFrontend, MpdFrontend
INFO     HTTP server running at [::ffff:127.0.0.1]:6680
INFO     MPD server running at [::ffff:127.0.0.1]:6600
^CINFO     Interrupted. Exiting...
INFO     Stopping Mopidy frontends
INFO     Stopping Mopidy core
INFO     Stopping Mopidy backends
INFO     Stopping Mopidy audio
INFO     Stopping Mopidy mixer

This indicates that your [mpd] section isn’t used correctly either.

To check that the file is readable, in the correct location, and doesn’t have any syntax errors, can you provide the output of:

  • ls -ld ~/.config
  • ls -ld ~/.config/mopidy
  • ls -l ~/.config/mopidy/mopidy.conf
  • cat ~/.config/mopidy/mopidy.conf

Yup, it is here :

ls -ld ~/.config :

 rwx------ 17 simon simon 4096 sept. 20 21:29 /home/simon/.config

ls -ld ~/.config/mopidy:

drwxr-xr-x 2 root root 4096 sept. 20 17:42 /home/simon/.config/mopidy

ls -l ~/.config/mopidy/mopidy.conf:

-rw-r----- 1 root root 84 sept. 20 18:57 /home/simon/.config/mopidy/mopidy.conf

cat ~/.config/mopidy/mopidy.conf

[mpd]
hostname = 192.168.0.19
 
[spotify]
username = thesimeox
password = *password*

Looks good.

Owned by root, but readable by everyone. OK enough.

Owned by root, only readable by root. Here’s your problem.

To fix it, change the owner of all files in ~/.config/mopidy to the simon user by running:

sudo chown -R simon:simon /home/simon/.config/mopidy

It work, thanks !

Simeox

Hello,

I am having trouble trying to install mopidy on RaspBMC and making it work flawlessly but i run into some warnings.

I could really use your help with the output:

INFO     Starting Mopidy 0.19.4
INFO     Loading config from: builtin defaults, /etc/xdg/mopidy/mopidy.conf, /home/pi/.config/mopidy/mopidy.conf, command line options
INFO     Enabled extensions: spotify, mpd, softwaremixer, http, stream
INFO     Disabled extensions: local
WARNING  Found local configuration errors, the extension has been automatically disabled:
WARNING    local/media_dir must be set.
WARNING  Please fix the extension configuration errors or disable the extensions to silence these messages.
INFO     Starting Mopidy mixer: SoftwareMixer
INFO     Mixing using GStreamer software mixing
INFO     Starting Mopidy audio
INFO     Starting Mopidy backends: SpotifyBackend, StreamBackend
INFO     Mopidy uses SPOTIFY(R) CORE
INFO     Audio output set to "alsasink"
INFO     Starting Mopidy core
INFO     Starting Mopidy frontends: HttpFrontend, MpdFrontend
INFO     MPD server running at [::]:6600
INFO     HTTP server running at [::]:6680
WARNING  Configured http/static_dir /opt/webclient/flatclient does not exist. Falling back to default HTTP handler.
INFO     Connected to Spotify
INFO     Loaded 140 Spotify playlists

…and it just stops there.
Also, it seems that only if i manually start mopidy i can get it running. Shouldn’t it run on RaspBMC startup?

Kind Regards
Nikos