Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MPD music library empty [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
martijntje
n00b
n00b


Joined: 29 Nov 2005
Posts: 39

PostPosted: Sun Feb 04, 2007 1:29 am    Post subject: MPD music library empty [solved] Reply with quote

For some reason i cannot seem to get any songs into the MPD library.

I have set the correct path to my library in /etc/mpd.conf . I tried both with and without a trailing / . However, after a 'sudo /usr/bin/mpd --create-db /etc/mpd.conf' all that is in the file is
Quote:
info_begin
mpd_version: 0.12.1
fs_charset: UTF-8
info_end
songList begin
songList end


What can i do to get my music to show up in the library?


Last edited by martijntje on Mon Feb 05, 2007 3:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Sun Feb 04, 2007 4:36 am    Post subject: Reply with quote

my mpd.conf file has

Code:
music_directory                "/var/lib/mpd/music"


have you got the double quote marks around the path?
_________________
He who calls for full employment calls for war!
Back to top
View user's profile Send private message
martijntje
n00b
n00b


Joined: 29 Nov 2005
Posts: 39

PostPosted: Sun Feb 04, 2007 12:11 pm    Post subject: Reply with quote

sugar wrote:
my mpd.conf file has

Code:
music_directory                "/var/lib/mpd/music"


have you got the double quote marks around the path?
Of course it has :) .
Back to top
View user's profile Send private message
bitwise
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 104
Location: seattle

PostPosted: Sun Feb 04, 2007 3:03 pm    Post subject: Reply with quote

could it be permissions? is your music dir readable by mpd?

my setup is as follows: a /shared/music dir that contains only albums based on the artist, my mpd.conf has
Code:
music_directory                 "/shared/Music"
/shared/Music is owned by root:audio and is chmoded to 755 (ie, owner read/write/exe, group and other just read/exe)
Back to top
View user's profile Send private message
martijntje
n00b
n00b


Joined: 29 Nov 2005
Posts: 39

PostPosted: Sun Feb 04, 2007 3:54 pm    Post subject: Reply with quote

bitwise wrote:
could it be permissions? is your music dir readable by mpd?

my setup is as follows: a /shared/music dir that contains only albums based on the artist, my mpd.conf has
Code:
music_directory                 "/shared/Music"
/shared/Music is owned by root:audio and is chmoded to 755 (ie, owner read/write/exe, group and other just read/exe)
The problem does not lie with the permissions. Every album is set to 755 modus. The audio directory itself is set to 777.
Back to top
View user's profile Send private message
bLUEbYTE84
Guru
Guru


Joined: 21 Jul 2006
Posts: 566
Location: universe.tar.gz, src/earth.h, struct homo_sapiens_table

PostPosted: Sun Feb 04, 2007 4:28 pm    Post subject: Reply with quote

You set the directories, but it seems you did not actually initialize the DB.
Follow http://gentoo-wiki.com/HOWTO_MPD
_________________
Advanced Signature Camouflage System®(ASCS) v0.1
Back to top
View user's profile Send private message
martijntje
n00b
n00b


Joined: 29 Nov 2005
Posts: 39

PostPosted: Sun Feb 04, 2007 4:32 pm    Post subject: Reply with quote

bLUEbYTE84 wrote:
You set the directories, but it seems you did not actually initialize the DB.
Follow http://gentoo-wiki.com/HOWTO_MPD
You mean running sudo /usr/bin/mpd --create-db /etc/mpd.conf' ? Because i already tried that as you can see in my first post.

On the link you provided, however, i see the following:
Quote:
where --create-db should output the list of every file it finds.
This command finishes without any errors here, but also doesn't print anything.
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Sun Feb 04, 2007 5:07 pm    Post subject: Reply with quote

Assuming you have specified appropiate music dir on /etc/mpd.conf, could it be something regarding USE flags used to build mpd? It is; maybe you didn't compile mpd to support music format files that are inside music dir?

Before running sudo mpd --create-db, error log gives some clue?
less $(grep error /etc/mpd.conf|awk -F "\"" '{print $2}')
Back to top
View user's profile Send private message
martijntje
n00b
n00b


Joined: 29 Nov 2005
Posts: 39

PostPosted: Sun Feb 04, 2007 6:28 pm    Post subject: Reply with quote

ashtophet wrote:
Assuming you have specified appropiate music dir on /etc/mpd.conf, could it be something regarding USE flags used to build mpd? It is; maybe you didn't compile mpd to support music format files that are inside music dir?

Before running sudo mpd --create-db, error log gives some clue?
less $(grep error /etc/mpd.conf|awk -F "\"" '{print $2}')


Hmm, that command doesn't really work, all it tells me is
Quote:
Feb 04 02:23 : problems opening state file "/var/multimedia/mpd/state" for writing: Permission denied
I am, however, recompiling mpd with the 'mp3' use flag. I hadn't noticed it used the mp3 as use flag instead of the 'mad' other programs do. Shame on me :oops: .

Hmm, it already finished compiling, it appears to work now. Double shame to me for missing something this obvious.
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Mon Feb 05, 2007 3:41 pm    Post subject: Reply with quote

Glad you've solved it :wink:

BTW it seems that /var/multimedia... doesn't exist or mpd daemon cannot access it, so if you want to be able to restore mpd state (on daemon restart or on machine reboot) check permissions or adjust that variable on /etc/mpd.conf, then restart daemon.

P.S.: It could be a good idea to put '[SOLVED]' following the tittle of this thread.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum