You are not logged in.

#1 2009-03-18 15:13:50

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

mpd start-up error.

Hi,

I've just installed the mpd music player, using the Arch wiki as I've not used mpd, before.

Everything seemed to go well, but when I try to start the daemon, I get this output:

/etc/rc.d/mpd start
:: Starting Music Player Daemon                                          [BUSY] /etc/rc.d/mpd: line 6:  3829 Aborted                 /usr/bin/mpd /etc/mpd.conf >&/dev/null
                                                                         [FAIL]

When I grep to see whether the daemon is already running, I don't see anything.  I'm guessing I've made a really stupid error.  Can anyone help me?

Thanks,

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#2 2009-03-18 15:23:08

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: mpd start-up error.

Easiest approach: post you're mpd.conf

Offline

#3 2009-03-18 15:28:14

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: mpd start-up error.

Good idea, should have thought of that!

# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.

# Required 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.
#
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.
#
playlist_directory "~/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.
#
db_file "~/.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.
#
log_file "~/.mpd/log"

error_file "~/.mpd/error"
###############################################################################


# Optional files ##############################################################
#
# 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.
#
pid_file "~/.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.
#
state_file "~/.mpd/mpdstate"

#
###############################################################################


# General music daemon options ################################################
#
# This setting specifies the user that MPD will run as, if set. MPD should
# never run as root and you may use this setting to make MPD change its user 
# id after initialization. Do not use this setting if you start MPD as an
# unprivileged user. This setting is disabled by default, and the server will
# run as root.
#
user "chris"
#
# 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        "127.0.0.1"
#
# And for Unix Socket
#bind_to_address        "~/.mpd/socket"
#
# This setting is the 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"
#
###############################################################################

# 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 "path_to_your_music_collection"
#
#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 "path_to_your_music_collection"
#
#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"
#
###############################################################################


# 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
#}
#
# An example of an OSS output:
#
#audio_output {
#    type            "oss"
#    name            "My OSS Device"
#    device            "/dev/dsp"    # optional
#    format            "44100:16:2"    # 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
#}
#
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
#
#audio_output {
#    type            "pulse"
#    name            "My Pulse Output"
#    server            "remote_server"
#    sink            "remote_server_sink"
#}
#
## An example of a null output (for no audio output):
#
#audio_output {
#    type            "null"
#    name            "My Null Output"
#}
#
# 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"
#
###############################################################################


# Volume control mixer ########################################################
#
# MPD has limited volume controls, to use them pick one below. If one is not
# specified it may be autodetected at startup, depending on the dependencies
# which were compiled into the server.
#
# An example for controlling an ALSA mixer:
#
#mixer_type            "alsa"
#mixer_device            "default"
#mixer_control            "PCM"
#
# An example for controlling an OSS mixer:
#
#mixer_type            "oss"
#mixer_device            "/dev/mixer"
#mixer_control            "PCM"
#
# This example is a general volume control mixer, it is used to adjust the 
# volume of the audio sent to the audio output, and will work with all outputs.
#
mixer_type            "software"
#
###############################################################################


# Normalization automatic volume adjustments ##################################
#
# This setting specifies the type of ReplayGain to use. This setting can have
# the argument "album" or "track". See <http://www.replaygain.org> for more
# details. By default this setting is disabled.
#
#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".
#
#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%"
#
###############################################################################


# HTTP Streaming Proxy ########################################################
#
# This setting specifies the HTTP proxy to use for playing HTTP streams. By
# default, these settings will be disabled.
#
#http_proxy_host        "proxy.isp.com"
#http_proxy_port        "8080"
#http_proxy_user        "user"
#http_proxy_password        "password"
#
###############################################################################


# 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. After modification of this setting mpd 
# --create-db must be run to change the database.
#
#filesystem_charset        "ISO-8859-1"
#
# This setting controls the encoding that ID3v1 tags should be converted from.
#
#id3v1_encoding            "ISO-8859-1"
#
###############################################################################

Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#4 2009-03-18 15:55:33

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

Re: mpd start-up error.

make sure you've created all of those ~/.mpd/* files called out in the .conf, else it won't start

Offline

#5 2009-03-18 15:57:54

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: mpd start-up error.

