DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1 Week Ago
stanl stanl is offline
Real Name: Stan
Port Guard
 
Join Date: Jun 2019
Posts: 29
Default Help with ncmpcpp please

I've done pkg_add with mpd, mpc and ncmpcpp and enabled the mpd daemon.
I've read the man pages for all and reviewed a post by Shep at:

http://daemonforums.org/showthread.php?t=8282

For ~/.mpdconf I set music_directory as "~/Music" and left the rest as defaults.
For ~/.ncmpcpp/config I set mpd_music_directory as ~/Music and left the rest as defaults.

When i start ncmpcpp I'm in a blank playlist screen with "connected to localhost" at the bottom".
Hitting #2 brings me to a blank Browse: / screen. Hitting #2 again brings up a message:

"For browsing local filesystem connection to MPD via Unix Socket is required"

If I do doas mpd, I get:

exception: failed to bind to '127.0.0.1:6600'
exception:nested:Failed to bind socket:Address already in use

At this point I am stuck and would appreciate any assistance.

Thank you
Reply With Quote
  #2   (View Single Post)  
Old 1 Week Ago
stanl stanl is offline
Real Name: Stan
Port Guard
 
Join Date: Jun 2019
Posts: 29
Default

And:

stanl:~$ doas mpd
doas (stanl@absalom.fios-router.home) password:
Nov 30 13:21 : exception: bind to '127.0.0.1:6600' failed (continuing anyway, because binding to '/var/run/mpd/socket' succeeded): Failed to bind socket: Address already in use
Nov 30 13:21 : exception: bind to '[::1]:6600' failed (continuing anyway, because binding to '/var/run/mpd/socket' succeeded): Failed to bind socket: Address already in use
Reply With Quote
  #3   (View Single Post)  
Old 1 Week Ago
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,306
Default

The mpd package comes with a default '/etc/mpd.conf which starts the mpd daemon. If you review /etc/mpd.conf, you will see that it's places most of it files (including the Music directory) in /var and defaults to localhost.

For local use, rename /etc/mpd.conf -> /etc/mpd.backup. If you followed my post, you should have created a local .mpd/mpd.conf that creates a unix socket. Also, no need for "doas".
If mpd is started by a user, it will be able to access the users home directory. If you copy/paste my post, it should work.

Last edited by shep; 1 Week Ago at 08:40 PM.
Reply With Quote
  #4   (View Single Post)  
Old 6 Days Ago
stanl stanl is offline
Real Name: Stan
Port Guard
 
Join Date: Jun 2019
Posts: 29
Default

Shep - I pkg_deleted everything and then added it all back to start fresh.
I followed your instructions and everything is now working.
Not sure where I screwed up first time around but I thank you for your time.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ncmpcpp does not open? ucharfli OpenBSD Packages and Ports 11 26th September 2017 10:10 PM


All times are GMT. The time now is 01:16 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick