You are not logged in.

#1 2009-04-27 19:14:54

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

[SOLVED] MPD is missing some directories/files.

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

#2 2009-04-27 19:37:27

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] MPD is missing some directories/files.

what user does mpd run as? may be a permissions issue.

Offline

#3 2009-04-27 20:09:06

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: [SOLVED] MPD is missing some directories/files.

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

#4 2009-04-27 20:15:44

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] MPD is missing some directories/files.

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

#5 2009-04-27 20:30:32

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: [SOLVED] MPD is missing some directories/files.

Procyon wrote:

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

#6 2009-04-27 21:10:52

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] MPD is missing some directories/files.

Could you try a different mpd version? http://sourceforge.net/project/showfile … e_id=83007

Offline

#7 2009-04-27 22:23:26

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

Re: [SOLVED] MPD is missing some directories/files.

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

#8 2009-04-28 01:11:06

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: [SOLVED] MPD is missing some directories/files.

Rasi wrote:

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

#9 2009-04-28 01:38:35

NVS
Member
Registered: 2007-12-30
Posts: 29

Re: [SOLVED] MPD is missing some directories/files.

Perhaps a character encoding issue? Check in your mpd.conf regarding the filesystem_charset.

Offline

#10 2009-04-28 01:45:00

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: [SOLVED] MPD is missing some directories/files.

No dice, same problems.

Offline

#11 2009-04-28 01:49:11

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: [SOLVED] MPD is missing some directories/files.

NVS wrote:

Perhaps a character encoding issue? Check in your mpd.conf regarding the filesystem_charset.

Tried it, no such luck. Thanks anyway.

Offline

#12 2009-04-28 13:28:46

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

Re: [SOLVED] MPD is missing some directories/files.

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

#13 2009-04-28 19:59:27

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: [SOLVED] MPD is missing some directories/files.

Yeah, they're mp3. It's all I have. Nothing exotic. I don't get it.

Offline

#14 2009-04-28 20:09:35

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] MPD is missing some directories/files.

Run easytag on it and see if it can't auto correct the tags.

Offline

#15 2009-04-28 23:18:23

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: [SOLVED] MPD is missing some directories/files.

just run a chown -R youruser over the music dir and check if that works


☃ Snowman ☃

Offline

#16 2009-04-29 13:14:27

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: [SOLVED] MPD is missing some directories/files.

robmaloy wrote:

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.

Procyon wrote:

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

#17 2009-04-29 13:41:27

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] MPD is missing some directories/files.

Try out an older mpd version, like 0.14 or the last one from 0.13.x

Offline

#18 2009-04-29 14:23:36

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: [SOLVED] MPD is missing some directories/files.

Is there a simple way I can do that with PacMan?

Offline

#19 2009-04-29 14:24:39

Zariel
Member
Registered: 2008-10-07
Posts: 446

Re: [SOLVED] MPD is missing some directories/files.

no but you can with git, unless you have the old package in cache

Offline

#20 2009-04-29 20:01:58

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: [SOLVED] MPD is missing some directories/files.

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

#21 2009-04-29 20:07:22

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: [SOLVED] MPD is missing some directories/files.

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

#22 2009-04-29 20:22:40

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] MPD is missing some directories/files.

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)

Offline

#23 2009-04-29 20:46:56

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] MPD is missing some directories/files.

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

Board footer

Powered by FluxBB