[SOLVED]mpd does not detect the music directory

I recently installed mpd with the gmpc gui, set my "music_directory" in /etc/mpd.conf to the location of all of my music (which contains lots of other folders and subfolders), but there's no listing of the audio files in the database in gmpc.
Here's the /etc/mpd.conf if that helps:
# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.
# Files and directories #######################################################
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
music_directory "/var/lib/mpd/music"
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use
# playlist files not created by the server but only if they are in the MPD
# format. This setting defaults to playlist saving being disabled.
playlist_directory "/var/lib/mpd/playlists"
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the
# server is not up. This setting defaults to disabled which will allow
# MPD to accept files over ipc socket (using file:// protocol) or streaming
# files over an accepted protocol.
db_file "/var/lib/mpd/mpd.db"
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
# settings.
# The special value "syslog" makes MPD use the local syslog daemon. This
# setting defaults to logging to syslog, otherwise logging is disabled.
log_file "/var/log/mpd/mpd.log"
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default and the pid file will not be stored.
pid_file "/var/run/mpd/mpd.pid"
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default and the server
# state will be reset on server start up.
state_file "/var/lib/mpd/mpdstate"
# The location of the sticker database. This is a database which
# manages dynamic information attached to songs.
#sticker_file "~/.mpd/sticker.sql"
# General music daemon options ################################################
# This setting specifies the user that MPD will run as. MPD should never run as
# root and you may use this setting to make MPD change its user ID after
# initialization. This setting is disabled by default and MPD is run as the
# current user.
user "mpd"
# This setting specifies the group that MPD will run as. If not specified
# primary group of user specified with "user" setting will be used (if set).
# This is useful if MPD needs to be a member of group such as "audio" to
# have permission to use sound card.
#group "nogroup"
# This setting sets the address for the daemon to listen on. Careful attention
# should be paid if this is assigned to anything other then the default, any.
# This setting can deny access to control of the daemon.
# For network
#bind_to_address "any"
# And for Unix Socket
#bind_to_address "~/.mpd/socket"
# This setting is the TCP port that is desired for the daemon to get assigned
# to.
#port "6600"
# This setting controls the type of information which is logged. Available
# setting arguments are "default", "secure" or "verbose". The "verbose" setting
# argument is recommended for troubleshooting, though can quickly stretch
# available resources on limited hardware storage.
#log_level "default"
# If you have a problem with your MP3s ending abruptly it is recommended that
# you set this argument to "no" to attempt to fix the problem. If this solves
# the problem, it is highly recommended to fix the MP3 files with vbrfix
# (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point gapless MP3 playback can be enabled.
#gapless_mp3_playback "yes"
# This setting enables MPD to create playlists in a format usable by other
# music players.
#save_absolute_paths_in_playlists "no"
# This setting defines a list of tag types that will be extracted during the
# audio file discovery process. Optionally, 'comment' can be added to this
# list.
#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
# This setting enables automatic update of MPD's database when files in
# music_directory are changed.
#auto_update "yes"
# Limit the depth of the directories being watched, 0 means only watch
# the music directory itself. There is no limit by default.
#auto_update_depth "3"
# Symbolic link behavior ######################################################
# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links outside of the configured music_directory.
#follow_outside_symlinks "yes"
# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links inside of the configured music_directory.
#follow_inside_symlinks "yes"
# Zeroconf / Avahi Service Discovery ##########################################
# If this setting is set to "yes", service information will be published with
# Zeroconf / Avahi.
#zeroconf_enabled "yes"
# The argument to this setting will be the Zeroconf / Avahi unique name for
# this MPD server on the network.
#zeroconf_name "Music Player"
# Permissions #################################################################
# If this setting is set, MPD will require password authorization. The password
# can setting can be specified multiple times for different password profiles.
#password "password@read,add,control,admin"
# This setting specifies the permissions a user has who has not yet logged in.
#default_permissions "read,add,control,admin"
# Input #######################################################################
input {
plugin "curl"
# proxy "proxy.isp.com:8080"
# proxy_user "user"
# proxy_password "password"
# Audio Output ################################################################
# MPD supports various audio output types, as well as playing through multiple
# audio outputs at the same time, through multiple audio_output settings
# blocks. Setting this block is optional, though the server will only attempt
# autodetection for one sound card.
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
# other audio outputs.
# An example of an ALSA output:
#audio_output {
# type "alsa"
# name "My ALSA Device"
## device "hw:0,0" # optional
## format "44100:16:2" # optional
## mixer_type "hardware" # optional
## mixer_device "default" # optional
## mixer_control "PCM" # optional
## mixer_index "0" # optional
# An example of an OSS output:
#audio_output {
# type "oss"
# name "My OSS Device"
## device "/dev/dsp" # optional
## format "44100:16:2" # optional
## mixer_type "hardware" # optional
## mixer_device "/dev/mixer" # optional
## mixer_control "PCM" # optional
# An example of a shout output (for streaming to Icecast):
#audio_output {
# type "shout"
# encoding "ogg" # optional
# name "My Shout Stream"
# host "localhost"
# port "8000"
# mount "/mpd.ogg"
# password "hackme"
# quality "5.0"
# bitrate "128"
# format "44100:16:1"
## protocol "icecast2" # optional
## user "source" # optional
## description "My Stream Description" # optional
## genre "jazz" # optional
## public "no" # optional
## timeout "2" # optional
## mixer_type "software" # optional
# An example of a recorder output:
#audio_output {
# type "recorder"
# name "My recorder"
# encoder "vorbis" # optional, vorbis or lame
# path "/var/lib/mpd/recorder/mpd.ogg"
## quality "5.0" # do not define if bitrate is defined
# bitrate "128" # do not define if quality is defined
# format "44100:16:1"
# An example of a httpd output (built-in HTTP streaming server):
#audio_output {
# type "httpd"
# name "My HTTP Stream"
# encoder "vorbis" # optional, vorbis or lame
# port "8000"
# bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
## quality "5.0" # do not define if bitrate is defined
# bitrate "128" # do not define if quality is defined
# format "44100:16:1"
# max_clients "0" # optional 0=no limit
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
audio_output {
type "pulse"
name "My Pulse Output"
server "remote_server" # optional
sink "remote_server_sink" # optional
## Example "pipe" output:
#audio_output {
# type "pipe"
# name "my pipe"
# command "aplay -f cd 2>/dev/null"
## Or if you're want to use AudioCompress
# command "AudioCompress -m | aplay -f cd 2>/dev/null"
## Or to send raw PCM stream through PCM:
# command "nc example.org 8765"
# format "44100:16:2"
## An example of a null output (for no audio output):
#audio_output {
# type "null"
# name "My Null Output"
# mixer_type "none" # optional
# This setting will change all decoded audio to be converted to the specified
# format before being passed to the audio outputs. By default, this setting is
# disabled.
#audio_output_format "44100:16:2"
# If MPD has been compiled with libsamplerate support, this setting specifies
# the sample rate converter to use. Possible values can be found in the
# mpd.conf man page or the libsamplerate documentation. By default, this is
# setting is disabled.
#samplerate_converter "Fastest Sinc Interpolator"
# Normalization automatic volume adjustments ##################################
# This setting specifies the type of ReplayGain to use. This setting can have
# the argument "off", "album" or "track". See <http://www.replaygain.org>
# for more details. This setting is off by default.
#replaygain "album"
# This setting sets the pre-amp used for files that have ReplayGain tags. By
# default this setting is disabled.
#replaygain_preamp "0"
# This setting enables on-the-fly normalization volume adjustment. This will
# result in the volume of all playing audio to be adjusted so the output has
# equal "loudness". This setting is disabled by default.
#volume_normalization "no"
# MPD Internal Buffering ######################################################
# This setting adjusts the size of internal decoded audio buffering. Changing
# this may have undesired effects. Don't change this if you don't know what you
# are doing.
#audio_buffer_size "2048"
# This setting controls the percentage of the buffer which is filled before
# beginning to play. Increasing this reduces the chance of audio file skipping,
# at the cost of increased time prior to audio playback.
#buffer_before_play "10%"
# Resource Limitations ########################################################
# These settings are various limitations to prevent MPD from using too many
# resources. Generally, these settings should be minimized to prevent security
# risks, depending on the operating resources.
#connection_timeout "60"
#max_connections "10"
#max_playlist_length "16384"
#max_command_list_size "2048"
#max_output_buffer_size "8192"
# Character Encoding ##########################################################
# If file or directory names do not display correctly for your locale then you
# may need to modify this setting.
#filesystem_charset "UTF-8"
# This setting controls the encoding that ID3v1 tags should be converted from.
#id3v1_encoding "ISO-8859-1"
# SIDPlay decoder #############################################################
# songlength_database:
# Location of your songlengths file, as distributed with the HVSC.
# The sidplay plugin checks this for matching MD5 fingerprints.
# See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
# default_songlength:
# This is the default playing time in seconds for songs not in the
# songlength database, or in case you're not using a database.
# A value of 0 means play indefinitely.
# filter:
# Turns the SID filter emulation on or off.
#decoder {
# plugin "sidplay"
# songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
# default_songlength "120"
# filter "true"
Last edited by vlad951 (2011-05-07 09:36:11)

vlad951 wrote:
Thanks, I successfully launched mpd as a user and it detected all of my music. However, if I launch mpd with the mpd.conf that I created in my home directory, it launches, but outputs the following:
[vladislav@vladislav .mpd]$ mpd ~/.mpd/mpd.conf
listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
Is this normal?
*sigh* i answer this for the 3rd time in a row... this is no error it just says that binding to your ipv6 interface happened before the binding to ipv4.
If you want to use your ipv4 interface hardcode it in mpd.conf
bind_to_address "127.0.0.1"
you can also have several binds:
bind_to_address "127.0.0.1"
bind_to_address "192.168.1.13"
to make it listen on localhost and the external IP of your network card.
If your music is on the same machine as your mpd i recommend to use a unix socket in addition.
bind_to_address "/path/to/some/file/that/does/not/exist/yet"
and make your client connect to that file instead of the IP. Speeds things up a log e.g. in ncmpcpp
and btw: you can save your mpd.conf file as ~/.mpdconf and mpd will automatically use it.
Last edited by Rasi (2011-05-07 08:41:30)

Similar Messages

  • When i connect my philips 170c monitor to my macbook pro 13" early 2011, it does not detect the second monitor?

    help! i've googled around, but none seems to solve my problem
    my macbook pro is early 2011, 13", running lion.
    the philips monitor is vga only, so i have a mini display port to vga adaptor and connecting it to the vga.
    the screen on my mbp does turn blue, but no input is detected on the external monitor.
    any advice?

    If it does not detect the display automatically, try going to system preferences>displays, click detect displays.

  • Acrobat Pro "save as" function in the file menu does not show the current directory of the file

    I have installed CC but Acrobat Pro gives me headaches.
    The "save as" function in the file menu does not show the current directory of the file but something I have worked on in the past.
    It forces me to navigates through my hard disk for this very straightforward thing in normal conditions. I precise: Acrobat is the only software reacting like that.
    I use Windows7 professional 64bits.

    I use what seems to be the latest version available on the Cloud:
    To illustrate my point, I open a directory with explorer and double-click on the only PDF in there:
    So here it is, open:
    When I do a "Save as", it takes me to a totally different place on the disk!
    Very annoying...
    Thanks for your time!
    JJ

  • Captivate 3 does not detect the micro

    Dear Users!
    I have a lot of problems, using captivate 3 on my vista
    installation. actually, the program does not detect the microphone.
    i am using this micro in other applications without any problems. i
    read this problem also exist in older versions of captivate. i am
    using realtech audio hardware. i found a patch for captivate 2 that
    does not work on captivate 3, but i found no pathch for captivate
    3.
    greetings from germany
    Rene Rose

    Hi Rene
    It should be logical to assume that any patch that corrected
    issues with version 2 would be automatically incorporated in
    Captivate 3.
    To my knowledge, your situation is one I've not seen or heard
    of in Captivate 3. So I suspect possibly a mix of hardware that we
    haven't seen before.
    I would highly suggest you report this to Adobe as a
    potential bug. Please provide them as much detail as you can. You
    do this using the Wish Form.
    Click
    here to view the WishForm/Bug Reporting Form
    Cheers... Rick

  • If you unplug the headphones ipod does not stop the music. How do I fix this?

    If you unplug the headphones ipod does not stop the music. How do I fix this? При отключении наушников ipod не останавливает музыку. Как это исправить?

    What happens if you reset the Nano? To do this, press and hold both the Sleep/Wake and Volume down buttons together long enough for the Apple logo to appear.  Start playing another track, and then pull the headphones out?  Any change?
    I am going to try this out with my 6G Nano later on to see if this functionality does indeed exist on this model. Or perhaps somebody who comes along to this thread can offer an answer.
    B-rock

  • Exporting does not export the music tracks.

    hello- i am needing help exporting my movies from Adobe Premiere Pro 2014. When i try to export a movie, it does not export the music tracks. the audio is fine, but it is not exporting the music beds. any ideas as to why would be VERY helpful! thank you!
    ==============================================
    Edited by moderator to trim the title down to the essential.

    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840

  • Applications installed in my iTouch does not launch. the music and internet functions but the installed applications does not. tried switching it on and off, still problem persists

    Applications installed in my iTouch does not launch. the music and internet functions but the installed applications does not. tried switching it on and off, still problem persists. help...

    Your only chance besides getting it serviced would be setting it up as new device:
    http://support.apple.com/kb/HT4137

  • I am trying to transfer my itunes library from my old Mac to my new Mac; however, all that transfers is the music I downloaded from itunes.  It does not transfer the music I downloaded from my cd's.

    How do I transfer my itunes library from my old Mac to my new Mac?  When I try all that transfers is what I downloaded from Itunes.  It does not transfer the music I downloaded from my cd's/.

    iTunes: How to move [or copy] your music [library] to a new computer [or another drive] - http://support.apple.com/kb/HT4527 - a somewhat bewildering and not always easily understandable set of options.
    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the iTunes Library.itl file in the moved iTunes folder.
    For the record there's this reference for iTunes 11 but it really doesn't strike me as having the specifics you need. iTunes 11 for Mac: Move your library to another computer - http://support.apple.com/kb/PH12168 
    Windows users see tip at: https://discussions.apple.com/message/18879381
    2011 Transferring your iTunes library - http://www.ilounge.com/index.php/articles/comments/moving-your-itunes-library-to -a-new-hard-drive/  - An article with good background information, particularly if you are not sure your media files are all grouped for quick  solution above. Unfortunately it uses the single term "transferring library" for two very different moves; relocating just your media (not recommended unless you really need this configuration) and relocating media+database (really your whole "library").  Make sure you understand the difference before electing to move only media.
    If you put it in the default location of Macintosh HD > Users > *User Name* > Music  then you don't even need to start with the option key held down, iTunes will automatically look for it there.  (Make sure there isn't anything already in the iTunes folder there that you want to keep since you will be replacing it with the one you are moving.)

  • [SOLVED] k3b does not detect optical drive

    Hello,
    I am running Arch Linux x86_64 with recent updates. I have k3b 2.0.3 and when I launch it I get message that it does not detect my optical drive, and I need hal daemon. I checked, udev is running, node in dev /dev/sr0 has root.optical, my user is in optical group. How do I fix this? I want to burn BluRay disk, maybe k3b even does not support it? And is there a better tool for optical discs than k3b? I use KDE 4 so Qt tool would be nice
    Last edited by adomas (2015-01-09 17:34:05)

    [EDIT] I think problem is solved. Not sure how, but after reboot it works now
    Thank you for you reply, Lone_Wolf
    Permissions seems to be ok:
    [adomas@voidbox ~]$ ls -l /dev/sr0
    brw-rw---- 1 root optical 11, 0 Jan 9 21:18 /dev/sr0
    [adomas@voidbox ~]$
    And about dependencies I think I have what I need:
    [root@voidbox adomas]# pacman -Qi k3b
    Name : k3b
    Version : 1:2.0.3a-1
    Description : Feature-rich and easy to handle CD burning application
    Architecture : x86_64
    URL : http://sourceforge.net/projects/k3b/
    Licenses : GPL
    Groups : None
    Provides : None
    Depends On : kdebase-runtime libkcddb libsamplerate libmad ffmpeg taglib libmpcdec libdvdread cdrkit
    libxft
    Optional Deps : dvd+rw-tools: for dvd burning support [installed]
    vcdimager: for vcd burning support
    transcode: for advanced mpeg conversion support
    emovix: for bootable multimedia cd/dvd support
    cdrdao: for disk-at-once (DAO) mode support [installed]
    cdparanoia: for cd ripping support
    Required By : None
    Optional For : None
    Conflicts With : None
    Replaces : None
    Installed Size : 33.81 MiB
    Packager : Eric Belanger <[email protected]>
    Build Date : Thu 06 Nov 2014 05:21:31 AM EET
    Install Date : Wed 07 Jan 2015 07:28:57 PM EET
    Install Reason : Explicitly installed
    Install Script : Yes
    Validated By : Signature
    [root@voidbox adomas]#
    What else can be a problem? By the way may optical drive is external, connected via USB, if it makes any difference.
    Last edited by adomas (2015-01-09 17:33:50)

  • Laptop does not detect the new HDD

    Good afternoon ladies and gentlemen Gameday! I need help.
    On my laptop broke down the hard drive. According to reports, a lot of bad sectors, SMART. Decided to put a new HDD. Laptop does not see the new hard drive. In the BOOT MENU new hard drive is not detected.
    Old hard drive while still runs in the BOOT menu displays all 3 sections. On the new disk interface is similar to the interface connection on the old disk.
    laptop model: 15-e 051 sr.
    OS: Win 8
    manufacturer of the old hard drive : Hitachi
    new hard drive: seagate.
    New hard drive on another system checked for operability.
    Also, the laptop refused to work with other hard drives: Samsung, Hitachi.
    I am sorry for your Books English. For transfers using Google translator.
    I look forward to qualified support, despite the language barrier.
    Sincerely Sqwosh.

    Hi @sqwosh ,
    Thank you for your query, I will do my utmost to assist you.
    First I would like to let you know that the broken English is not a problem.  I understand that Google translation can be a a little rough in the translations.  We  will work together and I am  sure we will do fine!
    I grasp that you are trying to replace the hard drive but it is not being recognized in the bios.
    Here is a link to the HP Pavilion 15 Notebook PC Maintenance and Service Guide. please note page 57 for a list of supported hard drives.  It will also provide information on removal and replacement of the hard drive.
    You could also try this.
    Once you have the hard installed and connected and you are at the bios screen, you will notice an option to restore defaults along the bottom. ( I believe it is F5) .  This will cause it to scan for the hardware and hopefully find your new hard drive.
    Please do not hesitate to respond if you require further assistance and good luck!
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • HT4157 My ipad suddenly does not detect the cellular settings.

    I inserted a new micro sim and it does not detect and gives "no service"

    Hi misteroyster,
    Thanks for visiting Apple Support Communities.
    If you see a message that says "No SIM" or "Invalid SIM" on your iPad Air, I recommend the troubleshooting steps in the article below. It refers to the iPhone, but the steps apply to the iPad as well.
    iPhone: Troubleshooting No SIM
    http://support.apple.com/kb/ts4148
    Best Regards,
    Jeremy

  • Music player not detecteing the music files for No...

    I have music files in the memory card(san disk) which is inserted into nokia 6300.But the music player is not detecting any music files in the library stating no music files found.For music i should go to gallery and listen.Please let me know how can i make music player detect the music files in my mem card?.
    Regards,
    Divya

    Do this :
    Go to Media>Music Player>Options>Music Library>Update Library and wait for the action to be finished.
    I assume that you can now play your music files in the music player.
    Enjoy

  • I have downloaded the latest version of itunes to my computer and when I sync my new iphone, it says it is syncing, but does not grab the music from my current library.

    I have downloaded the latest version of itunes to my computer and when I sync my new iphone, it says it is syncing but doe not pull the music in my library. Can anyone assist me in figuring out how to sync my iphone?  The computer that has my current music library is old so I want to get it synced before it dies...

    Download what applications?
    Apps in iTunes do not run on computers.
    What is the exact error and where specifically is it occurring?

  • Itunes does not recognize the music from my External HD's music folder

    I recently installed itunes onto my new IBM thinkpad. I have tried unsuccessfully to get my iTunes play list to reference the music collection that is located on my external HD (the songs are all AAC formated). I have set the "itunes music folder location" in the Preferences-Advanced settings to the music folder that is located on my external HD; however, for some reason itunes is not pulling the music from the external HD into it's play list....
    I have read other post that suggest that you use the "Consolidate Library" function in the Advanced menu to pull the music from the external HD, but I am afraid that this will simply copy the files from my external drive to the "itunes" folder that installed by itunes on my laptop's C drive. My goal is to keep my laptop's internal hard drive completely free of any music files. Is there some kind of "feed" function that needs to be run to get itunes to communicate with the exteral drive? I really want to avoid moving any of the songs onto my C drive.
    Any advice you may have would be greatly appreciated.

    Yeah, you can try signing up for DropBox - it's a free service that allows you to sync any files between your iPhone and your computer.  More info here:  http://www.dropbox.com/about

  • Playing files not in the music directory with mpd

    Can mpd play files that are not in it's music directory?
    if so How?

    um - i think that defeats the point of the daemon?  i think it assumes you have all your music in one place - which i guess most people do - playing one song at random is not really it's game as far as i know

Maybe you are looking for