Hello.
After an upgrade to Raspbian Buster I removed mopidy via APT (with --purge option) and did a fresh install of mopidy. A local scan was successful and GMPC can see local files and play them.
However, there is a main problem: I cannot connect from Mopidy Mobile on my phone. Here are some things I noticed:
- Changing the port in the [mpd] part of the config (which is at /etc/mopidy/mopidy.conf since I run it as a service) only results in
sudo netstat -n -l -p | grep XXXX
adapting its output: if I set the port to 6600 the above command with XXXX = 6600 will returntcp6 0 0 :::6600 :::* LISTEN 19224/python3
, and so on
So note that unlike answers to other similar questions, in my case changing the port does not help.
- Running
sudo journalctl -u mopidy | grep error
withverbosity=4
in [logging] results in
avr 07 09:04:07 raspberrypi mopidy[13599]: DEBUG [MpdSession-16] mopidy_mpd.network Unexpected client error: [Errno 32] Broken pipe
and a bunch of
avr 07 09:04:07 raspberrypi mopidy[13599]: DEBUG [MpdSession-16] mopidy_mpd.network Already stopping: Unexpected client error: [Errno 9] Bad file descriptor
I believe that is related to me trying to connect from Mopidy Mobile and failing (time stamps match).
I am at a loss here. I’ve spent lots of time googling and do not know what to do. I’ll be happy to post config files whenever needed!
All help appreciated. Thank you everyone for your time and help!
EDIT: here is the output of sudo mopidyctl deps
which I forgot to include:
Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf deps" as user mopidy
INFO [MainThread] mopidy.__main__ Starting Mopidy 3.0.2
DEBUG [MainThread] mopidy.ext Loading entry point: file = mopidy.file:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-File 3.0.2
DEBUG [MainThread] mopidy.ext Loading entry point: http = mopidy.http:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-HTTP 3.0.2
DEBUG [MainThread] mopidy.ext Loading entry point: m3u = mopidy.m3u:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-M3U 3.0.2
DEBUG [MainThread] mopidy.ext Loading entry point: softwaremixer = mopidy.softwaremixer:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-SoftwareMixer 3.0.2
DEBUG [MainThread] mopidy.ext Loading entry point: stream = mopidy.stream:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-Stream 3.0.2
DEBUG [MainThread] mopidy.ext Loading entry point: mpd = mopidy_mpd:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-MPD 3.0.0
DEBUG [MainThread] mopidy.ext Loading entry point: local = mopidy_local:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-Local 3.1.1
DEBUG [MainThread] mopidy.ext Loading entry point: alsamixer = mopidy_alsamixer:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-ALSAMixer 2.0.0
DEBUG [MainThread] mopidy.ext Discovered extensions: file, http, m3u, softwaremixer, stream, mpd, local, alsamixer
DEBUG [MainThread] mopidy.config.keyring Fetching passwords from your keyring failed. Any passwords stored in the keyring will not be available. (org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.
)
INFO [MainThread] mopidy.config Loading config from builtin defaults
INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy-local.conf
INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf
INFO [MainThread] mopidy.config Loading config from file:///etc/mopidy/mopidy.conf
INFO [MainThread] mopidy.config Loading config from command line options
DEBUG [MainThread] mopidy.ext Validating extension: file
DEBUG [MainThread] mopidy.ext Validating extension: http
DEBUG [MainThread] mopidy.ext Validating extension: m3u
DEBUG [MainThread] mopidy.ext Validating extension: softwaremixer
DEBUG [MainThread] mopidy.ext Validating extension: stream
DEBUG [MainThread] mopidy.ext Validating extension: mpd
DEBUG [MainThread] mopidy.ext Validating extension: local
DEBUG [MainThread] mopidy.ext Validating extension: alsamixer
INFO [MainThread] mopidy.__main__ Enabled extensions: file, local, stream, alsamixer, softwaremixer, mpd, m3u
INFO [MainThread] mopidy.__main__ Disabled extensions: http
Executable: /usr/bin/mopidy
Platform: Linux-4.19.97-v7+-armv7l-with-debian-10.3
Python: CPython 3.7.3 from /usr/lib/python3.7
Mopidy: 3.0.2 from /usr/lib/python3/dist-packages
Mopidy-MPD: 3.0.0 from /usr/lib/python3/dist-packages
Mopidy-Local: 3.1.1 from /usr/lib/python3/dist-packages
Mopidy-ALSAMixer: 2.0.0 from /usr/lib/python3/dist-packages
GStreamer: 1.14.4.0 from /usr/lib/python3/dist-packages/gi
Detailed information:
Python wrapper: python-gi 3.30.4
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
and here is the output of sudo mopidyctl config
:
Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf config" as user mopidy
INFO [MainThread] mopidy.__main__ Starting Mopidy 3.0.2
DEBUG [MainThread] mopidy.ext Loading entry point: file = mopidy.file:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-File 3.0.2
DEBUG [MainThread] mopidy.ext Loading entry point: http = mopidy.http:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-HTTP 3.0.2
DEBUG [MainThread] mopidy.ext Loading entry point: m3u = mopidy.m3u:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-M3U 3.0.2
DEBUG [MainThread] mopidy.ext Loading entry point: softwaremixer = mopidy.softwaremixer:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-SoftwareMixer 3.0.2
DEBUG [MainThread] mopidy.ext Loading entry point: stream = mopidy.stream:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-Stream 3.0.2
DEBUG [MainThread] mopidy.ext Loading entry point: mpd = mopidy_mpd:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-MPD 3.0.0
DEBUG [MainThread] mopidy.ext Loading entry point: local = mopidy_local:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-Local 3.1.1
DEBUG [MainThread] mopidy.ext Loading entry point: alsamixer = mopidy_alsamixer:Extension
DEBUG [MainThread] mopidy.ext Loaded extension: Mopidy-ALSAMixer 2.0.0
DEBUG [MainThread] mopidy.ext Discovered extensions: file, http, m3u, softwaremixer, stream, mpd, local, alsamixer
DEBUG [MainThread] mopidy.config.keyring Fetching passwords from your keyring failed. Any passwords stored in the keyring will not be available. (org.freedesktop.DBus.Error.Spawn.ExecFailed: /usr/bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.
)
INFO [MainThread] mopidy.config Loading config from builtin defaults
INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy-local.conf
INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf
INFO [MainThread] mopidy.config Loading config from file:///etc/mopidy/mopidy.conf
INFO [MainThread] mopidy.config Loading config from command line options
DEBUG [MainThread] mopidy.ext Validating extension: file
DEBUG [MainThread] mopidy.ext Validating extension: http
DEBUG [MainThread] mopidy.ext Validating extension: m3u
DEBUG [MainThread] mopidy.ext Validating extension: softwaremixer
DEBUG [MainThread] mopidy.ext Validating extension: stream
DEBUG [MainThread] mopidy.ext Validating extension: mpd
DEBUG [MainThread] mopidy.ext Validating extension: local
DEBUG [MainThread] mopidy.ext Validating extension: alsamixer
INFO [MainThread] mopidy.__main__ Enabled extensions: stream, mpd, m3u, local, alsamixer, softwaremixer, file
INFO [MainThread] mopidy.__main__ Disabled extensions: http
[core]
cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/mopidy
max_tracklist_length = 10000
restore_state = false
[logging]
verbosity = 4
format = %(levelname)-8s [%(threadName)s] %(name)s %(message)s
color = false
config_file =
[audio]
mixer = software
mixer_volume =
output = alsasink
buffer_time =
[proxy]
scheme =
hostname =
port =
username =
password =
[file]
enabled = true
media_dirs =
/media/pi/MUMAK/Musik ; changed from $XDG_MUSIC_DIR|Music [new line] ~/|Home
excluded_file_extensions =
.jpg
.jpeg
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 3000
[http]
enabled = false ; Extension disabled due to config errors.
hostname = ; Must be a resolveable hostname or valid ip
port = 6681
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 =
[softwaremixer]
enabled = true
[stream]
enabled = true
protocols =
http
https
mms
rtmp
rtmps
rtsp
metadata_blacklist =
timeout = 5000
[mpd]
enabled = true
hostname = ::
port = 6680
password =
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist =
listall
listallinfo
default_playlist_scheme = m3u
[local]
enabled = true
media_dir = /media/pi/MUMAK/Musik
scan_timeout = 3000
scan_flush_threshold = 100
scan_follow_symlinks = false
included_file_extensions =
excluded_file_extensions =
.directory
.html
.jpeg
.jpg
.log
.nfo
.png
.txt
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=2592000
timeout = 10
use_artist_sortname = false
album_art_files =
*.jpg
*.jpeg
*.png
[alsamixer]
enabled = true
card = 0
control = Master
min_volume = 0
max_volume = 100
volume_scale = cubic