# (Solved) Mopidy Mobile crashes

**URL:** <https://discourse.mopidy.com/t/solved-mopidy-mobile-crashes/2412>\
**Category:** Misc\
**Created:** [April 10, 2018, 8:11pm UTC](https://discourse.mopidy.com/t/solved-mopidy-mobile-crashes/2412 "2018-04-10T20:11:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ForGorNorPor](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/forgornorpor/32/899_2.png) [@ForGorNorPor](https://discourse.mopidy.com/u/ForGorNorPor)\
**Post date:** [April 10, 2018, 8:11pm UTC](https://discourse.mopidy.com/t/solved-mopidy-mobile-crashes/2412/1 "2018-04-10T20:11:57Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [April 10, 2018, 9:30pm UTC](https://discourse.mopidy.com/t/solved-mopidy-mobile-crashes/2412/2 "2018-04-10T21:30:30Z")

</div>

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](https://discourse.mopidy.com/t/failed-to-open-vchiq-instance/2373/4?u=kingosticks)

---

<div class="post-metadata">

**Author:** ![ForGorNorPor](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/forgornorpor/32/899_2.png) [@ForGorNorPor](https://discourse.mopidy.com/u/ForGorNorPor)\
**Post date:** [April 15, 2018, 7:08pm UTC](https://discourse.mopidy.com/t/solved-mopidy-mobile-crashes/2412/3 "2018-04-15T19:08:45Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [April 15, 2018, 9:45pm UTC](https://discourse.mopidy.com/t/solved-mopidy-mobile-crashes/2412/4 "2018-04-15T21:45:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ForGorNorPor](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/forgornorpor/32/899_2.png) [@ForGorNorPor](https://discourse.mopidy.com/u/ForGorNorPor)\
**Post date:** [April 16, 2018, 9:30am UTC](https://discourse.mopidy.com/t/solved-mopidy-mobile-crashes/2412/5 "2018-04-16T09:30:44Z")

</div>

I am using the desktop image.

---

<div class="post-metadata">

**Author:** ![Steve\_Lambert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/steve_lambert/32/1149_2.png) [@Steve\_Lambert](https://discourse.mopidy.com/u/Steve_Lambert)\
**Post date:** [April 16, 2018, 9:52pm UTC](https://discourse.mopidy.com/t/solved-mopidy-mobile-crashes/2412/6 "2018-04-16T21:52:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [April 16, 2018, 10:08pm UTC](https://discourse.mopidy.com/t/solved-mopidy-mobile-crashes/2412/7 "2018-04-16T22:08:34Z")

</div>

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