You are not logged in.

#1 2009-11-13 03:14:45

donryanocero
Member
From: Humboldt
Registered: 2009-01-17
Posts: 22

mpd database empty, --create-db not working

Out of nowhere mpd only shows one directory of files from my music directory. Not sure why it's doing this and I've tried several configurations that all work, except for this same problem. mpd gives me no errors. Any ideas?

thanks.

Offline

#2 2009-11-13 04:03:35

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: mpd database empty, --create-db not working

I don't know if you're using MPD from the repos or what its current status is, but modern MPD releases don't use the --create-db anymore. MPD should create the database automatically on start and update it using inotify. One thing that you can try is to move your current database, restart MPD, and see if you get a new database file.

Offline

#3 2009-11-13 05:06:25

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: mpd database empty, --create-db not working

donryanocero wrote:

Out of nowhere mpd only shows one directory of files from my music directory. Not sure why it's doing this and I've tried several configurations that all work, except for this same problem. mpd gives me no errors. Any ideas?

thanks.

that sounds alarmingly like wrong permissions smile


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#4 2010-02-24 00:37:30

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: mpd database empty, --create-db not working

Rasi wrote:
donryanocero wrote:

Out of nowhere mpd only shows one directory of files from my music directory. Not sure why it's doing this and I've tried several configurations that all work, except for this same problem. mpd gives me no errors. Any ideas?

thanks.

that sounds alarmingly like wrong permissions smile

Care to elaborate? Suddenly I can't get ANY of my music in my MPD database.

I gotta be honest: deprecating the --create-db SUCKS. At least when that didn't work it would spit an error message at me. I can't get it to say ANYTHING is wrong.


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#5 2010-02-24 00:42:20

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: mpd database empty, --create-db not working

in my case i didn't use --create-db, mpd automatically update it.

Offline

#6 2010-02-24 00:54:02

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: mpd database empty, --create-db not working

mpd still has error messages...

Offline

#7 2010-02-24 20:03:08

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: mpd database empty, --create-db not working

Rasi wrote:

that sounds alarmingly like wrong permissions smile

Care to elaborate? Suddenly I can't get ANY of my music in my MPD database.

I gotta be honest: deprecating the --create-db SUCKS. At least when that didn't work it would spit an error message at me. I can't get it to say ANYTHING is wrong.

I meant your mpd user has no permissions to read music files and/or write the database file.

As Daenyth pointed out, mpd has error messages. Start it as root with mpd --verbose --stdout --no-daemon (and kill any other mpd process before doing so)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#8 2011-05-22 12:32:29

mikael
Member
From: Slovakia
Registered: 2011-05-22
Posts: 28
Website

Re: mpd database empty, --create-db not working

For me the following worked:

sudo /etc/init.d/mpd stop
sudo rm /var/lib/mpd/tag_cache
sudo /etc/init.d/mpd start-create-db

If you experience some errors or missing stuff than check
less /var/log/mpd/mpd.log

I had some reading Permission denies

Offline

#9 2011-05-22 12:45:40

ilusi0n
Member
Registered: 2010-06-09
Posts: 187

Re: mpd database empty, --create-db not working

Instead of using the default config in mpd file why won't change to save the config files in your home directory? The permission problems will disappear... Start then mpd and check if you still have permission problems (if not, check the mpd.log and check if your music database is being created because it will create automatically)

Offline

Board footer

Powered by FluxBB