You are not logged in.
Pages: 1
Topic closed
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
With this change, I now get:
Failed to bind to '127.0.0.1:6600': Address already in use
Offline
Try setting it to 'any' or '0.0.0.0', that is the default.
Linux Registered User #362737
Offline
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
Kill mpd. Then run
mpd --no-daemon --stdout --verbose
Offline
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
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
Thank you for this explanation. Commenting out the user line in mpd.conf solved the issue!
Offline
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
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...
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Pages: 1
Topic closed