[SOLVED] mpd: Failed to stat /var/lib/mpd/music: Permission denied

I've set up mpd according to the wiki.
/etc/mpd.conf:
music_directory "/var/lib/mpd/music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/mpd.db"
log_file "/var/log/mpd/mpd.log"
pid_file "/run/mpd/mpd.pid
state_file "/var/lib/mpd/mpdstate"
user "mpd"
audio_output {
type "pulse"
name "My Pulse Output"
# server "remote_server" # optional
# sink "remote_server_sink" # optional
/var/lib/mpd/music is a symlink to /home/dennis/Musik/mpd/. I've given the mpd user recursive ownership to both /var/lib/mpd/ and /home/dennis/Musik/mpd/.
When I try to update the database (I've tried both mpc and Sonata), the log says
Failed to stat /var/lib/mpd/music: Permission denied
What permission am I missing?
SOLUTION:
I used the script config instead and it worked flawlessly.
Last edited by snufkin (2013-01-03 00:18:44)

I returned this:
ene 17 21:00:55 ddich systemd[1]: Starting Music Player Daemon...
ene 17 21:00:55 ddich systemd[1]: Started Music Player Daemon.
ene 17 21:00:55 ddich mpd[14061]: output: No 'audio_output' defined in config file
ene 17 21:00:55 ddich mpd[14061]: output: Attempt to detect audio output device
ene 17 21:00:55 ddich mpd[14061]: output: Attempting to detect a alsa audio device
ene 17 21:00:55 ddich mpd[14061]: ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ene 17 21:00:55 ddich mpd[14061]: ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_dri...ctory
ene 17 21:00:55 ddich mpd[14061]: ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ene 17 21:00:55 ddich mpd[14061]: ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat r...ctory
ene 17 21:00:55 ddich mpd[14061]: ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ene 17 21:00:55 ddich mpd[14061]: ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer re...ctory
ene 17 21:00:55 ddich mpd[14061]: ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file ...ctory
ene 17 21:00:55 ddich mpd[14061]: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
ene 17 21:00:55 ddich systemd[1]: mpd.service: main process exited, code=killed, status=6/ABRT
ene 17 21:00:55 ddich systemd[1]: Unit mpd.service entered failed state.

Similar Messages

  • [solved] bigpkg doesn't like /var/lib/pacman/local/ALPM_DB_VERSION

    I can't use bigpkg anymore, because it expects everything in /var/lib/pacman/local/ to be a directory:
    https://aur.archlinux.org/packages/bigpkg/ -> http://allanmcrae.com/scripts/bigpkg
    Here are the important lines:
    LOCAL_DB_PATH="/var/lib/pacman/local"
    file = LOCAL_DB_PATH + "/" + dir + "/desc"
    f = open(file, "r")
    After running 'pacman-db-upgrade', /var/lib/pacman/local/ALPM_DB_VERSION was placed there
    $ pacman -Qo /var/lib/pacman/local/ALPM_DB_VERSION
    error: No package owns /var/lib/pacman/local/ALPM_DB_VERSION
    $ cat /var/lib/pacman/local/ALPM_DB_VERSION
    9
    $ bigpkg
    Traceback (most recent call last):
    File "/usr/bin/bigpkg", line 83, in <module>
    parse_package_info(pkg, dir)
    File "/usr/bin/bigpkg", line 51, in parse_package_info
    f = open(file, "r")
    NotADirectoryError: [Errno 20] Not a directory: '/var/lib/pacman/local/ALPM_DB_VERSION/desc'
    I can remove that file and make bigpkg work again, but it breaks pacman:
    error: failed to initialize alpm library
    (database is incorrect version: /var/lib/pacman/)
    error: try running pacman-db-upgrade
    Is it a bug? If not, can someone please fix bigpkg? I don't speak python, so I can't do it myself :-(
    Last edited by karol (2015-01-16 18:50:59)

    progandy wrote:
    I believe you can use bigpkg if you patch it like this:
    for dir in os.listdir(LOCAL_DB_PATH):
    try:
    pkg = dir[0:dir.rindex("-",0,dir.rindex("-"))]
    pkg_list.append(pkg)
    parse_package_info(pkg, dir)
    except ValueError:
    pass
    Can you post a diff? I have no idea where to put it.
    bigpkg complains
    $ /usr/bin/bigpkg_patched
    Traceback (most recent call last):
    File "/usr/bin/bigpkg_patched", line 53, in <module>
    pkg_list.append(pkg)
    NameError: name 'pkg_list' is not defined
    if I try to use the part you posted before the line that says
    pkg_list = []
    but I still have problems with
    file = LOCAL_DB_PATH + "/" + dir + "/desc"
    f = open(file, "r")

  • [solved] Having Tons of Trouble Setting up MPD

    This is the second time I have tried setting up MPD, and I am having a circle of issues. If I fix one, I get another. And now I hit a wall.
    I'm following the per-user configuration method from the wiki, and for now, I just set up the "required" variables in the config file (located in /home/(my_user)/.config/mpd/mpd.conf) which are the database and log files (and also pid).
    Now, after getting that set up, and running
    mpd
    , I get this error:
    socket: Failed to bind to '[::1]:6600': Address already in use
    I have tried changing the network IP to 127.0.01, to 0.0.0.0, to localhost... I have tried uncommenting "user" and changing it to myself, I have tried adding the optional variables (music directory, pid, etc.) and nothing works.
    If I run
    mpd --kill
    I get
    fatal_error: unable to read the pid from file "/home/cyber/.config/mpd/pid"
    And yes, I checked to make sure that the pid file is set up correctly.
    Here is my mpd.conf file, again located in .../.conf/mpd/...:
    # An example configuration file for MPD.
    # Read the user manual for documentation: http://www.musicpd.org/doc/user/
    # 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 "~/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 "~/.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 "/home/cyber/.config/mpd/database"
    # 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 "/home/cyber/.config/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 "/home/cyber/.config/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 "~/.mpd/state"
    # 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 "cyber"
    # 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 "localhost"
    # 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"
    # Setting "restore_paused" to "yes" puts MPD into pause mode instead
    # of starting playback after startup.
    #restore_paused "no"
    # 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. The complete list of possible values can be
    # found in the mpd.conf man page.
    #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"
    # Database #######################################################################
    #database {
    # plugin "proxy"
    # host "other.mpd.host"
    # port "6600"
    # 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.
    # An example of an ALSA output:
    audio_output {
    type "alsa"
    name "My Sound Card"
    ## device "hw:0,0" # optional
    mixer_type "software" # 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
    ## 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
    ## url "http://example.com" # 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
    # An example of a winmm output (Windows multimedia API).
    #audio_output {
    # type "winmm"
    # name "My WinMM output"
    ## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
    # or
    ## device "0" # optional
    ## mixer_type "hardware" # optional
    # An example of an openal output.
    #audio_output {
    # type "openal"
    # name "My OpenAL output"
    ## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # 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
    # 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", "track" or "auto". "auto" is a special mode that
    # chooses between "track" and "album" depending on the current state of
    # random playback. If random playback is enabled then "track" mode is used.
    # See <http://www.replaygain.org> for more details about ReplayGain.
    # 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 sets the pre-amp used for files that do NOT have ReplayGain tags.
    # By default this setting is disabled.
    #replaygain_missing_preamp "0"
    # This setting enables or disables ReplayGain limiting.
    # MPD calculates actual amplification based on the ReplayGain tags
    # and replaygain_preamp / replaygain_missing_preamp setting.
    # If replaygain_limit is enabled MPD will never amplify audio signal
    # above its original level. If replaygain_limit is disabled such amplification
    # might occur. By default this setting is enabled.
    #replaygain_limit "yes"
    # 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"
    # 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"
    I have no idea what to do.
    I am searching the Internet like mad to try and find a solution, because I really, really want to use MPD and not go back to MOC, but I figured a post would speed up the process.
    Last edited by mindcrime (2014-11-17 02:29:24)

    nixpunk wrote:
    I'm not an MPD expert, but did you verify that the error isn't indeed valid?  You can check what is going on at port 6600 with (run as root):
    # lsof -i :6600
    I had to install lsof, but there was no output at all. Nothing.
    I assume that's good?
    Edit:
    However............. After installing lsof and running the command you gave me, I ran mpd just for kicks and... it worked. (Of course, it spit out an "error" since I have no music directory defined yet) but it worked. Let me add some music and start up ncmpcpp and see if it works!
    Edit2: AND, it's suddenly working!
    All I did: install lsof, run your command, try running mpd for fun, installed ncmpcpp, and it works perfectly.
    Thanks.
    *solved!* That was silly.
    Last edited by mindcrime (2014-11-17 02:29:02)

  • Mpd - Failed to open mixer for 'My ALSA Device': no such mixer control

    this message is always on start mpd in mpd.log ... after several hours playing mpd crashes (sound is scratching, after stop/pausing or next/previous track is sound again ok)
    I have Xonar D1 music card
    my mpd.conf
    # 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 "/mnt/hc/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 "/home/hc/.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 "/home/hc/.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 "/home/hc/.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 "/home/hc/.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 "/home/hc/.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 "hc"
    # 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 "audio"
    # 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 "localhost"
    # 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 "yes"
    # 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 xhc (2012-05-27 04:47:19)

    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Which correspondents fine with the
    device "hw:0,3"
    in my mpd.conf alsa section.
    Also sound worked fine withh this config before I started installing ffmpeg-svn and alikes
    hokasch:
    I tried changing the mixer to "Master" but that did not change much.

  • My mpd fail to start

    can you guys help me?
    No full size images. Read forum rules  -- Inxsible
    my /etc/mpd.conf
    # 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 "~/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 "~/.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 "~/.mpd/database"
    # 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 "~/.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 "~/.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 "~/.mpd/state"
    # 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 "nobody"
    # 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"
    music_directory "/home/jcrown/Musics"
    playlist_directory "/var/lib/mpd/playlists"
    db_file "/var/lib/mpd/mpd.db"
    log_file "/var/log/mpd/mpd.log"
    pid_file "/run/mpd/mpd.pid"
    state_file "/var/lib/mpd/mpdstate"
    user "mpd"
    # bind_to_address "127.0.0.1"
    # port "6600"
    I follow the instructions in wiki https://wiki.archlinux.org/index.php/Mu … ired_files
    # mkdir /var/lib/mpd/music
    # echo "/home/$USER/music /var/lib/mpd/music none bind" >> /etc/fstab
    # mount -a
    # rc.d restart mpd     ------------------------------> I'm stuck here :\
    Last edited by hazeldf (2012-06-10 02:37:22)

    Welcome to the forums:
    For starters:
    1) Don't post full size images.
    2) Edit your post title to make sense. Exclamatory [HELP] in caps doesn't make your problem any more or less important.
    3) Read the Forum Etiquette on the wiki on how to post.

  • [solved] pacman 4 breaks if there's no /var/lib/pacman/sync/foo.db

    Allan had problems with his webhost: http://identi.ca/notice/87871795 After I have added
    [allanbrokeit]
    Server = http://allanmcrae.com/$repo/$arch
    to my pacman.conf, I couldn't use update and install packages anymore:
    [karol@black ~]$ pacman -Syu
    warning: database file for 'allanbrokeit' does not exist
    :: Synchronizing package databases...
    testing is up to date
    community-testing is up to date
    core is up to date
    extra is up to date
    community is up to date
    error: failed retrieving file 'allanbrokeit.db' from allanmcrae.com : The requested URL returned error: 404
    error: failed to update allanbrokeit (download library error)
    :: Starting full system upgrade...
    error: failed to prepare transaction (could not find database)
    [karol@black ~]$ pacman -S hdparm
    warning: database file for 'allanbrokeit' does not exist
    error: failed to prepare transaction (could not find database)
    hdparm is in [core]. pacman 3.5.4-4 throws a bunch of errors
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    error: could not open file /var/lib/pacman/sync/allanbrokeit.db: Failed to open '/var/lib/pacman/sync/allanbrokeit.db'
    but works and allows me to update and install stuff.
    Is it a feature of pacman 4?
    Allan's repo seems to be already back online, so you have to test it with some nonexistent repo & db.
    Last edited by karol (2012-01-07 22:48:29)

    Dan responded to my e-mail:
    Dan McGee wrote:
    Yes, this was mostly an intended change.
    Note that you can do an -R operation (or anything not requiring sync databases) just fine. However, once we hit any machinery that requires sync databases to be present, we require all configured ones are accounted for. This is for a few reasons:
    1) dependency resolving if you have 1 out-of-date database and 4 up-to-date ones, things can get ugly or messed up.
    2) integrity- if you insist on a database being signed, we'd rather not proceed with nothing.
    3) replay attacks- what you don't fully see in the above situation is we also validate the signature on the database at load time; if that were to fail we'd also bail out. This is so pacman is capable of verifying the expiration time on a database signature; it makes sense to only allow database signatures to be valid for a week at a time so people know they have out-of-date repo metadata.
    Closing.

  • [SOLVED] MPD: Failed to create socket

    I've  been attempting to get MPD working today and I'm rather stumped here. I got it to start out of its default directory, however, that denied it access to my music folder. So, I switched all of that to a ~/.mpd folder as the wiki page instructed me (https://wiki.archlinux.org/index.php/Mu … _as_a_User), and for purposes of keeping organized.
    Now, however, I'm getting this error whenever I run "mpd ~/.mpd/mpd.conf"
    Failed to bind to '[::]:6600': Failed to create socket: Address family not supported by protocol
    I remember that happening before, and it had to do with user permissions and so on. I think I set "user" to "mpd" that time. "User" is now set to my user, where the .mpd folder is located. Is there a way to allow mpd to continue?
    EDIT: My mpd.conf is:
    playlist_directory "~/.mpd/playlists"
    db_file "~/.mpd/mpd.db"
    log_file "~/.mpd/mpd.log"
    pid_file "~/.mpd/mpd.pid"
    state_file "~/.mpd/mpdstate"
    user "spencer"
    mixer_type "software"
    audio_output {
    type "alsa"
    name "Sound Card"
    bind_to_address "any"
    Last edited by DrKillPatient (2011-08-05 02:38:35)

    DrKillPatient wrote:
    That worked, thanks. At first it gave "failed to open database" but in subsequent startups it's not doing that-- I suppose it created the file at the first time. audio_output's not defined, I suppose that's up to me to set it? It's autodetected at this point and seems to work fine. Should I leave it that way?
    And out of curiosity, what was changed to fix my error?
    First of all: thanks for testing. my setup creates 2 static hosts, instead of letting mpd autodetect it. sometimes ipv6 detection is prefered and this *can* lead to stuff not working properly.
    Also i use absolute paths, to make sure everything works.
    mpds audio output detection works decently, you can of course enable one in ~/.mpdconf to get rid of the warning.
    Also you had one obvious error: you followed mpds wiki entry to start mpd as user. but you defined a user in mpd.conf. this will not work, since mpd can only drop previlegs to that user, when run as root.
    Oh, please mark this thread as solved.
    Last edited by Rasi (2011-08-05 01:26:43)

  • [SOLVED: MAJOR PEBCAK] Mpd fails to stream (mp3) to icecast

    EDIT: Wow, that's possibly the most embarassing FAIL I've ever been involved in. In the unlikely event anyone else ever fails as hard though, I will post my solution. I copied over the mpd.conf.example again and re-did it to my needs without screwing with removing all sorts of commented stuff, and came to find it still wasn't working (even after updating mpd). Considering everyone else's stuff seemed to Just Work (TM), I started thinking something seriously stupid must be wrong. Previously, I was using exaile, which apparently didn't stream at my volume, it streamed at a constant (and would keep playing the wrong file even if I switched songs, etc). In order to test if my stream was working on exaile, I lowered the volume on Exaile and played the stream in, for example, Amarok. .... do you see where this is going? That's right.. to test mpd, I lowered the volume to muted levels locally and listened in to the stream on amarok. ..mpd was sending a muted stream. >_<.. turned up the volume a little, played the stream, and to my frustration and surprise the stream was playing off-sync so I could hear it. The last times I tried to do this, I must have clicked into the stream JUST in time to hear mpd go to mute. Which explains why I would occasionally hear second-long or so bits of audio which I thought were some kind of local buffer output amarok was picking up somewhere. I'm not sure why it never clicked until I started raking my brain for the dumbest possible solutions. -_-
    Sigh.
    *MASSIVE HEADDESK*
    Well, it works now. Hooray, anyway.
    Original post:
    I'm beat.. I can't seem to make mpd stream any of my mp3s (or for that matter ogg's, but I only tested 1, which i converted) to my icecast server. Exaile+icast-plugin successfully streams to the server with identical settings afaict, and plays as expected. However, mpd seems to send the song information and an *empty stream*. Zero sound. Mpd on my end otherwise works fine, but the stream fails. I've tried every bloody option I can think of..
    Any ideas? Did I do something dumb somewhere?..
    No errors in the logs i can see.. current ver of mpd, nor the *.14.* old version, nor git version seem to work.
    Edit: Well.. in the icecast error log, I see a bunch of
    [ WARN stats/stats_event_conv No charset found for "ISO8859-1" ]
    errors.. however, that locale already exists on the system. running locale-gen didn't change anything.. and I doubt the relevance.. but I might as well mention it. EDIT2: to be sure, i ran locale -a on the server.. sure enough, it returns en_US, en_US.iso88591, en_US.utf8 plus other stuff. Same goes for local machine..
    login/user information edited out accordingly..
    /etc/mpd.conf on my machine..
    music_directory "/home/myUser/myFolder/Music"
    playlist_directory "/home/myUser/.config/mpd/playlists"
    db_file "/home/myUser/.config/mpd/mpd.db"
    log_file "/home/myUser/.config/mpd/mpd.log"
    pid_file "/home/myUser/.config/mpd/mpd.pid"
    state_file "/home/myUser/.config/mpd/mpdstate"
    user "mpd"
    input {
    plugin "curl"
    audio_output {
    type "alsa"
    name "myAlsa"
    device "hw:0,0" # optional
    format "44100:24:2" # optional
    audio_output {
    type "shout"
    encoding "mp3" # optional
    name "Icecast"
    host "myIP"
    port "8000"
    mount "/mpd"
    password "myPassword"
    bitrate "128"
    format "44100:16:1" # tweaked the crap out of this to no avail
    protocol "icecast2" # optional
    user "source" # optional
    description "Icecast" # optional
    genre "myGenre" # optional
    public "no" # optional
    timeout "10" # optional
    mixer_type "software"
    filesystem_charset "UTF-8"
    /etc/icecast.xml on the server machine..
    <icecast>
    <limits>
    <clients>100</clients>
    <sources>1</sources>
    <threadpool>5</threadpool>
    <queue-size>524288</queue-size>
    <client-timeout>30</client-timeout>
    <header-timeout>15</header-timeout>
    <source-timeout>10</source-timeout>
    <burst-on-connect>1</burst-on-connect>
    <burst-size>65535</burst-size>
    </limits>
    <authentication>
    <source-password>myPassword</source-password>
    <relay-password>myPassword</relay-password>
    <admin-user>myAdmin</admin-user>
    <admin-password>myPassword</admin-password>
    </authentication>
    <hostname>myIP</hostname>
    <listen-socket>
    <port>8000</port>
    </listen-socket>
    <listen-socket>
    <port>8001</port>
    </listen-socket>
    <fileserve>1</fileserve>
    <paths>
    <basedir>/usr/share/icecast</basedir>
    <logdir>/log</logdir>
    <webroot>/web</webroot>
    <adminroot>/admin</adminroot>
    <alias source="/" dest="/status.xsl"/>
    </paths>
    <logging>
    <accesslog>access.log</accesslog>
    <errorlog>error.log</errorlog>
    <loglevel>2</loglevel>
    <logsize>10000</logsize>
    </logging>
    <security>
    <chroot>1</chroot>
    <changeowner>
    <user>myUser</user>
    <group>users</group>
    </changeowner>
    </security>
    </icecast>
    Last edited by FrozenFox (2009-09-01 08:40:26)

    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Which correspondents fine with the
    device "hw:0,3"
    in my mpd.conf alsa section.
    Also sound worked fine withh this config before I started installing ffmpeg-svn and alikes
    hokasch:
    I tried changing the mixer to "Master" but that did not change much.

  • [SOLVED] Deleted /var/lib/transmission. How do I get it back?

    I was messing around with transmission-daemon, and I tried reinstalling it to solve a different, previous issue. When I deleted the package "transmission-cli" with Pacman, I noticed that there is still a directory "transmission" in /var/lib. Thinking this is just some leftover stupid thing that holds the daemon's config files and other things, I deleted the directory.
    I installed transmission-cli again, but the directory won't reappear and I can't start the transmission-daemon.
    Do you know of a way to regenerate the /var/lib/transmission directory?
    Last edited by tkdncty2 (2013-12-24 01:40:15)

    I believe that karol is referring to this note:
    Note: The above is not created until the daemon is run initially.
    Which suggests that the directory will be recreated when the daemon is run as well.
    If this is not the case, try creating the directory manually. Here's the permissions on mine for reference:
    $ ls -ld /var/lib/transmission
    drwx------ 1 transmission transmission 98 Aug 21 2012 /var/lib/transmission

  • Create Package from /var/lib/pacman/local[SOLVED]

    I am trying to get an old version of google earth bcz the 5.2 in aur doesn't start for me.  I have it installed on another system but there is not package in /var/cache/pacman/pkg.  Is it possible for me to create a package based on the info written by pacman in /var/lib/pacman/loca/google-earth-x.xx.?
    Last edited by empthollow (2010-07-19 04:02:19)

    You need a PKGBUILD.
    Edit:
    Who would have thought that AUR packages write to /var/lib/pacman/local ? ;P
    I stand corrected: you don't necessarily need a PKGBUILD, you can use bacman.
    you can download the previous Google Earth binary from this link
    http://dl.google.com/earth/client/advan … hLinux.bin
    Last edited by karol (2010-07-19 03:59:29)

  • [Solved] /var/lib/pacman wrap defined in /etc/fstab

    How come is it that the ext2 wrap of /var/lib/pacman won't work?
    See here:
    1.
    /var/lib/pacman.db /var/lib/pacman ext2 loop,defaults 0 0
    [det@myhost ~]$ sudo mount -a
    mount: wrong fs type, bad option, bad superblock on /dev/loop1,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    [det@myhost ~]$
    2.
    #/var/lib/pacman.db /var/lib/pacman ext2 loop,defaults 0 0
    [det@myhost ~]$ sudo mount -a
    [det@myhost ~]$
    E: dmesg | tail:
    [det@myhost ~]$ dmesg | tail
    VFS: Can't find an ext2 filesystem on dev loop1.
    [det@myhost ~]$
    Last edited by algorythm (2009-09-30 12:35:04)

    Uh.. actually running the pacman cage shell script fixed this.. ^^
    D'oh my brains had probably gone to school.
    Last edited by algorythm (2009-09-18 21:57:48)

  • Files in /var/lib/pacman/local newer than in extra? [solved]

    Earlier today tried pacman -Syu and got the following message:
    bash-3.00# pacman -Syu
    :: Synchronizing package databases...
    :: testing is up to date
    :: current is up to date
    :: extra is up to date
    :: unstable is up to date
    :: community is up to date
    :: a52dec: local (0.7.4-3) appears to be newer than repo (extra/0.7.4-2)
    :: arts: local (1.4.2-4) appears to be newer than repo (extra/1.4.1-1)
    :: dbus: local (0.50-2) appears to be newer than repo (extra/0.34-1)
    :: eject: local (2.1.2-2) appears to be newer than repo (extra/2.0.13-1)
    :: faac: local (1.24-2) appears to be newer than repo (extra/1.24-1)
    :: ffmpeg: local (20050806-1) appears to be newer than repo (extra/0.4.9.pre1-1)
    :: gnokii: local (0.6.7-2) appears to be newer than repo (extra/0.6.7-1)
    :: gpgme: local (1.0.3-2) appears to be newer than repo (extra/1.0.3-1)
    :: gst-plugins: local (0.8.11-1) appears to be newer than repo (extra/0.8.10-1)
    :: gstreamer: local (0.8.11-1) appears to be newer than repo (extra/0.8.10-1)
    :: gwenview: local (1.3.0-2) appears to be newer than repo (extra/1.2.0-1)
    :: hal: local (0.5.4-1) appears to be newer than repo (extra/0.5.3-1)
    :: jack-audio-connection-kit: local (0.100.0-3) appears to be newer than repo (extra/0.100.0-1)
    :: jasper: local (1.701.0-3) appears to be newer than repo (extra/1.701.0-2)
    :: k3b: local (0.12.4a-1) appears to be newer than repo (extra/0.12.2-1)
    :: kde-common: local (3.4.2-6) appears to be newer than repo (extra/3.4.1-1)
    :: kdeaccessibility: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdeaddons: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-1)
    :: kdeadmin: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdeartwork: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdebase: local (3.4.2-5) appears to be newer than repo (extra/3.4.1-4)
    :: kdebindings: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdeedu: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-1)
    :: kdegames: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdegraphics: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-1)
    :: kdelibs: local (3.4.2-5) appears to be newer than repo (extra/3.4.1-2)
    :: kdemultimedia: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-1)
    :: kdenetwork: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-2)
    :: kdepim: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-1)
    :: kdesdk: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdetoys: local (3.4.2-3) appears to be newer than repo (extra/3.4.1-1)
    :: kdeutils: local (3.4.2-4) appears to be newer than repo (extra/3.4.1-1)
    :: libgphoto2: local (2.1.6-2) appears to be newer than repo (extra/2.1.6-1)
    :: libidn: local (0.5.17-2) appears to be newer than repo (extra/0.5.17-1)
    :: libieee1284: local (0.2.10-2) appears to be newer than repo (extra/0.2.10-1)
    :: libmal: local (0.40-2) appears to be newer than repo (extra/0.40-1)
    :: libmpcdec: local (1.2-2) appears to be newer than repo (extra/1.2-1)
    :: libraw1394: local (1.1.0-2) appears to be newer than repo (extra/1.1.0-1)
    :: libsamplerate: local (0.1.2-2) appears to be newer than repo (extra/0.1.2-1)
    :: musicbrainz: local (2.1.1-3) appears to be newer than repo (extra/2.1.1-2)
    :: net-snmp: local (5.2.1-3) appears to be newer than repo (extra/5.2.1-2)
    :: openexr: local (1.2.2-4) appears to be newer than repo (extra/1.2.2-1)
    :: openslp: local (1.2.0-2) appears to be newer than repo (extra/1.2.0-1)
    :: pilot-link: local (0.11.8-4) appears to be newer than repo (extra/0.11.8-3)
    :: pth: local (2.0.3-2) appears to be newer than repo (extra/2.0.3-1)
    :: qscintilla: local (1.6-1) appears to be newer than repo (extra/1.5.1-1)
    :: qt: local (3.3.5-1) appears to be newer than repo (extra/3.3.4-8)
    :: sane: local (1.0.16-2) appears to be newer than repo (extra/1.0.15-5)
    :: speex: local (1.1.10-3) appears to be newer than repo (extra/1.1.10-1)
    :: t1lib: local (5.1.0-1) appears to be newer than repo (extra/5.0.2-1)
    :: taglib: local (1.4-2) appears to be newer than repo (extra/1.3.1-2)
    :: tunepimp: local (0.3.0-5) appears to be newer than repo (extra/0.3.0-4)
    :: Above packages will be skipped.  To manually upgrade use 'pacman -S <pkg>'
    How did this happen and what can I do to fix it. I mean, obviously all the files shown in local were downloaded using pacman, so how can the local version be greater than the individual versions found in current, extra, testing, unstable or community?!!
    Thanks,
    Gary :x
    Figured this out. Apparently the first mirror listed in the /etc/pacman.d extra file is out of sync. Commented out the first two. Ftp.arch is working fine. Updated the extra db and found two apps needed updating. No more errors, since the /var/lib/pacman/extra directory was completely updated. Will try the original mirror in a few days. 

    Yep, loads of files were updated earlier today, so the mirrors were mostly out of sync for a while.  Look here for more info:
    http://bbs.archlinux.org/viewtopic.php?t=15505

  • [SOLVED] Mysql doesn't start, Can't change dir to '/var/lib/mysql/'

    My mysql install was working fine but now it doesn't start
    $ mysqld --verbose
    121202 22:41:34 [Warning] Can't create test file /var/lib/mysql/home.lower-test
    121202 22:41:34 [Warning] Can't create test file /var/lib/mysql/home.lower-test
    mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13)
    121202 22:41:34 [ERROR] Aborting
    121202 22:41:34 [Note] mysqld: Shutdown complete
    I checked using mysql_safe & it seems to be a permission issue
    $ mysqld_safe --user=mysql
    121202 22:45:34 mysqld_safe Logging to '/var/lib/mysql/home.err'.
    121202 22:45:35 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
    /usr/bin/mysqld_safe: line 107: /var/lib/mysql/home.err: Permission denied
    rm: cannot remove ‘/var/run/mysqld/mysqld.sock’: Permission denied
    rm: cannot remove ‘/var/lib/mysql/home.pid’: Permission denied
    /usr/bin/mysqld_safe: line 144: /var/lib/mysql/home.err: Permission denied
    121202 22:45:35 mysqld_safe mysqld from pid file /var/lib/mysql/home.pid ended
    /usr/bin/mysqld_safe: line 107: /var/lib/mysql/home.err: Permission denied
    But the thing is /var/lib/mysql is already owned by mysql,
    $ ls -la /var/lib/ | grep mysql
    drwxrw-r-- 19 mysql root 4.0K Dec 2 22:29 mysql
    $ ls -la /var/ | grep lib
    drwxr-xr-x 29 root root 4.0K Nov 28 19:59 lib
    $ ls -la / | grep var
    drwxr-xr-x 13 root root 4.0K Nov 28 19:58 var
    so anyone tell me what permissions I have gotten wrong & how can I get mysql to work again?
    Last edited by cool (2012-12-02 18:26:18)

    1. You have to start mysqld as root using either sudo or from your root account
    2. The safest way to start mysql is using the unit file (systemd) or service file (rc.d) -- e.g. 'sudo systemctl mysqld start'
    3. My /var/lib/mysql directory has the following permissions 700 and owner/group is mysql/mysql. With those permissions, you're not going to be able to view the contents of the directory unless you are root or that user.
    Scott

  • [SOLVED] pacman error: could not open file /var/lib ...

    the actual error is
    error: could not open file /var/lib/pacman/sync/community/fonteditfs-1.2-2/desc: No such file or directory
    removing that folder fixed it. i dont know if it was a coding mistake or just my box did something stupid today :S
    any thoughts?
    Last edited by eldragon (2010-04-20 17:25:18)

    geniuz wrote:
    I don't know if this error occured during an update of right after you've invoked pacman, but in any way synchronizing pacman I think should fix the issue. This is something you might have tried before deleting the file, but then again I don't know when the error occured. If it occured immediately deleting the file would probably be the easiest solution. I would've done the same.
    If you've synchronized pacman after you've removed the file all should be well now, maybe something indeed went wrong during an update (maybe your mirror went down or something, you never know).
    yes, the error apperared right after syncing the databases. the update went as expected...

  • [Solved] error could not open file /var/lib/pacman/sync/core.db

    I am trying to install Arch but when I type "pacstrap /mnt base base-devel"  I keep on getting this error "error could not open file /var/lib/pacman/sync/core.db unrecognized archive format".
    I have tried:
    # rm -R /var/lib/pacman/sync/
    # pacman -Syuf
    I have also tried pacman -Syy with no luck.
    What more is there to do besides installing ubuntu?
    Last edited by johane (2012-08-11 08:22:07)

    johane wrote:
    I am trying to install Arch but when I type "pacstrap /mnt base base-devel"  I keep on getting this error "error could not open file /var/lib/pacman/sync/core.db unrecognized archive format".
    I have tried:
    # rm -R /var/lib/pacman/sync/
    Pacstrap was telling you it couldn't open a file, so you just deleted the entire directory tree? Did it appear to be downloading the database files correctly before this? Did you try running pacstrap again after you deleted everything?
    And then you tried to run pacman with the -f (force) option? What happened? "no luck" doesn't tell us anything.
    What more is there to do besides installing ubuntu?
    There are many things you can do. You can give us more information about what you did and what happened. Did you follow all the steps in the Beginners Guide up to the pacstrap step? Did you get any errors or warnings before that step? Are you sure you had a working network connection? Did you interrupt the pacstrap process at any time? Did you try running it again after you deleted /var/lib/pacman/sync?
    Did you check the sha1sum of the iso you downloaded before you put it on a usb stick?
    https://wiki.archlinux.org/index.php/Be … oaded_file
    How did you put it on the usb stick?
    When you got the error, did you do
    ls /var/lib/pacman/sync
    to see what (if anything) was there?
    Last edited by 2ManyDogs (2012-08-06 23:38:27)

Maybe you are looking for

  • PROBLEM TRANSFERRING VIDEO TO iPod TOUCH

    I have converted a .avi video to .mp4 format and it works fine on iTunes. However, it will not function properly on the iPod Touch. How can I fix this? CAN I fix this??

  • Problem in deleting and renaming?

    i have a text file in which i have to change some values in it. so i tried using this code.. asciiFile = new File(FileName);             TempFile = new File(asciiFile.getParent(), "Temp1.xml");             BufferedReader buff = new BufferedReader(new

  • How to pass pushbutton values to a function module

    Hi all, I am required  to move a subroutine in main program to a function module but I am unable to pass in the pushbutton . How do I do that? In main program: SELECTION-SCREEN BEGIN OF BLOCK blk1. PARAMETERS message(10) TYPE c. SELECTION-SCREEN SKIP

  • How much data can you store on 32G iPhone?

    How many movies, tunes, etc. can be stored on a 32G Iphone?

  • Upgrading from cs2

    purchased a secondhand copy of cs2. can i purchase an upgrade to 5.5?