# Mopidy as a service - Doesn't load /etc/mopidy/mopidy.conf

**URL:** <https://discourse.mopidy.com/t/mopidy-as-a-service-doesnt-load-etc-mopidy-mopidy-conf/1004>\
**Category:** Misc\
**Created:** [December 7, 2015, 6:27pm UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-doesnt-load-etc-mopidy-mopidy-conf/1004 "2015-12-07T18:27:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![MasterOut](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@MasterOut](https://discourse.mopidy.com/u/MasterOut)\
**Post date:** [December 7, 2015, 6:27pm UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-doesnt-load-etc-mopidy-mopidy-conf/1004/1 "2015-12-07T18:27:34Z")

</div>

Hello,

I installed Mopidy on a raspberry pi and it works. I can control it remotely with the musicbox client.

But I am confussed now:  
It is said in the tutorial [running as a system service](https://docs.mopidy.com/en/develop/debian/#running-as-a-system-service) that configurations can be done in `/etc/mopidy/mopidy.conf`.  
But all my changes there have no effect on the service, because the service is made by user root.

Can I do it like:  
`[core] config_dir = /etc/mopidy` ?  
Or directly `config_dir = /etc/mopidy/mopidy.conf`

---

<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:** [December 7, 2015, 7:33pm UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-doesnt-load-etc-mopidy-mopidy-conf/1004/2 "2015-12-07T19:33:35Z")

</div>

The documentation you have linked to is exactly right. The service is run as user `mopidy` and the config file `/etc/mopidy/mopidy.conf` is also owned by that user. Your normal `pi` user won’t have permission to view/edit it and so you should use a command such as `sudo nano /etc/mopidy/mopidy.conf`. Once you have made your changes you must restart the mopidy service (`sudo service mopidy restart`) and then you will see your changes take effect.

You can see exactly which config file is loaded in the mopidy log e.g.:

> INFO [1165:MainThread] mopidy.config: Loading config from /etc/mopidy/mopidy.conf

And you can view the config that will be used with the command `sudo mopidyctrl config`.

---

<div class="post-metadata">

**Author:** ![MasterOut](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@MasterOut](https://discourse.mopidy.com/u/MasterOut)\
**Post date:** [December 7, 2015, 8:07pm UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-doesnt-load-etc-mopidy-mopidy-conf/1004/3 "2015-12-07T20:07:41Z")

</div>

Hej,

Thanks for your quick answer. It seems that the config file:  
`/usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf` is loaded when I run `sudo mopidyctl config`.

I thought at a reboot the configuration would be done too.

So everytime I change anything I need to run `mopidyctl config`?

I also have another question:  
Is mopidy secure when I did the normal raspberry security things like change passwords and ssh authentication?

---

<div class="post-metadata">

**Author:** ![Geert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/geert/32/252_2.png) [@Geert](https://discourse.mopidy.com/u/Geert)\
**Post date:** [December 7, 2015, 10:18pm UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-doesnt-load-etc-mopidy-mopidy-conf/1004/4 "2015-12-07T22:18:07Z")

</div>

Restart the Mopidy service after applying changes, or reboot.

---

<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:** [December 7, 2015, 10:37pm UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-doesnt-load-etc-mopidy-mopidy-conf/1004/5 "2015-12-07T22:37:37Z")

</div>

The syntax here is that `:` is a separator so this is actually two config files: `/usr/share/mopidy/conf.d` and `/etc/mopidy/mopidy.conf`. You don’t need to worry about the first one.

Yes: rebooting your computer will restart the service. `mopidyctl config` is just a helpful way for you to see what config will be used when you next start the service, you do not need to run it. Mopidy will always load the config from the config file when it starts.

This should all 100% correlate with the [document you linked to in your original post](https://docs.mopidy.com/en/develop/debian/#running-as-a-system-service).

I don’t know what you mean with your last question.

---

<div class="post-metadata">

**Author:** ![MasterOut](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@MasterOut](https://discourse.mopidy.com/u/MasterOut)\
**Post date:** [December 9, 2015, 11:02am UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-doesnt-load-etc-mopidy-mopidy-conf/1004/6 "2015-12-09T11:02:27Z")

</div>

No I made some experiments with the `podcast` extension.

I wrote to the `etc/mopidy/mopidy.conf` the following  
`feeds = http://www.npr.org/rss/podcast.php?id=510019 http://www.npr.org/rss/podcast.php?id=510253 http://www.npr.org/rss/podcast.php?id=510306 http://feeds.metaebene.me/lnp/mp3 http://logbuch-netzpolitik.de/feed/mp3`

Everything else is as default.

I reboot the raspi and the feeds are not in `Subscribed Feeds`.

When I do the same as `sudo -i` and wrote the same lines in `/root/.config/mopid/mopidy.conf` and restart the raspi it works.

So the Mopidy service is configured with the root config. Can I change it anyhow?

---

<div class="post-metadata">

**Author:** ![Pepino\_Latorino](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/pepino_latorino/32/2148_2.png) [@Pepino\_Latorino](https://discourse.mopidy.com/u/Pepino_Latorino)\
**Post date:** [December 6, 2021, 1:49pm UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-doesnt-load-etc-mopidy-mopidy-conf/1004/7 "2021-12-06T13:49:31Z")

</div>

can someone help me  
i have everything filled in the config file but stil i get this

```auto
enabled = false ; Extension disabled due to config errors.
username = ; Must be set.
password = ; Must be set.
client_id = ; Must be set.
client_secret = ; Must be set.

```

---

<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:** [December 6, 2021, 2:11pm UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-doesnt-load-etc-mopidy-mopidy-conf/1004/8 "2021-12-06T14:11:22Z")

</div>

The way to configure Mopidy is outlined at [Running — Mopidy 3.2.0-3-gb10f3115 documentation](https://docs.mopidy.com/en/latest/running/). Once you have read that page, please provide the info required to understand your problem as per [Troubleshooting — Mopidy 3.2.0-3-gb10f3115 documentation](https://docs.mopidy.com/en/latest/troubleshooting/). Then start a new topic and clearly describe your problem. Only then can someone help you.

---

<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:** [December 6, 2021, 2:12pm UTC](https://discourse.mopidy.com/t/mopidy-as-a-service-doesnt-load-etc-mopidy-mopidy-conf/1004/9 "2021-12-06T14:12:55Z")

</div>


