I installed mopidy and iris on my raspberry pi, mostly following this guide before spending quite a bit of time in the official documentation to see if I did something wrong. the aplay audio test works for me, but playing through mopidy does not produce any sound. I am plugged into the audio jack on the pi, and have added the mopidy user to the video group. Any ideas for what I should try next?
Posting my config as a reply as I’m getting a “Too many links” message from the forum.
It is the Desktop image. I just tried those steps but still am not hearing any audio from mopidy.
I see this error in the mopidy status around the time I tried to play:
Feb 11 20:14:38 raspberrypi mopidy[10586]: ERROR [LocalBackend-3] mopidy_local.library Lookup error for local:directory?type=track&album=local:album:md5:357f8d1234f4f038ae5e4aa6488ac428&artist=l
I restarted Mopidy, tried to play something and it played! I went back through my command history and I definitely restarted Mopidy after making the changes last night so I’m not sure what changed… Maybe I needed the pulse restart to happen before the Mopidy restart? Not sure, but it is working now.
Thanks for the help @kingosticks, as I was searching for the solution yesterday I feel like I saw your name on every post, so I just want to say I appreciate your dedication to helping everyone!
Still see that error in the status so here are the logs in case you are interested.
Feb 12 12:33:02 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.__main__ Starting Mopidy 3.1.1
Feb 12 12:33:02 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.config Loading config from builtin defaults
Feb 12 12:33:02 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy-local.conf
Feb 12 12:33:02 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf
Feb 12 12:33:02 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.config Loading config from file:///etc/mopidy/mopidy.conf
Feb 12 12:33:02 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.config Loading config from command line options
Feb 12 12:33:02 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.__main__ Enabled extensions: http, iris, softwaremixer, m3u, file, stream, local
Feb 12 12:33:02 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.__main__ Disabled extensions: none
Feb 12 12:33:02 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.commands Starting Mopidy mixer: SoftwareMixer
Feb 12 12:33:02 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.commands Starting Mopidy audio
Feb 12 12:33:02 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.commands Starting Mopidy backends: LocalBackend, FileBackend, M3UBackend, StreamBackend
Feb 12 12:33:02 raspberrypi mopidy[4648]: INFO [Audio-2] mopidy.audio.actor Audio output set to "pulsesink server=127.0.0.1"
Feb 12 12:33:03 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.commands Starting Mopidy core
Feb 12 12:33:03 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.commands Starting Mopidy frontends: IrisFrontend, HttpFrontend
Feb 12 12:33:03 raspberrypi mopidy[4648]: INFO [IrisFrontend-8] mopidy_iris.core Starting Iris 3.55.4
Feb 12 12:33:03 raspberrypi mopidy[4648]: INFO [HttpFrontend-10] mopidy.http.actor HTTP server running at [::ffff:0.0.0.0]:6680
Feb 12 12:33:03 raspberrypi mopidy[4648]: INFO [MainThread] mopidy.commands Starting GLib mainloop
Feb 12 12:33:07 raspberrypi mopidy[4648]: ERROR [LocalBackend-3] mopidy_local.library Lookup error for local:directory?type=artist: Invalid lookup URI
Feb 12 12:33:19 raspberrypi mopidy[4648]: ERROR [LocalBackend-3] mopidy_local.library Lookup error for local:directory?type=track&album=local:album:md5:357f8d1234f4f038ae5e4aa6488ac428&artist=lo
lines 1-20/20 (END)
I am glad that fixed it. Raspberry Pi OS has changed to use Pulseaudio recently (for the Desktop image only) so looks like I need to add that specifically to our Raspberry Pi documentation. I don’t use the Desktop image myself so I’ve been a bit lazy in testing it out.
That error is OK now that I can see it’s just from Iris trying to lookup a Mopidy-Local virtual directory Directories (which Mopidy-Local does not support) and that’s fine, Iris will also then do the correct browse call so that’s fine and yes, you are right, nothing to do with your audio problem.