You are not logged in.
Hi,
when I boot my computer I get when the mpd is loading the message that is failed:
it looked a little bit like this:
/etc/rc.d/mpd, Line 6 abort /usr/bin/mpd /etc/mpd.conf &> /dev/null
This happend only when I use the stock kernel. Only change to the kernel is the AUR package rt2860 for my wifi card.
Offline
what is line 6 of mpd.conf?
Offline
This is line 5 to 7:
error_file "~/.mpd/error"
pid_file "~/.mpd/mpd.pid"
state_file "~/.mpd/mpdstate"
Offline
Now I get this message even when I start mpd when the computer is running, I get this message:
% sudo /etc/rc.d/mpd start
:: Starting Music Player Daemon
/etc/rc.d/mpd: line 6: 6391 Abgebrochen /usr/bin/mpd /etc/mpd.conf >&/dev/null
Last edited by tehabe (2008-12-24 21:26:54)
Offline
The line 6 in question isn't from mpd.conf but from the daemon script in /etc/rc.d/mpd. However if the example you gave is your mpd.conf then it would be interesting to see how it looks. I can't understand how this could be connected to the kernel. To me such an explanation doesn't make sense.
Anyway the full mpd.conf might be of interest to track down why the daemon fails to execute.
Offline
My full mpd.conf. I don't understand the connection myself. I only know the problem started when began to use the stock kernel. I did this because the my kernel before that didn't like my udev and broke the symlinks for the DVD drive.
music_directory "~/music"
playlist_directory "~/playlists"
db_file "~/.mpd/db"
log_file "~/.mpd/log"
error_file "~/.mpd/error"
pid_file "~/.mpd/mpd.pid"
state_file "~/.mpd/mpdstate"
user "thomas"
bind_to_address "127.0.0.1"
port "6600
filesystem_charset "UTF-8"
mixer_type "alsa"
mixer_device "default"
mixer_control "PCM"
audio_output {
type "alsa"
name "ALSA audio output"
driver_options "period_size=50000;use_mmap=true"
}
Offline
driver_options "period_size=50000;use_mmap=true"
Is that part necessary?ฆ
Offline
do the files and folder exist which you specified?
Offline
driver_options "period_size=50000;use_mmap=true"
Is that part necessary?ฆ
It should reduce the load on the processor I didn't see any difference.
All directories exist.
Currently it only fails when I boot the computer, when the computer is up and running I can start mpd via the start script.
I updated the kernel yesterday to 2.6.28 and it started okay but when I installed the AUR package rt2680 it failed again. I now it makes no sense whatsoever.
Offline
Does the "mpd.pid" exist? Did you create it with "touch ~/.mpd/mpd.pid". If it exist, try comment out the line 6, and see what happens. You are supposed to be able to run without a .pid file, but then you have to remove it from the configuration file.
Offline
The line 6 in question isn't from mpd.conf but from the daemon script in /etc/rc.d/mpd.
Hm, yes. And this line is: "/usr/bin/mpd /etc/mpd.conf >&/dev/null"
It is trying to execute "/usr/bin/mpd" loading "/etc/mpd.conf" and it fails.
Why? Can't it read /etc/mpd.conf for some reason? How about rights? Is it really there? Remember than when you boot, mpd is run as root. How do run it manually--as a user?
Last edited by thunderogg (2008-12-27 17:48:21)
Offline
Why? Can't it read /etc/mpd.conf for some reason? How about rights? Is it really there? Remember than when you boot, mpd is run as root. How do run it manually--as a user?
% ls -l mpd.conf
-rw-r--r-- 1 root root 558 26. Dez 19:52 mpd.conf
~/.mpd% ls -l
insgesamt 2828
-rw-r--r-- 1 thomas thomas 1392266 22. Dez 22:43 db
-rw------- 1 thomas thomas 0 16. Okt 00:46 error
-rw------- 1 thomas thomas 1484827 22. Dez 22:43 log
-rw-r--r-- 1 thomas thomas 5 27. Dez 17:44 mpd.pid
-rw-r--r-- 1 thomas thomas 112 27. Dez 17:43 mpdstate
I fails to start at boot but I can successfully start it when the computer is running, with:
sudo /etc/rc.d/mpd start
Offline
OK, I see. Everything is as it should except that it isn't working. The rt2680 is a wifi thingie, isn't it? And everything worked before? Sounds like a conflict at startup time. Can't you start mpd a bit later? Either by putting @mpd in the DAEMON, or "/etc/rc.d/mpd start" in "/etc/rc.local". Try to put "sleep [seconds]" before it to delay the launch further. I don't know ... maybe it's worth a try.
Offline
Or you may start it automatically after login ...
Offline
My full mpd.conf. I don't understand the connection myself. I only know the problem started when began to use the stock kernel. I did this because the my kernel before that didn't like my udev and broke the symlinks for the DVD drive.
<snip>
Hi,
just noticed your conf file is missing a quotation mark in
port "6600" <--there
..that is, if that is a copy/paste of your config, of course.
Cheers
Offline
sand_man wrote:driver_options "period_size=50000;use_mmap=true"
Is that part necessary?ฆ
It should reduce the load on the processor I didn't see any difference.
All directories exist.
Currently it only fails when I boot the computer, when the computer is up and running I can start mpd via the start script.
I updated the kernel yesterday to 2.6.28 and it started okay but when I installed the AUR package rt2680 it failed again. I now it makes no sense whatsoever.
I have the same problem as this but when I shutdown (shutdown hangs). Booting is fine. I still haven't found out what is causing it and the only solution I found is to pkill mpd in rc.local.shutdown
This doesn't help you though.
Offline
just noticed your conf file is missing a quotation mark in
port "6600" <--there
..that is, if that is a copy/paste of your config, of course.
That would have been to easy, so it didn't solve my problem.
Offline
Try:
music_directory "/home/thomas/music"
playlist_directory "/home/thomas/playlists"
db_file "/home/thomas/.mpd/db"
log_file "/home/thomas/.mpd/log"
error_file "/home/thomas/.mpd/error"
pid_file "/home/thomas/.mpd/mpd.pid"
state_file "/home/thomas/.mpd/mpdstate"
user "thomas"
bind_to_address "127.0.0.1"
port "6600"
filesystem_charset "UTF-8"
mixer_type "alsa"
mixer_device "default"
mixer_control "PCM"
audio_output {
type "alsa"
name "ALSA audio output"
driver_options "period_size=50000;use_mmap=true"
}
A side note: do you realize there is a `mpd` user on your system and that you should probably use -that- as the user as which mpd should run?
Offline
I'm not absolutely sure about this, but it seem to me there is no "driver_options" available anymore in mpc.conf. Check the mpd.conf man for details. In the meanwhile, you can try
audio_output {
type "alsa"
name "ALSA audio output"
period_time "50000"
use_mmap "yes"
}
Cheers
Last edited by sm4tik (2008-12-29 23:47:03)
Offline
I downgraded from the git to "current" stable 0.13.2 and recreated the hole library. Now it seems to work again.
Offline
I downgraded from the git to "current" stable 0.13.2 and recreated the hole library. Now it seems to work again.
You might know 0.14 is the current stable, so be prepared to face your problem again once mpd gets updated in extra. Using git here and had a few problems getting it going a while back, but once I got the config figured out, it's all good! Just see the man pages once you upgrade
Offline
You might know 0.14 is the current stable, so be prepared to face your problem again once mpd gets updated in extra.
So, 0.14 is in testing and I got my problem back. But I also got some new information on the problem. This is the output of mpd on boot up.
binding to address for 127.0.0.1
can't lookup host "127.0.0.1" at line 9: Address family for hostname not supported
One possibility for a work around is, to remove this line from the mpd.conf:
bind_to_address "127.0.0.1"
Last edited by tehabe (2009-01-14 21:44:36)
Offline
Hi,
when I boot my computer I get when the mpd is loading the message that is failed:
it looked a little bit like this:
/etc/rc.d/mpd, Line 6 abort /usr/bin/mpd /etc/mpd.conf &> /dev/null
This happend only when I use the stock kernel. Only change to the kernel is the AUR package rt2860 for my wifi card.
I could solve this problem for me.
It happened when I update the mpd to 0.14.
The problem is the config file. In version 0.14, there isn't any option for http_buffer_size or something like this.
I removed this line and mpd starts without any problems.
Offline
tehabe wrote:Hi,
when I boot my computer I get when the mpd is loading the message that is failed:
it looked a little bit like this:
/etc/rc.d/mpd, Line 6 abort /usr/bin/mpd /etc/mpd.conf &> /dev/null
This happend only when I use the stock kernel. Only change to the kernel is the AUR package rt2860 for my wifi card.
I could solve this problem for me.
It happened when I update the mpd to 0.14.
The problem is the config file. In version 0.14, there isn't any option for http_buffer_size or something like this.
I removed this line and mpd starts without any problems.
that's what fixed it for me as well.
Offline
...funny thing, now MPD starts, but without PulseAudio Output. Either I have sound, but MPD uses Alsa or something else, or I have no sound.
My Config is everytime the same,
audio_output {
type "pulse"
name "MPD PulseAudio Output"
server "localhost"
sink "alsa_output.pci_8086_27d8_alsa_plackback_0
or only
audio_output {
type "pulse"
name "MPD PulseAudio Output"
#server "localhost"
#sink "alsa_output.pci_8086_27d8_alsa_plackback_0
In the logs, I can find that mpd's connection with pulseaudio is refused.
I have added mpd to the following groups "pulse, audio, pulse-rt, pulse-access" and activated "network access" and "not force authentication" but nothing helps.
When MPD uses Alsa or something else, there isn't any stream in the streamlist from pulseaudio.
Offline