I’ve installed mopidy on my raspberry pi 3 today with some extensions like Spotify and TuneIn. It works great when I just run it. But once I make Mopidy run as a service, I always get an error from mopidy (status):
I tried both ways (SystemD and dkgp). I know the config file gets loaded and the web extention also shows when surfing to the ip adress, but doesn’t show any playlists because spotify doesn’t work. If found some information online, but nothing usefull showed up. I don’t use a proxy.
The buttons (with Mopidy TTS-GPIO) do work when i run mopidy manually (only with root), but nog when I’m using SystemD.
So I don’t know how to make the service run as root.
I did already change the daemon user from /init.d/mopidy but still the error that I don’t have enough permission.
Is it the same file used by SystemD or do they use a different file?
Even by editing visudo(giving mopidy the same rights as root) I still can’t make it work.
UPDATE: I found the solution, the user mopidy wasn’t in the group gpio. So to fix this error i just needed to run