You might have a permission issue. I usually leave mpd run as user "mpd". If you check /etc/passwd you'll see that this user added with mpd. In my experience it's easier and doesn't make things complicated if mpd is or will be used by more than one user.

Sometimes it's a good idea to specify in the mixer-section what sound-system is used (it depends but sometimes the autodetection doesn't work perfectly).

Offline

#6 2009-03-18 16:02:39

pharcyde
Member
From: Connecticut
Registered: 2009-03-13
Posts: 88

Re: mpd start-up error.

KimTjik is right. I had this problem the other day and OSS was not specified in mpd.conf resulting in the same error.

Offline

#7 2009-03-18 16:17:18

Hohoho
Member
Registered: 2007-06-23
Posts: 222

Re: mpd start-up error.

I had a similar problem, if I launched MPD from console, it would tell me it can't bind to the address specified because it is used, so I just commented the bind_to_address and port parts in the config and it just works, weird.

Offline

#8 2009-03-18 16:23:02

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: mpd start-up error.

KimTjik wrote:

You might have a permission issue. I usually leave mpd run as user "mpd". If you check /etc/passwd you'll see that this user added with mpd. In my experience it's easier and doesn't make things complicated if mpd is or will be used by more than one user.

Sometimes it's a good idea to specify in the mixer-section what sound-system is used (it depends but sometimes the autodetection doesn't work perfectly).

I changed the user back to mpd, still got the same error.  I'll now check the ~ files, as suggested.

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#9 2009-03-18 16:57:36

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

Re: mpd start-up error.

chris_debian wrote:

I changed the user back to mpd, still got the same error.  I'll now check the ~ files, as suggested.

Chris.

fyi: if you use the mpd user in mpd.conf, then you'll need to call absolute pathnames for the ~/.mpd files as ~ resolves to the home of that user in the config file.

