You are not logged in.

#1 2011-06-06 21:33:41

Ipozya
Member
Registered: 2011-01-20
Posts: 52

MPD (Failed to bind to 6600) [SOLVED]

I have followed the wiki guidelines for setting up mpd to start as a user (.xinitrc).

I have my music in ~/music and have created ~/.mpd with all the files listed in wiki.  I have pretty lenient permissions on files to avoid errors and ipozya is listed as the owner.  When I run mpd I get:

Failed to bind to '[::]:6600': Failed to create socket: Address family not supported by protocol.

~/.mpd/mpd.conf

music_directory        "/home/ipozya/music"
playlist_directory             "/home/ipozya/.mpd/playlists"
db_file                              "/home/ipozya/.mpd/mpd.db"
log_file                             "/home/ipozya/.mpd/mpd.log"
pid_file                             "/home/ipozya/.mpd/mpd.pid"
state_file                          "/home/ipozya/.mpd/mpdstate"
user                                  "ipozya"

If i open ncmpcpp and click u to update db, it does not load my music, although I guess this can't be done until the above is solved.

ps aux | grep mpd:

ipozya 1175  0.0  0.1 221056 10164 ?        Ssl  17:20   0:00 mpd /home/ipozya/.mpd/mpd.conf
ipozya   1910  0.0  0.0   8156   972 pts/0    S+   17:31   0:00 grep mpd

Any help is greatly appreciated. I am sure the error is something I have overlooked, like a permission.

Last edited by Ipozya (2011-06-07 15:41:24)

Offline

#2 2011-06-07 01:38:51

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: MPD (Failed to bind to 6600) [SOLVED]

Try adding the following to your config:

bind_to_address "127.0.0.1"

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2011-06-07 02:43:29

Ipozya
Member
Registered: 2011-01-20
Posts: 52

Re: MPD (Failed to bind to 6600) [SOLVED]

With this change, I now get:

Failed to bind to '127.0.0.1:6600': Address already in use

Offline

#4 2011-06-07 03:25:02

hermes
Member
From: Lucca, Italy
Registered: 2010-05-19
Posts: 99

Re: MPD (Failed to bind to 6600) [SOLVED]

Try setting it to 'any' or '0.0.0.0', that is the default.


Linux Registered User #362737

Offline

#5 2011-06-07 03:38:53

Ipozya
Member
Registered: 2011-01-20
Posts: 52

Re: MPD (Failed to bind to 6600) [SOLVED]

This gives me the same error that I first receive ("Failed to bind to '[::]:6600': Failed to create socket: Address family not supported by protocol.")

Offline

#6 2011-06-07 03:49:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: MPD (Failed to bind to 6600) [SOLVED]

Kill mpd. Then run

mpd --no-daemon --stdout --verbose

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2011-06-07 05:00:33

Ipozya
Member
Registered: 2011-01-20
Posts: 52

Re: MPD (Failed to bind to 6600) [SOLVED]

Here is the output:

$ mpd --kill
$ mpd --no-daemon --stdout --verbose
config: loading file /home/ipozya/.mpd/mpd.conf
daemon: cannot init supplementary groups of user "ipozya"; Operation not permitted
path: path_set_fs_charset: fs charset is: UTF-8
database: reading DB
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
disabling the last.fm playlist plugin because account is not configured
daemon: opening pid file
daemone: writing pid file
avahi: Initializing interface
avahi: Client is changed to state 101
avahi: Client is CONNECTING
state_file: Loadin state file /home/ipozya/.mpd/mpdstate

... (HERE IT FREEZES, I hit ctrl+c)
state_file: Saving state file /home/ipozya/.mpd/mpdstate
avahi: Shutting down interface
listen: listen_global_finish called
db_finish took 0.000000 seconds

Last edited by Ipozya (2011-06-07 05:00:49)

Offline

#8 2011-06-07 15:32:50

hermes
Member
From: Lucca, Italy
Registered: 2010-05-19
Posts: 99

Re: MPD (Failed to bind to 6600) [SOLVED]

It looks like you had another instance of mpd, because I can reproduce your error trying to start mpd when the daemon is already running. If you start it via .xinitrc, there's no reason to manually run it again, because it's automatically started with your X session. In fact the last output you posted didn't show any error, because you first killed it. The ps aux output maybe showed out the instance started by .xinitrc. When you say "here it freezes" it actually listens for client actions. Try repeating the above steps and, once state_file is loaded, start another terminal session, run ncmpcpp, update db and look at the output in the terminal where you launched mpd from. You could possibly post it to see what it actually means when you say that hitting 'u' doesn't load your music. Please, also check if the path for 'music_directory' is correct.
Further, you should not set the 'user' variable, that gives the message

daemon: cannot init supplementary groups of user "ipozya"; Operation not permitted

Just delete the 'user "ipozya"' line.

Last edited by hermes (2011-06-07 15:37:01)


Linux Registered User #362737

Offline

#9 2011-06-07 15:41:06

Ipozya
Member
Registered: 2011-01-20
Posts: 52

Re: MPD (Failed to bind to 6600) [SOLVED]

Thank you for this explanation.  Commenting out the user line in mpd.conf solved the issue!

Offline

#10 2012-06-10 02:40:39

hazeldf
Member
Registered: 2012-06-10
Posts: 10

Re: MPD (Failed to bind to 6600) [SOLVED]

jasonwryan wrote:

Kill mpd. Then run

mpd --no-daemon --stdout --verbose

I got this

config: loading file /home/jcrown/.mpdconf
daemon: cannot setgid to 45: Operation not permitted

Offline

#11 2012-06-10 02:46:01

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: MPD (Failed to bind to 6600) [SOLVED]

hazeldef, do not necrobump old threads.

This is the 4th infraction with 3 being in your first post. I implore you again. Read the forum rules.

Closing...


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB