caporeira
Posts: 73
Joined: Sun Aug 25, 2013 5:58 pm

Mopidy configuration

Sun Nov 22, 2015 1:21 am

Someone can help me config mopidy ?
On settings I have this info: [Errno 13] Permission denied: /etc/mopidy/mopidy.conf

And nothing want't to play :(

Code: Select all

INFO     Starting Mopidy 1.1.0
INFO     Loading config from builtin defaults
INFO     Loading config from /home/lukas/.config/mopidy/mopidy.conf
INFO     Loading config from command line options
INFO     Enabled extensions: mopify, mpd, http, moped, stream, mobile, m3u, simp                        le-webclient, material-webclient, softwaremixer, file, musicbox_webclient, webse                        ttings, local
INFO     Disabled extensions: none
INFO     Starting Mopidy mixer: SoftwareMixer
INFO     Starting Mopidy audio
INFO     Starting Mopidy backends: StreamBackend, M3UBackend, FileBackend, Local                        Backend
INFO     Loaded 0 M3U playlists from /home/lukas/.local/share/mopidy/m3u
INFO     Audio output set to "autoaudiosink"
INFO     No local library metadata cache found at /home/lukas/.local/share/mopid                        y/local/library.json.gz. Please run `mopidy local scan` to index your local musi                        c library. If you do not have a local music collection, you can disable the loca                        l backend to hide this message.
INFO     Loaded 0 local tracks using json
INFO     Starting Mopidy core
INFO     Starting Mopidy frontends: MpdFrontend, HttpFrontend, QueueManagerFront                        end
INFO     MPD server running at [::ffff:0.0.0.0]:6600
INFO     HTTP server running at [::ffff:0.0.0.0]:6680
WARNING  Problem looking up http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp3:                         Could not open resource for reading.
WARNING  Problem scanning URI http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp                        3: Could not open resource for reading.
WARNING  Track is not playable: http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_                        mp3
WARNING  Problem looking up http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp3:                         Could not open resource for reading.
WARNING  Problem scanning URI http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp                        3: Could not open resource for reading.
WARNING  Track is not playable: http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_                        mp3
INFO     New MPD connection from [::ffff:192.168.1.120]:50982
WARNING  Problem scanning URI http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp3: Could not open resource for reading.
WARNING  Track is not playable: http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp3
WARNING  Problem scanning URI http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp3: Could not open resource for reading.
WARNING  Track is not playable: http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp3
WARNING  Problem scanning URI http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp3: Could not open resource for reading.
WARNING  Track is not playable: http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp3
INFO     Created playlist m3u:Favourites.m3u
INFO     {"error": "Could not load ini file! [Errno 13] Permission denied: u'/etc/mopidy/mopidy.conf' <class 'configobj.ConfigObjError'> <type 'exceptions.IOError'>"}
ERROR    Uncaught exception GET /material-webclient/wifi (192.168.1.100)
HTTPServerRequest(protocol='http', host='192.168.1.110:6680', method='GET', uri='/material-webclient/wifi', version='HTTP/1.1', remote_ip='192.168.1.100', headers={'Accept-Language': 'pl', 'Accept-Encoding': 'gzip, deflate', 'Host': '192.168.1.110:6680', 'Accept': 'application/json, text/plain, */*', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0', 'Connection': 'keep-alive', 'Referer': 'http://192.168.1.110:6680/material-webclient/', 'Cookie': 'PHPSESSID=aum4ifvgga6lvoem3drsrfcbo2'})
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/tornado/web.py", line 1413, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/home/lukas/.local/lib/python2.7/site-packages/mopidy_material_webclient/__init__.py", line 58, in get
    cells = Cell.all('wlan0')
  File "/home/lukas/.local/lib/python2.7/site-packages/wifi/scan.py", line 31, in all
    raise InterfaceError(e.output.strip())
InterfaceError: wlan0     Interface doesn't support scanning.
ERROR    500 GET /material-webclient/wifi (192.168.1.100) 70.74ms

sprinkmeier
Posts: 410
Joined: Mon Feb 04, 2013 10:48 am
Contact: Website

Re: Mopidy configuration

Sun Nov 22, 2015 3:53 am

looks like the process does not have read access to the file.
Post the output of

Code: Select all

ls -l /etc/mopidy/mopidy.conf
to confirm.

Code: Select all

sudo chmod +r /etc/mopidy/mopidy.conf
should give the file global read access, which should fix the problem (assuming it's caused by lack of read access), BUT MIGHT CAUSE NASTY PROBLEMS!
some files contain security sensitive info and should not be world readable

caporeira
Posts: 73
Joined: Sun Aug 25, 2013 5:58 pm

Re: Mopidy configuration

Sun Nov 22, 2015 10:32 am

Thank you ! Now is better.
But unfortunately, a lot of things doesn't work. Can you check my configuration ?

Code: Select all

# For further information about options in this file see:
#   http://docs.mopidy.com/
#
# The initial commented out values reflect the defaults as of:
#   Mopidy 1.1.0
#   Mopidy-File 1.1.0
#   Mopidy-HTTP 1.1.0
#   Mopidy-Local 1.1.0
#   Mopidy-M3U 1.1.0
#   Mopidy-MPD 1.1.0
#   Mopidy-SoftwareMixer 1.1.0
#   Mopidy-Stream 1.1.0
#
# 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.

[websettings]
enabled = true
musicbox = false
config_file = /etc/mopidy/mopidy.conf

[local-images]
enabled = true

# the actual local library provider to use
library = json

# the base URI for images; change this if you want to serve images
# using an alternative Web server, or when accessing Mopidy through a
# reverse proxy
base_uri = /images/

# the directory where local image files are stored; if not set,
# creates its own subdirectory in <core/data_dir>
image_dir =

# a list of file names to check for when searching for external album
# art; may contain UNIX shell patterns, i.e. "*", "?", etc.
album_art_files = *.jpg, *.jpeg, *.png

#"[material-webclient]
#   enabled = true
#   config_file = /etc/mopidy/mopidy.conf
	
[mopify]
enabled = true
debug = false

[http]
enabled = true
static_dir = /path/to/repository/with/mopster

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

[logging]
#color = true
#console_format = %(levelname)-8s %(message)s
#debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(message)s
#debug_file = mopidy.log
#config_file =

[audio]
mixer = software
mixer_volume = 
#output = autoaudiosink
output = alsasink

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

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

[http]
enabled = true
hostname = 0.0.0.0
port = 6680
static_dir =
zeroconf = Mopidy HTTP server on $hostname

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

[m3u]
enabled = true
playlists_dir = $XDG_DATA_DIR/mopidy/m3u

[softwaremixer]
enabled = true

[file]
#enabled = true
#media_dirs = 
#  $XDG_MUSIC_DIR|Music
#  ~/|Home
#show_dotfiles = false
#follow_symlinks = false
#metadata_timeout = 1000

[local]
#enabled = true
#library = json
#media_dir = $XDG_MUSIC_DIR
#data_dir = $XDG_DATA_DIR/mopidy/local
#scan_timeout = 1000
#scan_flush_threshold = 1000
#scan_follow_symlinks = false
#excluded_file_extensions = 
#  .directory
#  .html
#  .jpeg
#  .jpg
#  .log
#  .nfo
#  .png
#  .txt

Return to “Troubleshooting”