You are not logged in.

#1 2009-09-05 21:35:13

YamiFrankc
Member
From: Mexico
Registered: 2009-06-19
Posts: 177
Website

[SOLVED] Cant update MPD database...

Ive installed MPD and did what the wiki says,but when i do  "sudo mpd --create-db" i get:

output: No "audio_output" defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
output: Successfully detected a alsa audio device

Nothing about my mp3 file,neither i can see them in ncmpcpp.
The music folder is set to ~/music (full path).

What i am doing wrong?

Last edited by YamiFrankc (2009-09-05 23:22:09)


Thanks and greetings.

Offline

#2 2009-09-05 22:08:51

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

Re: [SOLVED] Cant update MPD database...

*sigh* the same question at least twice a week smile

Anyway, a few hints:

a) Use the absolute path
b) the user defined in /etc/mpd.conf has to have permissions to read your music directory AND permissions to write, read and execute the folder, where you save your database, pid, log etc...
c) To get some proper error messages start mpd with "sudo mpd --verbose --stdout --nodaemon" - then use a client to update the database (in ncmpc hit 'u')


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

#3 2009-09-05 22:31:20

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: [SOLVED] Cant update MPD database...

Also, if I recall, it scans in the background, so if you are seeing a bit of hard drive after you execute this, that is probably what is happening.

Last edited by Wintervenom (2009-09-05 22:50:59)

Offline

#4 2009-09-05 23:21:45

YamiFrankc
Member
From: Mexico
Registered: 2009-06-19
Posts: 177
Website

Re: [SOLVED] Cant update MPD database...

Uh,thanks a lot. And sorry for not searcing in the forum tongue.
The problem was,as you said permissions, mpd user wasnt able to wire the directory.


Thanks and greetings.

Offline

#5 2009-09-06 10:13:02

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427
Website

Re: [SOLVED] Cant update MPD database...

YamiFrankc wrote:

The problem was,as you said permissions, mpd user wasnt able to wire the directory.

Reason enough to run mpd as a regular user.

Offline

Board footer

Powered by FluxBB