Closed treatmesubj closed 3 years ago
Not really sure what's happening here, I haven't touched Mopidy in checks git history ... 9 months :grimacing:
Check for files in /usr/share/mopidy/conf.d
which your systemctl output suggests Mopidy is also using for configuration. I'm not sure, but perhaps a duplicate section in one of those files could cause problems?
That said your debug output does specifically mention /etc/mopidy/mopidy.conf
and claim the duplicate is on line 56... which is quite an accomplishment if the config is indeed only 20 lines long...
I just set up on a relatively fresh Raspbian Buster with our installer and it worked after a reboot. I'll image a new SD card and try again.
Yeesh, I had created modipy.conf
and was looking at that, but now that I've had some coffee, I see that it's mopidy.conf
that I should be working with. I deleted modipy.conf
.
Now that I listed files in the directory and figured out how to spell, sure enough, my mopidy.conf
file has lots of duplicates.
pi@raspberrypi:/etc/mopidy $ sudo cat mopidy.conf
# For information about configuration values that can be set in this file see:
#
# https://docs.mopidy.com/en/latest/config/
#
# Run `sudo mopidyctl config` to see the current effective config, based on
# both defaults and this configuration file.
[raspberry-gpio]
enabled = true
bcm5 = play_pause,active_low,250
bcm6 = volume_down,active_low,250
bcm16 = next,active_low,250
bcm20 = volume_up,active_low,250
bcm24 = volume_up,active_low,250
[file]
enabled = true
media_dirs = /home/pi/Music
show_dotfiles = false
excluded_file_extensions =
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
follow_symlinks = false
metadata_timeout = 1000
[pidi]
enabled = true
display = st7789
rotation = 90
[mpd]
hostname = 0.0.0.0
[http]
hostname = 0.0.0.0
[audio]
mixer_volume = 40
output = alsasink device=hw:sndrpihifiberry
[spotify]
enabled = false
username =
password =
client_id =
client_secret =
[raspberry-gpio]
enabled = true
bcm5 = play_pause,active_low,250
bcm6 = volume_down,active_low,250
bcm16 = next,active_low,250
bcm20 = volume_up,active_low,250
bcm24 = volume_up,active_low,250
[file]
enabled = true
media_dirs = /home/pi/Music
show_dotfiles = false
excluded_file_extensions =
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
follow_symlinks = false
metadata_timeout = 1000
[pidi]
enabled = true
display = st7789
rotation = 90
[mpd]
hostname = 0.0.0.0
[http]
hostname = 0.0.0.0
[audio]
mixer_volume = 40
output = alsasink device=hw:sndrpihifiberry
[spotify]
enabled = false
username =
password =
client_id =
client_secret =
[raspberry-gpio]
enabled = true
bcm5 = play_pause,active_low,250
bcm6 = volume_down,active_low,250
bcm16 = next,active_low,250
bcm20 = volume_up,active_low,250
bcm24 = volume_up,active_low,250
[file]
enabled = true
media_dirs = /home/pi/Music
show_dotfiles = false
excluded_file_extensions =
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
follow_symlinks = false
metadata_timeout = 1000
[pidi]
enabled = true
display = st7789
rotation = 90
[mpd]
hostname = 0.0.0.0
[http]
hostname = 0.0.0.0
[audio]
mixer_volume = 40
output = alsasink device=hw:sndrpihifiberry
[spotify]
enabled = false
username =
password =
client_id =
client_secret =
Also, I did check out /usr/share/mopidy/conf.d/mopidy.conf
:
pi@raspberrypi:/usr/share/mopidy/conf.d $ cat mopidy.conf
# These are default configurations modified by the mopidy Debian package.
#
# This file should not be modified. Everything can be overriden by
# `/etc/mopidy/mopidy.conf`.
[core]
cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/mopidy
[logging]
format = %(levelname)-8s [%(threadName)s] %(name)s %(message)s
color = false
I deleted all the old conf files and created a new one.
After a reboot, all seems to be well! This time I didn't have to enable and start the mopidy service, it was already running on boot!
Though the url with the port never did appear on the screen again, the screen shows the volume bar and pause & play icons.
A quick run of sudo systemctl status mopidy
shows me that the frontend is on port 6680 I believe.
pi@raspberrypi:~ $ sudo systemctl status mopidy
● mopidy.service - Mopidy music server
Loaded: loaded (/lib/systemd/system/mopidy.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-04-26 08:20:36 CDT; 1min 42s ago
Process: 484 ExecStartPre=/bin/mkdir -p /var/cache/mopidy (code=exited, status=0/SUCCESS)
Process: 490 ExecStartPre=/bin/chown mopidy:audio /var/cache/mopidy (code=exited, status=0/SUCCESS)
Main PID: 493 (mopidy)
Tasks: 15 (limit: 4323)
CGroup: /system.slice/mopidy.service
└─493 /usr/bin/python3 /usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf
Apr 26 08:20:43 raspberrypi mopidy[493]: INFO [MainThread] mopidy.commands Starting Mopidy mixer: SoftwareMixer
Apr 26 08:20:43 raspberrypi mopidy[493]: INFO [MainThread] mopidy.commands Mixer volume set to 40
Apr 26 08:20:43 raspberrypi mopidy[493]: INFO [MainThread] mopidy.commands Starting Mopidy audio
Apr 26 08:20:43 raspberrypi mopidy[493]: INFO [MainThread] mopidy.commands Starting Mopidy backends: FileBackend, M3UBackend, Str
Apr 26 08:20:43 raspberrypi mopidy[493]: INFO [MainThread] mopidy.commands Starting Mopidy core
Apr 26 08:20:43 raspberrypi mopidy[493]: INFO [MainThread] mopidy.commands Starting Mopidy frontends: RaspberryGPIOFrontend, PiDi
Apr 26 08:20:43 raspberrypi mopidy[493]: INFO [Audio-2] mopidy.audio.actor Audio output set to "alsasink"
Apr 26 08:20:43 raspberrypi mopidy[493]: INFO [IrisFrontend-9] mopidy_iris.core Starting Iris 3.57.6
Apr 26 08:20:43 raspberrypi mopidy[493]: INFO [HttpFrontend-11] mopidy.http.actor HTTP server running at [::ffff:0.0.0.0]:6680
Apr 26 08:20:43 raspberrypi mopidy[493]: INFO [MainThread] mopidy.commands Starting GLib mainloop
actually, idk, I'm not sure how to pull up that frontend in my browser. I ran an ifconfig on my pi and it said my ip was 10.0.0.50
so on my browser I tried visiting http://10.0.0.50/6680
on the same wifi network as the pi, but to no avail. I'm just not super knowledgeable about networking. I ran an nmap -Pn 10.0.0.50
but it showed me only port 22 for ssh - I thought maybe I'd see that port 6680 for the frontend.
any ideas?
I don't seem to be seeing the URL with the port on the screen, but I can access the front end.
Your URL will be something like: http://10.0.0.50:6680/
Yeah, that's what I figured, and now that I revisit http://10.0.0.50:6680/ the frontend is there. Maybe it takes a min to spin up or something.
Oh - I see I had a / instead of a colon in the URL whoops.
Thank you for the help!!
Hi there, I've gone through the instructions of setting up Pirate Audio Modipy. I of course, first ran pirate-audio/mopidy/install.sh and rebooted, but the url for the server port never appeared on the screen. I played around with some of the python examples and buttons and screen all seem to make sense.
I then tried the manual setup: https://github.com/pimoroni/pirate-audio/tree/master/mopidy
Near the end, I enabled and started the modipy service. Then, I ran
sudo systemctl status mopidy
to check out what seemed to be going wrong. It appears to indicate that there's a duplicate section in my modipy.conf file, however I'm fairly certain there's not - I just copied over the conf text from the instructions. I'm not sure if it's related to/boot/config.txt
Here's the return from
sudo systemctl status modipy
:Here's the contents of
/etc/modipy/modipy.conf
:And I guess, here's the contents of
/boot/config.txt
: