View previous topic :: View next topic |
Author |
Message |
martijntje n00b
Joined: 29 Nov 2005 Posts: 39
|
Posted: Sun Feb 04, 2007 1:29 am Post subject: MPD music library empty [solved] |
|
|
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 |
|
|
sugar Guru
Joined: 07 Aug 2004 Posts: 579 Location: Morrinsville, New Zealand
|
|
Back to top |
|
|
martijntje n00b
Joined: 29 Nov 2005 Posts: 39
|
Posted: Sun Feb 04, 2007 12:11 pm Post subject: |
|
|
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 |
|
|
bitwise Tux's lil' helper
Joined: 20 Apr 2005 Posts: 104 Location: seattle
|
Posted: Sun Feb 04, 2007 3:03 pm Post subject: |
|
|
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 |
|
|
martijntje n00b
Joined: 29 Nov 2005 Posts: 39
|
Posted: Sun Feb 04, 2007 3:54 pm Post subject: |
|
|
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 |
|
|
bLUEbYTE84 Guru
Joined: 21 Jul 2006 Posts: 566 Location: universe.tar.gz, src/earth.h, struct homo_sapiens_table
|
Posted: Sun Feb 04, 2007 4:28 pm Post subject: |
|
|
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 |
|
|
martijntje n00b
Joined: 29 Nov 2005 Posts: 39
|
Posted: Sun Feb 04, 2007 4:32 pm Post subject: |
|
|
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 |
|
|
ashtophet Guru
Joined: 08 Aug 2004 Posts: 397
|
Posted: Sun Feb 04, 2007 5:07 pm Post subject: |
|
|
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 |
|
|
martijntje n00b
Joined: 29 Nov 2005 Posts: 39
|
Posted: Sun Feb 04, 2007 6:28 pm Post subject: |
|
|
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 .
Hmm, it already finished compiling, it appears to work now. Double shame to me for missing something this obvious. |
|
Back to top |
|
|
ashtophet Guru
Joined: 08 Aug 2004 Posts: 397
|
Posted: Mon Feb 05, 2007 3:41 pm Post subject: |
|
|
Glad you've solved it
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 |
|
|
|