You are not logged in.
Using MPD with Sonata for my music library, as I always have. I returned to Arch yesterday after a short Ubuntu vacation, and got everything set up the way I like it, except MPD is giving me some hassle.
I have a music library sorted by folders in the following way: /music/artist/year- albumtitle. In sonata, It displays the MPD DB as a filesystem view, but omits a handful of artist names. They exist, and they play JUST FINE in VLC (And in MPD/Sonata on Ubuntu, for that matter). So, I've deleted the db, re-created it, checked all my paths, nothing looks supect.
Any ideas?
Last edited by Kyle Carter (2009-04-29 20:07:43)
Offline
I have mpd runs using my user account, which is set as the owner of the music directory, so there shouldn't be a permissions issue, especially seeing as the majority of the music is showing up in the db, just missing a few.
Offline
Anything odd about the output of id3info / mp3info on a missing file? Did the file show up in the output of mpd --create-db? Does `mpc update` help?
Offline
Anything odd about the output of id3info / mp3info on a missing file? Did the file show up in the output of mpd --create-db? Does `mpc update` help?
-Nothing odd about the output from mp3info.
-Didn't show up in the output.
-mpc update does not help.
The odd thing is, it's not just random tracks. I only have full albums, and while most show up, folders containing 6 albums by the same single artist are ALL missing. There's a band called "Future of the Left" which has 4 albums in it, and that artist doesn't show up at ALL.
Offline
Could you try a different mpd version? http://sourceforge.net/project/showfile … e_id=83007
Offline
also run mpd as root with mpd --verbose --no-daemon --stdout --create-db
this should give very detailed info about skipped files and such...
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
also run mpd as root with mpd --verbose --no-daemon --stdout --create-db
this should give very detailed info about skipped files and such...
No info at all about the missing files. Skipped a bunch of "folder.jpg" and stuff like that that wasn't actual music, but no mention of the missing stuff, good or bad.
I'm currently getting mpd-git off the AUR though, so maybe that'll help.
Offline
Perhaps a character encoding issue? Check in your mpd.conf regarding the filesystem_charset.
Offline
No dice, same problems.
Offline
Perhaps a character encoding issue? Check in your mpd.conf regarding the filesystem_charset.
Tried it, no such luck. Thanks anyway.
Offline
stupid question, but are you sure those file types are supported? what are they? and does mpd --version claim support for it?
Last edited by Rasi (2009-04-28 13:29:28)
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
Yeah, they're mp3. It's all I have. Nothing exotic. I don't get it.
Offline
Run easytag on it and see if it can't auto correct the tags.
Offline
just run a chown -R youruser over the music dir and check if that works
☃ Snowman ☃
Offline
just run a chown -R youruser over the music dir and check if that works
One of the first things I tried, actually. The permissions are the same on the files that work and the ones that don't.
Run easytag on it and see if it can't auto correct the tags.
Sadly, this doesn't seem to be the issue either.
Offline
Try out an older mpd version, like 0.14 or the last one from 0.13.x
Offline
Is there a simple way I can do that with PacMan?
Offline
no but you can with git, unless you have the old package in cache
Offline
Okay, I actually went and re-installed the mpd-git and mpc-git from AUR, but deleted EVERY mpd-related file on my HD first. Now, when I add the files, the log mentions those folders as "Permission denied", which it didn't do at all anymore. SO, I've just got to figure out why the permissions don't show up as different from the others, and change 'em. Weird. Thanks for your help, everyone!
Offline
It worked. I had to match the files missing against my directory structure because doing a chown -hR on the parent directory wasn't doing the trick, but Everything is where it should be now.
Offline
hmmm so i had it right all along eh? hehe, anyways...
odd that chown -R didn't work; but, if you don't have permission to play it in mpd then you don't have permission to chown it either, you did do sudo chown right?
also, i find this little snippet useful for those cases
#!/bin/bash
# fixit
# recursively fix dir/file permissions on a given directory
# usage ./fixit /path/to/Music
if [ -d $1 ]; then
find $1 -name '*' -exec chown me:me {} \; \
-type d -exec chmod 755 {} \; \
-type f -exec chmod 644 {} \;
else
echo "$1 is not a directory."
fi
exit 0
edited: thanks procyon
Last edited by brisbin33 (2009-04-29 21:40:51)
//github/
Offline
You should combine finds in a row with a single one if you use it frequently, like this:
find -maxdepth 1 -exec echo -n '{} is a ' \; -type d -exec echo directory \; -o -type f -exec echo file \; -o -exec echo something else \;
It's also good to hear it wasn't mpd itself. I am still using an old version myself. I think I will upgrade too.
Offline