New Mopidy install Raspi 4 - hangs on 'starting Glib mainloop'

New raspbian install on raspberry Pi 4, using hifiberry DAC pro+

run the “mopidy” command from terminal, it hangs when it gets to 'startting Glib mainloop".

here is what the output looks like :


pi@raspberrypi:~ $ mopidy -vv
INFO 2020-09-12 14:31:40,250 [1434:MainThread] mopidy.main
Starting Mopidy 3.0.2
DEBUG 2020-09-12 14:31:40,267 [1434:MainThread] mopidy.ext
Loading entry point: file = mopidy.file:Extension
DEBUG 2020-09-12 14:31:40,270 [1434:MainThread] mopidy.ext
Loaded extension: Mopidy-File 3.0.2
DEBUG 2020-09-12 14:31:40,270 [1434:MainThread] mopidy.ext
Loading entry point: http = mopidy.http:Extension
DEBUG 2020-09-12 14:31:40,271 [1434:MainThread] mopidy.ext
Loaded extension: Mopidy-HTTP 3.0.2
DEBUG 2020-09-12 14:31:40,271 [1434:MainThread] mopidy.ext
Loading entry point: m3u = mopidy.m3u:Extension
DEBUG 2020-09-12 14:31:40,272 [1434:MainThread] mopidy.ext
Loaded extension: Mopidy-M3U 3.0.2
DEBUG 2020-09-12 14:31:40,272 [1434:MainThread] mopidy.ext
Loading entry point: softwaremixer = mopidy.softwaremixer:Extension
DEBUG 2020-09-12 14:31:40,273 [1434:MainThread] mopidy.ext
Loaded extension: Mopidy-SoftwareMixer 3.0.2
DEBUG 2020-09-12 14:31:40,273 [1434:MainThread] mopidy.ext
Loading entry point: stream = mopidy.stream:Extension
DEBUG 2020-09-12 14:31:40,274 [1434:MainThread] mopidy.ext
Loaded extension: Mopidy-Stream 3.0.2
DEBUG 2020-09-12 14:31:40,281 [1434:MainThread] mopidy.ext
Discovered extensions: file, http, m3u, softwaremixer, stream
DEBUG 2020-09-12 14:31:40,287 [1434:MainThread] mopidy.config.keyring
Fetching passwords from your keyring failed. Any passwords stored in the keyring will not be available. (org.freedesktop.secrets service not running)
INFO 2020-09-12 14:31:40,287 [1434:MainThread] mopidy.config
Loading config from builtin defaults
DEBUG 2020-09-12 14:31:40,293 [1434:MainThread] mopidy.config
Loading config from file:///etc/xdg/mopidy/mopidy.conf failed; it does not exist
DEBUG 2020-09-12 14:31:40,293 [1434:MainThread] mopidy.config
Loading config from file:///home/pi/.config/mopidy/mopidy.conf failed; it does not exist
INFO 2020-09-12 14:31:40,293 [1434:MainThread] mopidy.config
Loading config from command line options
INFO 2020-09-12 14:31:40,302 [1434:MainThread] mopidy.internal.path
Creating dir file:///home/pi/.cache/mopidy
INFO 2020-09-12 14:31:40,303 [1434:MainThread] mopidy.internal.path
Creating dir file:///home/pi/.config/mopidy
INFO 2020-09-12 14:31:40,303 [1434:MainThread] mopidy.internal.path
Creating dir file:///home/pi/.local/share/mopidy
INFO 2020-09-12 14:31:40,305 [1434:MainThread] mopidy.config
Loading config from builtin defaults
INFO 2020-09-12 14:31:40,307 [1434:MainThread] mopidy.config
Loading config from command line options
INFO 2020-09-12 14:31:40,322 [1434:MainThread] mopidy.internal.path
Creating file file:///home/pi/.config/mopidy/mopidy.conf
INFO 2020-09-12 14:31:40,322 [1434:MainThread] mopidy.main
Initialized file:///home/pi/.config/mopidy/mopidy.conf with default config
DEBUG 2020-09-12 14:31:40,326 [1434:MainThread] mopidy.ext
Validating extension: file
DEBUG 2020-09-12 14:31:40,326 [1434:MainThread] mopidy.ext
Validating extension: http
DEBUG 2020-09-12 14:31:40,488 [1434:MainThread] mopidy.ext
Validating extension: m3u
DEBUG 2020-09-12 14:31:40,489 [1434:MainThread] mopidy.ext
Validating extension: softwaremixer
DEBUG 2020-09-12 14:31:40,489 [1434:MainThread] mopidy.ext
Validating extension: stream
INFO 2020-09-12 14:31:40,489 [1434:MainThread] mopidy.main
Enabled extensions: file, http, m3u, stream, softwaremixer
INFO 2020-09-12 14:31:40,489 [1434:MainThread] mopidy.main
Disabled extensions: none
DEBUG 2020-09-12 14:31:40,831 [1434:MainThread] mopidy.commands
Available Mopidy mixers: SoftwareMixer
INFO 2020-09-12 14:31:40,832 [1434:MainThread] mopidy.commands
Starting Mopidy mixer: SoftwareMixer
DEBUG 2020-09-12 14:31:40,835 [1434:MainThread] mopidy.commands
Mixer volume left unchanged
INFO 2020-09-12 14:31:40,835 [1434:MainThread] mopidy.commands
Starting Mopidy audio
INFO 2020-09-12 14:31:40,838 [1434:MainThread] mopidy.commands
Starting Mopidy backends: FileBackend, M3UBackend, StreamBackend
INFO 2020-09-12 14:31:40,851 [1434:MainThread] mopidy.internal.path
Creating dir file:///home/pi/.local/share/mopidy/m3u
INFO 2020-09-12 14:31:40,864 [1434:Audio-2] mopidy.audio.actor
Audio output set to “autoaudiosink”
INFO 2020-09-12 14:31:40,883 [1434:MainThread] mopidy.commands
Starting Mopidy core
INFO 2020-09-12 14:31:40,897 [1434:MainThread] mopidy.commands
Starting Mopidy frontends: HttpFrontend
DEBUG 2020-09-12 14:31:40,898 [1434:MainThread] mopidy.http.actor
Starting HTTP server
ERROR 2020-09-12 14:31:40,899 [1434:MainThread] mopidy.commands
Frontend (HttpFrontend) initialization error: HTTP server startup failed: [Errno 98] Address already in use
INFO 2020-09-12 14:31:40,899 [1434:MainThread] mopidy.commands
Starting GLib mainloop
[ HERE IS WHERE IT HANGS }

Couple of things:

  • the error message - you probably have the Mopidy service also running and that’s taken the HTTP port already. Read the documentation section about running Mopidy and chose a method. Most people will want to run the service.
  • it has not hung. Mopidy is running at this point. Its waiting you to connect with a client so you can give it commands. Clients can be Web clients or MPD clients if you also install Mopidy-MPD. Lists of clients (frontends) are available at http://mopidy.com/ext

Thanks for the advice and information.

Yes - I am running the web service IRIS.