Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: MPD Create Databse problems

  1. #1
    Join Date
    Jul 2007
    Beans
    58
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    MPD Create Databse problems

    When I use the
    Code:
    mpd --create-db
    command, the database is created seemingly perfectly and without and error messages. However, when I go into any client, there are lots of files missing and some duplicates of albums etc.

    Does anyone know if this a bug in MPD or is there something I can do to fix it? I can post my conf file if that helps.

    Thanks in advance.

  2. #2
    Join Date
    Apr 2007
    Location
    York, United Kingdom
    Beans
    143

    Re: MPD Create Databse problems

    MPD needs read access to your music directory, more often than not the problem with missing files is that the daemon can't actually see them. By default it runs as mpd.mpd I believe, but you can change this in the conf file. Not sure about the duplicated albums though, perhaps you have some symlinks floating around?

  3. #3
    Join Date
    Jul 2007
    Beans
    58
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: MPD Create Databse problems

    Quote Originally Posted by DezSP View Post
    MPD needs read access to your music directory, more often than not the problem with missing files is that the daemon can't actually see them. By default it runs as mpd.mpd I believe, but you can change this in the conf file. Not sure about the duplicated albums though, perhaps you have some symlinks floating around?
    Hmm, still can't seem to figure this out. It's definitely not a problem with the client software I'm using though, because the mpd.db file does have duplicate entries. I've never used symlinks before. Would they be obvious if they were in the directories?

    When I first installed MPD, I stripped by conf file down to this:
    Code:
    bind_to_address         "localhost"
    music_directory         "~/Multimedia/Music"
    playlist_directory      "~/.mpd/playlists"
    db_file                 "~/.mpd/mpd.db"
    log_file                "~/.mpd/mpd.log"
    error_file              "~/.mpd/mpd.error"
    pid_file                "/home/mike/.mpd/mpdpid"
    user                    "mike"
    Could that be the problem? Can you see if there is there anything missing?

  4. #4
    Join Date
    Apr 2007
    Beans
    2,578
    Distro
    Ubuntu

    Re: MPD Create Databse problems

    You should probably try deleting the db_file and then recreate it with "mpd --create-db". I once had problems, and I could fix it this way.

  5. #5
    Join Date
    Jul 2007
    Beans
    58
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: MPD Create Databse problems

    Quote Originally Posted by vanadium View Post
    You should probably try deleting the db_file and then recreate it with "mpd --create-db". I once had problems, and I could fix it this way.
    Yeah, I tried that. It's better, but there are still lots of missing/duplicate files - just different ones now!

  6. #6
    Join Date
    Apr 2007
    Location
    York, United Kingdom
    Beans
    143

    Re: MPD Create Databse problems

    Try using absolute paths (i.e. /home/mike instead of ~), I had problems with sudo messing those up sometimes. Is there any pattern in the duplicated/missing files? Like special characters, all tracks beginning with X, anything? If you can find out what the pattern is it might lead us to the solution.

  7. #7
    Join Date
    Apr 2007
    Beans
    2,578
    Distro
    Ubuntu

    Re: MPD Create Databse problems

    ~ is an absolute path so there will not be the problem. If you say 1) the duplicates are now different, 2) you never used symlinks before, then links indeed likely won't be the issue. Perhaps you could run a recursive directory listing and compare that with the db to confirm it is not an issue with the filing.

    ls -rC1 ~/Multimedia/Music/*

  8. #8
    Join Date
    Apr 2007
    Location
    York, United Kingdom
    Beans
    143

    Re: MPD Create Databse problems

    Capital R, not lowercase.

  9. #9
    Join Date
    Jul 2007
    Beans
    58
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: MPD Create Databse problems

    Haha, it seems that there were actually some duplicate files in my directory, but no where near the amount that Ario was showing. Ario was showing at least ten of the same album, whereas I only had two.

    NCMPC doesn't display any incorrect duplicates, but doesn't see the files that were missing. Those files, by the way, can be seen by the ls command.

    Thanks you your help on this guys. Any other ideas?

  10. #10
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Beans
    234
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: MPD Create Databse problems

    What happens if you run
    sudo /etc/init.d/mpd start-create-db
    instead?

    (You may need to 'sudo /etc/init.d/mpd stop' before creating the DB)

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •