You are not logged in.

#1 2010-03-03 00:48:31

k2000
Member
Registered: 2009-12-02
Posts: 33

mpd create-db fails [SOLVED]

Hi everyone,
It makes a while since I can't update mpd's db.
If I do it through gmpc it just do nothing.
If I do it in a terminal:

mpd --create-db
log: problem opening log file "/var/log/mpd/mpd.log" (config line 37) for writing

or

sudo mpd --create-db
listen: Failed to listen on *:6600: Adress already in use
Abandon

There is no client running to block the port 6600, but I think this last error is normal anyway.
I did not changed nothing since it has worked, so I have no idea...
Any idea welcome.

[edit]
Just to mention that all the logfiles belongs to user mpd and group mpd with r-w acces, so I don't see any permission problem here.

Last edited by k2000 (2010-03-05 01:12:40)

Offline

#2 2010-03-03 00:52:03

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: mpd create-db fails [SOLVED]

Look at the permissions of the log file MPD complains about and give it write permissions for the user mpd actually runs as – I'm running it as own account and wondered about the same thing back then.

Last edited by Runiq (2010-03-03 00:53:22)

Offline

#3 2010-03-03 01:44:06

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

Re: mpd create-db fails [SOLVED]

See this link.

Offline

#4 2010-03-03 02:30:40

k2000
Member
Registered: 2009-12-02
Posts: 33

Re: mpd create-db fails [SOLVED]

Thanks to both of you.
n0dix, the link you propose concern the "Failled to listen *:6600..." error, but this is not really my problem. I mean, some weeks ago database update via gmpc worked, but I got that error when updating with mpd --create-db, so I guess that's not the point.
And for the permission problem, as I said, all the files belongs to mpd user and group with read/write access... maybe I'll double-check this anyway. But tomorrow wink
thanks again.

Offline

#5 2010-03-03 03:07:26

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: mpd create-db fails [SOLVED]

misread your question, could you post your mpd config file?

@smakked below me, I believe --update-db was deprecated, not --create-db.

Last edited by stefanwilkens (2010-03-03 03:12:10)


Arch i686 on Phenom X4 | GTX760

Offline

#6 2010-03-03 03:08:14

smakked
Member
From: Gold Coast , Australia
Registered: 2008-08-14
Posts: 420

Re: mpd create-db fails [SOLVED]

Isnt  "mpd --create-db"  depreciated now in the latest mpd?


Certified Android Junkie
Arch 64

Offline

#7 2010-03-03 03:56:39

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

Re: mpd create-db fails [SOLVED]

smakked wrote:

Isnt  "mpd --create-db"  depreciated now in the latest mpd?

yes it is,  Mpd Arch Wiki: "The previous method, creating the MPD database as root (# mpd --create-db), is deprecated."

Offline

#8 2010-03-03 23:18:50

k2000
Member
Registered: 2009-12-02
Posts: 33

Re: mpd create-db fails [SOLVED]

ok, I got rid of the fist error about the log.
Normally all my music directory belongs to the group 'musak' , witch mpd is member, but some folder didnt.
I did a chmod -R pascal:musak on the directory and I don't have the "problem opening log" error anymore. Just the error about the port 6600.
So the db does not upgrade.
I knew that "mpd --create-db" was deprecated, but it was still working.
Still reading some threads, hope I'll come back with a solution soon.

p.s. I hope I don't say things that makes no sense, my english is not really good I think, but the english forum seems more complete than the frecch one.

Offline

#9 2010-03-05 01:12:22

k2000
Member
Registered: 2009-12-02
Posts: 33

Re: mpd create-db fails [SOLVED]

Finally got it, chmod -R 775 on music directory does the job...
From the link n0dix has provided.
Thanks everyones wink
[edit]
killing conky too, it display the running track, but I think it blocks the update.

Last edited by k2000 (2010-03-05 01:13:42)

Offline

Board footer

Powered by FluxBB