Closed gerroon closed 6 years ago
i assume your configuration value of mpd's database is invalid.
[mpd]
dbfile = /home/MYUSER/.config/mpd/tag_cache
depending on your OS it might be something like /var/lib/mpd/database
or /var/lib/mpd/mpd.db
Hi
dbfile = /home/MYUSER/.config/mpd/tag_cache (which is how it is also setup in mpd.conf given that I can use mpd just fine)
Do you know how I can get www-data to access to this file properly? I assume www-data user is the one that needs to update the database?
Just to verify the problem is the file access... Try to create a symlink to your db-file
MYUSER@yourMachine /path/to/slimpddocroot $ ln -s /home/MYUSER/.config/mpd/tag_cache
and change your config to
[mpd]
dbfile = /path/to/slimpddocroot/tag_cache
or temporary replace the symlink with a hard copy of the file
Hi
Thanks for your help, your response made me think it sure was a permission issue. I ran with sudo and it works so I need to find a reasoanble solution to this.
Hi
This is my Mpd database file (set in mpd.conf)
ERROR: databasefile /home/MYUSER/.config/mpd/tag_cache not readable
This whole folder is 777, so I do not understand why it is compalining about this. Is it talking about something else? I am runnign Mpd under my user name.