You are not logged in.
After following the arch linux guide for mpd, I tried "sudo mpd --create-db" and it came out with
listen: Failed to listen on *:6600: Address already in use
Aborted
I've looked around, and wondered if it's because I have a custom localhost name: "Bonadan".
here's my /etc/mpd.conf
music_directory "/home/gary/Music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/db"
log_file "/var/log/mpd/mpd.log"
error_file "/var/log/mpd/mpd.error"
pid_file "/var/run/mpd/mpd.pid"
state_file "/var/lib/mpd/mpdstate"
user "mpd"
# Binding to address and port causing problems in mpd-0.14.2 best to leave
# commented.
# bind_to_address "127.0.0.1"
# port "6600"
netstat -an gives
tcp 0 0 :::6600 :::* LISTEN
So, how else can I diagnose this problem?
Last edited by zephyrus17 (2009-08-16 05:17:57)
Offline
hey what's your /etc/mpd.conf look like?
Offline
Attached above. Sorry about that.
Offline
You are already running mpd as a user. Therefore root cannot start mpd. Instead run:
mpd --create-db
Offline
I am getting the exact same problem, although I am not already running mpd as a user when I attempt to start it.
It gives me the same error message whether I use my LAN IP or 127.0.0.1 as the bind_to_address
Offline
try netstat -tapn to find what process is using the port, or use lsof
[git] | [AURpkgs] | [arch-games]
Offline
I have the same issue here after installing the latest mpd
music_directory "~/Music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
error_file "~/.mpd/mpd.error"
pid_file "~/.mpd/mpd.pid"
state_file "~/.mpd/mpdstate"
user "stef"
It is impossible to create a db; instead mpd --create-db just launches the mpd daemon again. Which explains the
listen: Failed to listen on *:6600: Address already in use
Aborted
So then I stop it, re-try mpd --create-db and then I got this:
output: No "audio_output" defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
output: Successfully detected a alsa audio device
Adding an audio_output in /etc/mpd.conf fixes this; but then mpd still doesn't build a database.
I've tried to do it by the book, as explained in the wiki, and then it looks something like this:
music_directory "~/Music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/db"
log_file "/var/log/mpd/mpd.log"
error_file "/var/log/mpd/mpd.error"
pid_file "/var/run/mpd/mpd.pid"
state_file "/var/lib/mpd/mpdstate"
user "mpd"
I'm very sure everything is okay, permission-wise. Checked and re-checked. But I get exactly the same result.
I'm using scrobby as scrobbler and I output mpd stats in conky. Getting rid of that doesn't seem to do anything.
There must be something wrong in mpd 0.15.1-1
I'm using Rhythmbox in the meantime, but I don't know how much longer I can support that
Last edited by quickfished (2009-07-30 07:47:46)
Offline
I get the exact same error. However, updating my database through ncmpcpp works fine.
Offline
I get the exact same error. However, updating my database through ncmpcpp works fine.
How do you do that I got the same errors as above and nothing helps
Ok I know how to do that:
ncmpcpp and when you will have ncmpcpp open hit u
But that didin't helps me
Ok I how to stop mpd but when I try to start it I have:
:: Starting Music Player Daemon [BUSY] /etc/rc.d/mpd: line 6: 13712 Stop /usr/bin/mpd /etc/mpd.conf &>/dev/null
[FAIL]
Last edited by SpeedVin (2009-08-05 13:45:29)
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
I also had this problem when I had my mpd.conf set for the user mpd. Instead, changed it all to my user login, and created all my mpd related files in my home folder, and --create-db worked. I know this isn't the way Arch installs mpd, but it solved my problem. Just my 2cents
Offline
I also had this problem when I had my mpd.conf set for the user mpd. Instead, changed it all to my user login, and created all my mpd related files in my home folder, and --create-db worked. I know this isn't the way Arch installs mpd, but it solved my problem. Just my 2cents
Ok problem Solved.
I change owner of mpd files in var and change in mpd.conf host to host "My host".
My host is my host anme in rc.conf and hosts.conf.
And change in ncmpcpp config file host to host "My host" and ncmpcpp work fine
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
Try commenting out the user row and set: bind_to_address "any" to rule out ip and user problems.
Also check the newest config file for mpd and compare to your own. There have been some changes to it in the last release (or some release before that)
Offline
I also had this problem when I had my mpd.conf set for the user mpd. Instead, changed it all to my user login, and created all my mpd related files in my home folder, and --create-db worked. I know this isn't the way Arch installs mpd, but it solved my problem. Just my 2cents
That's how I prefer it as well. Just set up mpd on a per-user base and forget about /etc/rc.d/mpd. No root involved and each user can set it up to their likings.
Offline
Still doesn't work for me. "mpc update" just gives "volume:100% repeat: off random: off". Not even running as root helps.
Does it matter that I've been trying with mpd-git?
Last edited by zephyrus17 (2009-08-11 11:13:02)
Offline
Still doesn't work for me. "mpc update" just gives "volume:100% repeat: off random: off". Not even running as root helps.
Does it matter that I've been trying with mpd-git?
Try some other client like ncmpcpp and when you wil be in ncmpcpp just press u and try browse you collection
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
It says "Database update finished!" but there's just blank in the screen.
There's still something binding to 6600. This is driving me insane!
EDIT: Does it matter that my music directory in /home is a symlink to another directory?
Last edited by zephyrus17 (2009-08-11 11:39:27)
Offline
Try chnod 775 on your music directory
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
It says "Database update finished!" but there's just blank in the screen.
There's still something binding to 6600. This is driving me insane!
EDIT: Does it matter that my music directory in /home is a symlink to another directory?
When database update works, then mpd works too. So the error is a wrong setup. Check your permissions on your media files, your folder, where media files are stored AND the folder above that one.
As has been mentioned already: The easiest way to work around this is using your own username as mpd user.
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
I fixed. But I have no idea how. It's probably my HAL not mounting my Music drive earlier than MPD looks for the music files so it can't find it. After putting that drive in fstab, it worked My configurations are the same as the arch linux mpd wiki. Thanks to all that helped!
Offline