if you have all the ~/.mpd/* files, i'd put the user back to chris and uncomment an audio output as mentioned.

Offline

#10 2009-03-18 17:14:43

bobdob
Member
Registered: 2008-06-13
Posts: 138

Re: mpd start-up error.

Hohoho wrote:

I had a similar problem, if I launched MPD from console, it would tell me it can't bind to the address specified because it is used, so I just commented the bind_to_address and port parts in the config and it just works, weird.

I had a similar problem to this. If MPD was start on boot it would fail saying it couldn't bind to 127.0.0.1, but it could bind to it when i manually started it after boot. Anyway i commented it out and it works fine now.

Offline

#11 2009-03-18 17:22:51

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: mpd start-up error.

brisbin33 wrote:
chris_debian wrote:

I changed the user back to mpd, still got the same error.  I'll now check the ~ files, as suggested.

Chris.

fyi: if you use the mpd user in mpd.conf, then you'll need to call absolute pathnames for the ~/.mpd files as ~ resolves to the home of that user in the config file.

if you have all the ~/.mpd/* files, i'd put the user back to chris and uncomment an audio output as mentioned.

Brisbin,

I'm using ALSA.  Do I need to uncomment any lines that relate to ALSA?

Cheers,

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#12 2009-03-18 18:03:01

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

Re: mpd start-up error.

just uncommenting:

audio_output {
    type            "alsa"
    name            "My ALSA Device"
}

was enough to get me going

Last edited by brisbin33 (2009-03-18 18:03:19)

Offline

#13 2009-03-18 18:13:58

Mr. X
Member
From: belgrade, serbia
Registered: 2007-02-28
Posts: 67

Re: mpd start-up error.

my mpd broke too... now I tried the build from [testing] and made a new mpd.conf, but it still won't start...
i'm using OSS...

Last edited by Mr. X (2009-03-18 18:39:24)

Offline

#14 2009-03-18 19:25:54

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: mpd start-up error.

brisbin33 wrote:

just uncommenting:

audio_output {
    type            "alsa"
    name            "My ALSA Device"
}

was enough to get me going

# /etc/rc.d/mpd start
:: Starting Music Player Daemon                                          [DONE]

Looking good.  My alsa configuration may be a different issue, but at least this bit is working.

Cheers,

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#15 2009-03-18 20:09:13

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: mpd start-up error.

Hmm,

Just when I thought it was fixed. When I select a track to play, the album art appears for a fraction of a second and then disappears, before any music is heard.  I guess I'm going to have to sleep on this and do some reading.  It could be the way that Sonata works, but as I've just installed it, I'm yet to work that out.

Cheers,

Chris.


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#16 2009-03-18 20:51:48

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: mpd start-up error.

From the CLI, I get this:

Error opening ALSA device "hw:0,0": No such file or directory

My mpd conf is apparently pointing at the wrong device.  Is there a way to find out the hardware adrress of my other card (I have two)?  I use the PCI card for multimedia and the built-in for VoIP.

Maybe I could just try some different numbers instead of hw;0,0.  Not very scientific, but it may just work.

Cheers,

Chris.

Last edited by chris_debian (2009-03-19 18:35:00)


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#17 2009-03-21 11:37:13

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: mpd start-up error.

Guys,

I'm pulling my hair out.  All I want to do is play some music.  I've checked several how-to's, so must be doing something stupid.  Can someone have a look at my mpd.conf and see if I've screwed-up somewhere?

Cheers,

Chris.

# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.

# Required 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.
#
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.
#
playlist_directory "~/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.
#
db_file "~/.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.
#
log_file "~/.mpd/log"

error_file "~/.mpd/error"
###############################################################################


# Optional files ##############################################################
#
# 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.
#
#pid_file "~/.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.
#
state_file "~/.mpd/mpdstate"

#
###############################################################################


# General music daemon options ################################################
#
# This setting specifies the user that MPD will run as, if set. MPD should
# never run as root and you may use this setting to make MPD change its user 
# id after initialization. Do not use this setting if you start MPD as an
# unprivileged user. This setting is disabled by default, and the server will
# run as root.
#
user "chris"
#
# 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        "127.0.0.1"
#
# And for Unix Socket
#bind_to_address        "~/.mpd/socket"
#
# This setting is the 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"
#
###############################################################################

# 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 "path_to_your_music_collection"
#
#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 "path_to_your_music_collection"
#
#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"
#
###############################################################################


# 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            "Soundblaster"
    device            "hw:2,0"    # optional
    format            "44100:16:2"    # optional
}
#
# An example of an OSS output:
#
#audio_output {
#    type            "oss"
#    name            "My OSS Device"
#    device            "/dev/dsp"    # optional
#    format            "44100:16:2"    # 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
#}
#
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
#
#audio_output {
#    type            "pulse"
#    name            "My Pulse Output"
#    server            "remote_server"
#    sink            "remote_server_sink"
#}
#
## An example of a null output (for no audio output):
#
#audio_output {
#    type            "null"
#    name            "My Null Output"
#}
#
# 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"
#
###############################################################################


# Volume control mixer ########################################################
#
# MPD has limited volume controls, to use them pick one below. If one is not
# specified it may be autodetected at startup, depending on the dependencies
# which were compiled into the server.
#
# An example for controlling an ALSA mixer:
#
mixer_type            "alsa"
mixer_device            "default"
mixer_control            "PCM"
#
# An example for controlling an OSS mixer:
#
#mixer_type            "oss"
#mixer_device            "/dev/mixer"
#mixer_control            "PCM"
#
# This example is a general volume control mixer, it is used to adjust the 
# volume of the audio sent to the audio output, and will work with all outputs.
#
#mixer_type            "software"
#
###############################################################################


# Normalization automatic volume adjustments ##################################
#
# This setting specifies the type of ReplayGain to use. This setting can have
# the argument "album" or "track". See <http://www.replaygain.org> for more
# details. By default this setting is disabled.
#
#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".
#
#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%"
#
###############################################################################


# HTTP Streaming Proxy ########################################################
#
# This setting specifies the HTTP proxy to use for playing HTTP streams. By
# default, these settings will be disabled.
#
#http_proxy_host        "proxy.isp.com"
#http_proxy_port        "8080"
#http_proxy_user        "user"
#http_proxy_password        "password"
#
###############################################################################


# 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. After modification of this setting mpd 
# --create-db must be run to change the database.
#
#filesystem_charset        "ISO-8859-1"
#
# This setting controls the encoding that ID3v1 tags should be converted from.
#
#id3v1_encoding            "ISO-8859-1"
#
###############################################################################

Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#18 2009-03-21 14:41:12

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: mpd start-up error.

You shouldn't need to set the ALSA "device" and "format". Leave those commented out.

Offline

#19 2009-03-22 08:14:41

chris_debian
Member
From: Wiltshire, UK
Registered: 2009-02-24
Posts: 284

Re: mpd start-up error.

Still no luck :-(


Reasons why you may want to try GNU/Linux:

www.whylinuxisbetter.net/

Offline

#20 2009-03-24 20:08:55

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: mpd start-up error.

You might want to take a look at man mpd.conf and the config options that are alsa specific. Here's my related lines from my config file. Note that I use the git version of mpd, but I think the latest package (from extra or testing) uses the same config options.

audio_output {
  type          "alsa"
  name          "eMPeeDee"
  format        "48000:16:2"
  mixer_device  "default"
  mixer_control "Master"
  use_mmap      "yes"
  auto_resample "no"
}

..not all of those have to be there, as said before, but I had some problems with autodetection at some point, so I left it the way it worked at the time.

Offline

#21 2009-03-24 23:09:10

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: mpd start-up error.

Is this a mpd issue alone or you don't get any sound at all?

Offline

#22 2009-04-06 12:06:55

Netsu
Member
From: Poland
Registered: 2009-04-04
Posts: 182

Re: mpd start-up error.

bobdob wrote:

I had a similar problem to this. If MPD was start on boot it would fail saying it couldn't bind to 127.0.0.1, but it could bind to it when i manually started it after boot. Anyway i commented it out and it works fine now.

I have something like this too. I guess it's because I start the "network" daemon in the background and mpd tries to start before network is up and running.
What's the best way of starting mpd daemon OTHER than from rc.conf daemons array? I'd put it in my xfce-session but when started as normal user it spits an error about "var/run/daemons/mpd" being untouchable (or however else that translates to english).
Or maybe should I just make a bash script to start mpd after lets say 10 seconds and put it in rc.conf to start in the background?


My Elegant Pattern GTK theme.
My game development blog, now on a new site.

'~/.xinitrc is an Archer's DE' - moljac024

Offline

#23 2009-04-06 13:16:06

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

Re: mpd start-up error.

Netsu, is it that important to background network? i'm pretty sure it's best practice to not background network for situations just like this.  it's the only daemon i have not backgrounded.  however, if you still really want it backgrounded i think you could put something like this in /etc/rc.local:

(sleep 10 && /etc/rc.d/mpd start) &

Offline

#24 2009-04-06 13:25:51

Netsu
Member
From: Poland
Registered: 2009-04-04
Posts: 182

Re: mpd start-up error.

It was adding 6 second to the booting time tongue As long as the only problems are small, easily fixable like this one, I think I'll keep it backgrounded.

[edit] Thanks, it helped.

Last edited by Netsu (2009-04-06 13:32:47)


My Elegant Pattern GTK theme.
My game development blog, now on a new site.

'~/.xinitrc is an Archer's DE' - moljac024

Offline

#25 2009-04-06 23:19:06

listdata
Member
Registered: 2008-12-23
Posts: 102
Website

Re: mpd start-up error.

Netsu wrote:
bobdob wrote:

I had a similar problem to this. If MPD was start on boot it would fail saying it couldn't bind to 127.0.0.1, but it could bind to it when i manually started it after boot. Anyway i commented it out and it works fine now.

I have something like this too. I guess it's because I start the "network" daemon in the background and mpd tries to start before network is up and running.
What's the best way of starting mpd daemon OTHER than from rc.conf daemons array? I'd put it in my xfce-session but when started as normal user it spits an error about "var/run/daemons/mpd" being untouchable (or however else that translates to english).
Or maybe should I just make a bash script to start mpd after lets say 10 seconds and put it in rc.conf to start in the background?

Just edit your mpd.conf (I renamed mine to cfg-alsa to denote its alsa output) and make all of your mpd files point to files/directories that your normal user owns (e.g., home directory). And then call mpd from your .xinitrc like so: mpd /full/path/to/your/config/file.

As far as binding the address, if you're not sharing mpd over a network (with icecast), set it to "localhost" -- I only have this address bound to my LAN IP address on my 2nd mpd daemon that works w/ icecast to share music.

Calling mpd from .xinitrc ensures that mpd starts only after all your network daemons have loaded/finalized.

Offline

Board footer

Powered by FluxBB