Different mopidy config

Hello I need a little bit of help, probably a ordinary user error but I cant understand because I will believe I doing things right, I have read the documents about the config file but I still cant understand, well to my problem

Setup: Headless rpi 3b+ with iqaudiodac, distro Dietpi 6.34.3

this is what I get when running effective mopidy config command sudo mopidyctl config

root@MopidyNest:~# mopidyctl config
Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf config" as user mopidy
ERROR    [MainThread] mopidy.internal.log Loading logging config '/etc/mopidy/logging.conf' failed. 'formatters'
[core]
cache_dir = /mnt/dietpi_userdata/mopidy/cache
config_dir = /etc/mopidy
data_dir = /mnt/dietpi_userdata/mopidy/data
max_tracklist_length = 10000
restore_state = false

[logging]
verbosity = 0
format = %(levelname)-8s [%(threadName)s] %(name)s %(message)s
color = false
config_file = /etc/mopidy/logging.conf

[audio]
mixer = software
mixer_volume = 
output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/snapfifo
buffer_time = 

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

[tunein]
enabled = true
timeout = 5000
filter = 

[musicbox_webclient]
enabled = true
musicbox = true
websocket_host = 
websocket_port = 
on_track_click = PLAY_NEXT

[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

[iris]
enabled = true
country = SE
locale = en_SV
verify_certificates = true
snapcast_enabled = true
snapcast_host = localhost
snapcast_port = 1780
snapcast_ssl = false
snapcast_stream = Default
spotify_authorization_url = https://jamesbarnsley.co.nz/iris/auth_spotify.php
lastfm_authorization_url = https://jamesbarnsley.co.nz/iris/auth_lastfm.php
genius_authorization_url = https://jamesbarnsley.co.nz/iris/auth_genius.php
data_dir = $XDG_DATA_DIR/iris

[file]
enabled = true
media_dirs = 
  /mnt/020de8b5-0e97-42d2-b156-5fc7466bd629/Music
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 = ::
port = 6680
zeroconf = Mopidy HTTP server on $hostname
allowed_origins = 
csrf_protection = true
default_app = mopidy

[m3u]
enabled = true
base_dir =
default_encoding = latin-1
default_extension = .m3u8
playlists_dir = /mnt/dietpi_userdata/Music

[softwaremixer]
enabled = true

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

[spotify]
enabled = true
username = ABABABABABA
password = ********
client_id = 0fb35c15-1afc-465f-8635-9576e4087dfb
client_secret = ********
bitrate = 320
volume_normalization = false
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 = 

[local]
enabled = true
max_search_results = 100
media_dir = /mnt/020de8b5-0e97-42d2-b156-5fc7466bd629/Music
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
included_file_extensions = 
excluded_file_extensions = 
  .cue
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .pdf
  .png
  .txt
  .zip
directories = 
  Albums                  local:directory?type=album
  Artists                 local:directory?type=artist
  Composers               local:directory?type=artist&role=composer
  Genres                  local:directory?type=genre
  Performers              local:directory?type=artist&role=performer
  Release Years           local:directory?type=date&format=%25Y
  Tracks                  local:directory?type=track
  Last Week's Updates     local:directory?max-age=604800
  Last Month's Updates    local:directory?max-age=259200
timeout = 10
use_artist_sortname = false
album_art_files = 
  *.jpg
  *.jpeg
  *.png

And here is what i get when I opens nano to make changes in config file using command

nano /etc/mopidy/mopidy.conf


[core]
cache_dir = /mnt/dietpi_userdata/mopidy/cache
config_dir = /etc/mopidy
data_dir = /mnt/dietpi_userdata/mopidy/data

[logging]
config_file = /etc/mopidy/logging.conf
debug_file = /var/log/mopidy/mopidy.log


[file]
enabled = true
media_dirs =
  /mnt/020de8b5-0e97-42d2-b156-5fc7466bd629/Music
excluded_file_extensions =
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .pdf
  .png
  .txt
  .zip
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 1000


[http]
hostname = ::

[spotify]
enabled = true
username = ABABABABABA
password = xxxxxxxxxx
client_id = 0fb35c15-1afc-465f-8635-9576e4087dfb
client_secret = xxxxxxxxxxxx
bitrate = 320 
volume_normalization = false
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 =

[audio]
mixer = software
mixer_volume =
output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/snapfifo
buffer_time =

[local]
enabled = true
max_search_results = 100
media_dir = /mnt/020de8b5-0e97-42d2-b156-5fc7466bd629/Music
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
included_file_extensions =
excluded_file_extensions =
  .cue
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .pdf
  .png
  .txt
  .zip
directories =
  Albums                  local:directory?type=album
  Artists                 local:directory?type=artist
  Composers               local:directory?type=artist&role=composer
  Genres                  local:directory?type=genre
  Performers              local:directory?type=artist&role=performer
  Release Years           local:directory?type=date&format=%25Y
  Tracks                  local:directory?type=track
  Last Week's Updates     local:directory?max-age=604800
  Last Month's Updates    local:directory?max-age=259200
timeout = 10
use_artist_sortname = false
album_art_files =
  *.jpg
  *.jpeg
  *.png

[tunein]
enabled = true
timeout = 5000
filter =

[musicbox_webclient]
enabled = true
musicbox = true
websocket_host =
websocket_port =
on_track_click = PLAY_NEXT

[m3u]
enabled = true
base_dir =
default_encoding = latin-1
default_extension = .m3u8
playlists_dir = /mnt/dietpi_userdata/Music

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


[iris]
enabled = true
country = SE
locale = en_SV
spotify_authorization_url = https://jamesbarnsley.co.nz/iris/auth_spotify.php
lastfm_authorization_url = https://jamesbarnsley.co.nz/iris/auth_lastfm.php
genius_authorization_url = https://jamesbarnsley.co.nz/iris/auth_genius.php
data_dir = $XDG_DATA_DIR/iris

As you can see the MPD section does not exist in the file opend with Nano but íts there when just look
at the effective config, so what the F have I done :slight_smile:

I have also checked ~/.config/mopidy/mopidy.conf and that one is all commented out.

Overall mopidy running smooth and nice , I just wanna edit the mpd section so I can control it with node-red.

The error says the problem is when opening /etc/mopidy/logging.conf so the error is in there. We don’t ship that config file (anymore) so I’ve no idea what you have in there. Most people are fine with the defaults and don’t need anything.

You can say the same thing for 90% of your config - if you are using the default value, don’t specify it in your config.

In short, delete the logging section from your config file.

okey I will remember that ,

but can you please tell me what I do with the missing MPD section in that file I open with Nano ? It seems to me that it is two different files.

As described in above :
" As you can see the MPD section does not exsist in the file opend with Nano but its there when just look at the effective config, so what the F have I done :slight_smile:

I have also checked ~/.config/mopidy/mopidy.conf and that one is all commented out."

To print Mopidy’s effective configuration, i.e. the combination of defaults, your configuration file, and any command line options, you can run:

mopidy config

This will print your full effective config with passwords masked out so that you safely can share the output with others for debugging.

As you can see in the documentation, the config command doesn’t just print out your config file, it shows the default values that are being applied too. You can override these defaults by declaring the section and name=value in your config file.

yes of course!

Edited my config now and It worked , case closed thanks alot .

1 Like

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