You are not logged in.
I ran mpd as a user and I get this output (not sure if it affects it)
http://pastebin.com/k1HkDSNj
here is my ~/.mpdconf
http://pastebin.com/ht3USrh1
when I run ncmpcpp without being connected to the internet I get this
Couldn't connect to MPD (host = localhost, port = 6600): Failed to resolve host name
ncmpcpp appears if i'm connected. This was the closest thing I found to someone with a similar problem, but it didn't solve it https://bbs.archlinux.org/viewtopic.php?id=110505
Running mpd as a daemon didn' solve it, and if I ran it as a daemon, my music library doesn't appear (is it because I followed the single user configuration?)
Thanks in advance!
Last edited by kenshin421 (2012-09-21 21:54:33)
Offline
I ran mpd as a user and I get this output (not sure if it affects it)
http://pastebin.com/k1HkDSNjhere is my ~/.mpdconf
http://pastebin.com/ht3USrh1when I run ncmpcpp without being connected to the internet I get this
Couldn't connect to MPD (host = localhost, port = 6600): Failed to resolve host namencmpcpp appears if i'm connected. This was the closest thing I found to someone with a similar problem, but it didn't solve it https://bbs.archlinux.org/viewtopic.php?id=110505
Running mpd as a daemon didn' solve it, and if I ran it as a daemon, my music library doesn't appear (is it because I followed the single user configuration?)Thanks in advance!
change localhost to 127.0.0.1 and it should work.
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 still get the same error. I changed binds_to_address and I also tried the only localhost in the file (located under audio). I tried using "localhost" and "127.0.0.1" suggested.
Offline
Offline
I still get the same error. I changed binds_to_address and I also tried the only localhost in the file (located under audio). I tried using "localhost" and "127.0.0.1" suggested.
you still need to change your ncmpcpp config too....
mpd_host = "127.0.0.1"
And yes, as stated above, comment out the user line, it is wrong in single user mode.
Apart from this. This does seem like a deeper problem...
Whats the output of:
ip addr show
And while we are at it, show your /etc/hosts file too...
Last edited by Rasi (2012-09-21 15:32:28)
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
and as another sidenote, using unix sockets *should* always work, even without any kind of network.
~/.mpdconf
bind_to_address "/home/.mpd/kenshin421/socket"
.ncmpcpp/config:
mpd_host = "/home/.mpd/kenshin421/socket"
You can have multiple bind_to_address lines in .mpdconf, so just setup both
bind_to_address "/home/.mpd/kenshin421/socket"
bind_to_address "127.0.0.1"
Last edited by Rasi (2012-09-21 15:59:24)
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
Ah. Fixing the ncmpcpp config fixed it. I didn't know there was an mpd_host on there. Thanks!
Offline