(Solved) Mopidy Mobile crashes


#1

Hi,

I encounter a websocket error as soon as I select any track via the Mopidy-Mobile frontend. It seems that mopidy crashes, because sudo systemctl status mopidy gives me:

● mopidy.service - Mopidy music server
   Loaded: loaded (/lib/systemd/system/mopidy.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2018-04-10 22:05:30 CEST; 31s ago
  Process: 1204 ExecStart=/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf (code=exited, status=255)
  Process: 1201 ExecStartPre=/bin/chown mopidy:audio /var/cache/mopidy (code=exited, status=0/SUCCESS)
  Process: 1198 ExecStartPre=/bin/mkdir -p /var/cache/mopidy (code=exited, status=0/SUCCESS)
 Main PID: 1204 (code=exited, status=255)

Apr 10 22:04:06 mypi mopidy[1204]: INFO     Audio output set to "autoaudiosink"
Apr 10 22:04:06 mypi mopidy[1204]: INFO     Loaded 0 local tracks using json
Apr 10 22:04:06 mypi mopidy[1204]: INFO     Starting Mopidy core
Apr 10 22:04:06 mypi mopidy[1204]: INFO     Starting Mopidy frontends: MpdFrontend, HttpFrontend
Apr 10 22:04:06 mypi mopidy[1204]: INFO     MPD server running at [::ffff:127.0.0.1]:6600
Apr 10 22:04:06 mypi mopidy[1204]: INFO     HTTP server running at [::]:6680
Apr 10 22:04:06 mypi mopidy[1204]: INFO     Starting GLib mainloop
Apr 10 22:05:30 mypi systemd[1]: mopidy.service: Main process exited, code=exited, status=255/n/a
Apr 10 22:05:30 mypi systemd[1]: mopidy.service: Unit entered failed state.
Apr 10 22:05:30 mypi systemd[1]: mopidy.service: Failed with result 'exit-code'.

But I have no idea what exactly fails. I once saw the error “failed to open vchiq instance” and in the log I found unicode warnings but nothing 100% reproducable. Does someone know where I can look for the error?

I use Mopidy as a service on a Raspberry 3 B with Raspbian Stretch.

Thanks in advance!


#2

The vchiq error is a raspberry pi specific problem in our Debian package. The fix is to add the mopidy user to the video group. See * failed to open vchiq instance


#3

Hi kingosticks,

sorry for the late reply. I added mopidy to the video group (sudo adduser mopidy video) as it was done in the other topic and it worked!
Thank you very much for your help!


#4

By the way, are you using the Raspbian Desktop image or the Lite image?


#5

I am using the desktop image.


#6

I’ve just set up Pi0 with Stretch Lite and it appears you don’t need Mopidy to belong to the Video group in the Lite version - things are playing fine using musicbox webclient and a usb audio card.
I meant to try it before, you jogged my memory with this post.

pi@raspberrypi:~ $ groups mopidy
mopidy : audio


#7

Thanks. That’s what I found too. I’m updating the docs to reflect the fact (https://github.com/mopidy/mopidy/pull/1669).