You are not logged in.

#1 2009-07-23 03:49:00

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

[solved]mpd --create-db gives 6600 problem

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

#2 2009-07-23 04:11:58

droog
Member
Registered: 2004-11-18
Posts: 877

Re: [solved]mpd --create-db gives 6600 problem

hey what's your /etc/mpd.conf look like?

Offline

#3 2009-07-23 04:14:07

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: [solved]mpd --create-db gives 6600 problem

Attached above. Sorry about that.

Offline

#4 2009-07-23 06:31:46

xd-0
Member
From: Sweden
Registered: 2007-11-02
Posts: 327
Website

Re: [solved]mpd --create-db gives 6600 problem

You are already running mpd as a user. Therefore root cannot start mpd. Instead run:
mpd --create-db

Offline

#5 2009-07-27 21:41:39

deconstrained
Member
Registered: 2008-03-31
Posts: 49

Re: [solved]mpd --create-db gives 6600 problem

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

#6 2009-07-27 22:49:07

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: [solved]mpd --create-db gives 6600 problem

try netstat -tapn to find what process is using the port, or use lsof

Offline

#7 2009-07-30 07:46:02

quickfished
Member
From: Hong Kong
Registered: 2009-01-06
Posts: 29

Re: [solved]mpd --create-db gives 6600 problem

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 smile

Last edited by quickfished (2009-07-30 07:47:46)

Offline

#8 2009-07-31 12:44:32

brownkenny
Member
Registered: 2007-08-07
Posts: 8

Re: [solved]mpd --create-db gives 6600 problem

I get the exact same error. However, updating my database through ncmpcpp works fine.

Offline

#9 2009-08-05 13:06:10

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [solved]mpd --create-db gives 6600 problem

brownkenny wrote:

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 sad
Ok I know how to do that:
ncmpcpp and when you will have ncmpcpp open hit u wink
But that didin't helps me sad
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

#10 2009-08-05 14:06:28

oddsocks
Member
Registered: 2008-12-08
Posts: 47

Re: [solved]mpd --create-db gives 6600 problem

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

#11 2009-08-05 14:22:15

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [solved]mpd --create-db gives 6600 problem

oddsocks wrote:

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 wink


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#12 2009-08-05 14:24:54

xd-0
Member
From: Sweden
Registered: 2007-11-02
Posts: 327
Website

Re: [solved]mpd --create-db gives 6600 problem

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

#13 2009-08-05 21:43:10

dunz0r
Member
From: Sweden
Registered: 2009-03-30
Posts: 258
Website

Re: [solved]mpd --create-db gives 6600 problem

BTW: MPD has been supporting updating the database through mpc update. It's a lot faster than mpd --create-db. I suggest you use that instead.


RTFM or GTFO
hax0r.se

Offline

#14 2009-08-06 09:20:38

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427
Website

Re: [solved]mpd --create-db gives 6600 problem

oddsocks wrote:

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

#15 2009-08-11 10:55:39

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: [solved]mpd --create-db gives 6600 problem

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

#16 2009-08-11 11:21:36

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [solved]mpd --create-db gives 6600 problem

zephyrus17 wrote:

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 wink


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#17 2009-08-11 11:25:11

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: [solved]mpd --create-db gives 6600 problem

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

#18 2009-08-11 13:11:40

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [solved]mpd --create-db gives 6600 problem

Try chnod 775 on your music directory wink


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#19 2009-08-12 00:26:53

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [solved]mpd --create-db gives 6600 problem

zephyrus17 wrote:

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

#20 2009-08-16 05:17:36

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: [solved]mpd --create-db gives 6600 problem

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 smile My configurations are the same as the arch linux mpd wiki. Thanks to all that helped! big_smile

Offline

Board footer

Powered by FluxBB