# Mopidy as a service --\> disconnected

**URL:** <https://discourse.mopidy.com/t/mopidy-as-a-service-disconnected/2319>\
**Category:** Misc\
**Created:** [March 6, 2018, 8:45pm UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-disconnected/2319 "2018-03-06T20:45:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lelio\_Parisi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/lelio_parisi/32/866_2.png) [@Lelio\_Parisi](https://discourse.mopidy.com/u/Lelio_Parisi)\
**Post date:** [March 6, 2018, 8:45pm UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-disconnected/2319/1 "2018-03-06T20:45:43Z")

</div>

Hi folks  
I’ve correctly setup everything on my PI, and mopidy works well (http enabled, sql-lite enabled, I use iris for the frontend).  
if I launch it as pi everythings is fine.  
the problem is when I launch it as a service: config file is read correctly, httpd is fine and I can connect without any problem and surf through my files.  
The problem I have is in the “setting” session, “server” paragraph, it says “disconnected”.  
I really don’t understand why… everything seems fine!!!

---

<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:** [March 7, 2018, 12:09am UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-disconnected/2319/2 "2018-03-07T00:09:53Z")

</div>

What do you mean by ‘setting session’ and ‘server paragraph’? Is this something specific to do with the iris frontend? This doesn’t mean anything to me in the context of Mopidy itself.

---

<div class="post-metadata">

**Author:** ![Lelio\_Parisi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/lelio_parisi/32/866_2.png) [@Lelio\_Parisi](https://discourse.mopidy.com/u/Lelio_Parisi)\
**Post date:** [March 8, 2018, 8:39pm UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-disconnected/2319/3 "2018-03-08T20:39:03Z")

</div>

yes, it’s about iris frontend  
I’m going to try another one, let’s see…

---

<div class="post-metadata">

**Author:** ![Lelio\_Parisi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/lelio_parisi/32/866_2.png) [@Lelio\_Parisi](https://discourse.mopidy.com/u/Lelio_Parisi)\
**Post date:** [March 10, 2018, 11:11am UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-disconnected/2319/4 "2018-03-10T11:11:40Z")

</div>

same thing  
none of the web extension will load if mopidy is run from service

---

<div class="post-metadata">

**Author:** ![Lelio\_Parisi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/lelio_parisi/32/866_2.png) [@Lelio\_Parisi](https://discourse.mopidy.com/u/Lelio_Parisi)\
**Post date:** [March 10, 2018, 11:23am UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-disconnected/2319/5 "2018-03-10T11:23:22Z")

</div>

I think it’s a problem on the permission of user mopidy

if I launch sudo mopidyctl local scan  
I have:  
Permission denied: '/etc/mopidy/

I had to chmod 777 -R /etc/mopidy

---

<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:** [March 10, 2018, 11:27am UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-disconnected/2319/6 "2018-03-10T11:27:40Z")

</div>

Are you sure you have changed the /etc/mopidy/mopidy.conf file - it should be the same as ~/.config/mopidy/mopidy.conf.  
Easiest way if everything is running as a user is to back up /etc/mopidy/mopidy.conf then save ~/.config/mopidy/mopidy.conf as /etc/mopidy/mopidy.conf  
As per the Docs [here](https://docs.mopidy.com/en/latest/service/)

---

<div class="post-metadata">

**Author:** ![Lelio\_Parisi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/lelio_parisi/32/866_2.png) [@Lelio\_Parisi](https://discourse.mopidy.com/u/Lelio_Parisi)\
**Post date:** [March 10, 2018, 11:38am UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-disconnected/2319/7 "2018-03-10T11:38:13Z")

</div>

I did, sure

I solved with chmod 777 -R /etc/mopidy  
and install iris with _sudo pip install Mopidy-Iris_ insted of _pip install …_  
so it was definitely a problem of permission of the user mopidy

---

<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:** [March 10, 2018, 11:40am UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-disconnected/2319/8 "2018-03-10T11:40:50Z")

</div>

> [@Lelio\_Parisi](#):
>
> and install iris with sudo pip install Mopidy-Iris insted of pip install …

That always catches me out as well, glad you’ve got it sorted out - especially as Iris seems to update on a regular basis.
