You are not logged in.

#1 2010-04-23 16:51:42

scorpdevil
Member
Registered: 2010-03-29
Posts: 29

mpd crash [Solved]

scorpdevil ~ $ sudo /etc/rc.d/mpd start                                         
Password:
:: Starting Music Player Daemon                                          [BUSY]
/etc/rc.d/mpd: line 6:  7623 Aborted                 /usr/bin/mpd /etc/mpd.conf &>/dev/null                    [FAIL]

#-------------------------- tis is the message i get everytime i start mpd. i have my system fully updated and also reinstalled mpd and followed each and every step of mpd wiki. but all in vain.

Anybody plz help.:(

thanks

Last edited by scorpdevil (2010-04-24 13:30:06)

Offline

#2 2010-04-23 17:12:18

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

Re: mpd crash [Solved]

This means mpd fails to start rather than crash. Run mpd on it's own, without using the startup script, to see why its failing. It's normally a problem with the config file.

sudo mpd /etc/mpd.conf

Offline

#3 2010-04-23 18:24:00

scorpdevil
Member
Registered: 2010-03-29
Posts: 29

Re: mpd crash [Solved]

on running sudo mpd /etc/mpd.conf :
Failed to load database: Unexpected end of file
database: Can't open db file "/home/scorpdevil/.mpd/mpd.db" for reading/writing: Permission denied

then what?? i am running this config file --
music_directory        "~/oldsongs"
playlist_directory        "~/.mpd/playlists"
db_file            "~/.mpd/mpd.db"
log_file            "~/.mpd/mpd.log"
pid_file            "~/.mpd/mpd.pid"
state_file            "~/.mpd/mpdstate"

# General music daemon options

user                "scorpdevil"
bind_to_address        "any"
#bind_to_address        "~/.mpd/socket"
port                "6600"
#log_level            "default"
#gapless_mp3_playback            "yes"
save_absolute_paths_in_playlists    "yes"
follow_inside_symlinks        "yes"
#zeroconf_enabled        "yes"
#zeroconf_name            "Music Player"

# Permissions
#password                   "password@read,add,control,admin"
#default_permissions             "read,add,control,admin"

input {
        plugin "curl"
#       proxy "proxy.isp.com:8080"
#       proxy_user "user"
#       proxy_password "password"
}

audio_output {
    type        "alsa"
    name        "My ALSA Device"
    device        "hw:0,0"    # optional
    format        "44100:16:2"    # optional
    mixer_device    "default"    # optional
    mixer_control    "PCM"        # optional
    mixer_index    "0"        # optional
}

#audio_output {
#    type        "oss"
#    name        "My OSS Device"
##    device        "/dev/dsp"    # optional
##    format        "44100:16:2"    # optional
##    mixer_device    "/dev/mixer"    # optional
##    mixer_control    "PCM"        # optional
#}

#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
#}
#

#audio_output {
#    type        "httpd"
#    name        "My HTTP Stream"
#    encoder        "vorbis"        # optional, vorbis or lame
#    port        "8000"
##    quality        "5.0"            # do not define if bitrate is defined
#    bitrate        "128"            # do not define if quality is defined
#    format        "44100:16:1"
#}

#audio_output {
#    type        "pulse"
#    name        "My Pulse Output"
##    server        "remote_server"        # optional
##    sink        "remote_server_sink"    # optional
#}
#

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

#audio_output {
#    type        "null"
#    name        "My Null Output"
#}
#

#audio_output_format        "44100:16:2"
#samplerate_converter        "Fastest Sinc Interpolator"
#mixer_type            "hardware"
#
mixer_type            "software"
#mixer_type            "disabled"
#replaygain            "album"
#replaygain_preamp        "0"
volume_normalization        "yes"
#audio_buffer_size        "2048"
#buffer_before_play        "10%"
#connection_timeout        "60"
#max_connections        "10"
#max_playlist_length        "16384"
#max_command_list_size        "2048"
#max_output_buffer_size        "8192"
#filesystem_charset        "UTF-8"
#id3v1_encoding            "ISO-8859-1"

#user                  "mpd"
# bind_to_address       "127.0.0.1"
# port                  "6600"

any suggestions bro????

Offline

#4 2010-04-23 18:58:32

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

Re: mpd crash [Solved]

It's a problem with the permissions of the files. What are the permissions of mpd.db and the .mpd directory? If the mpd.db file exists deleting it and letting mpd recreate it sometimes fixes this problem.

Offline

#5 2010-04-23 19:09:24

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: mpd crash [Solved]

Comment the line:

user                "scorpdevil"

and check the owner of the files is mpd.

Offline

#6 2010-04-24 05:24:54

scorpdevil
Member
Registered: 2010-03-29
Posts: 29

Re: mpd crash [Solved]

thanks bob and nodix for ur kind response.

mpd is working now. yes the problem was with the permissions and also with the user. i removed the whole package once again and reinstalled it. this time in the home directory under .mpd folder and bingo it works. smile

Offline

#7 2010-04-24 05:28:10

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: mpd crash [Solved]

Not problem, but still the thread is open, can you mark as Solved?

Offline

Board footer

Powered by FluxBB