You are not logged in.

#1 2015-10-01 03:18:13

anshi
Member
Registered: 2015-10-01
Posts: 3

Ncmpcpp - No Active MPD connection

Heya, I have mpd setup and it's running without an apparent problem, but when I startup ncmpcpp I get "no such file or directory", and "no active mpd connection" when I go to some tabs.

This is my /etc/mpd.conf

 music_directory      "/home/anshi/musics"                                        
playlist_directory   "/home/anshi/.mpd/playlists"                                
db_file        "/home/anshi/.mpd/mpd.db"                                        
log_file    "/home/anshi/.mpd/mpd.log"                                          
pid_file    "/home/anshi/.mpd/mpd.pid"                                          
state_file     "/home/anshi/.mpd/mpdstate"    
user          "anshi" 
bind_to_address         "127.0.0.1"                                            
port           "6600"                                                                                                         
gapless_mp3_playback    "yes"                                                  
save_absolute_paths_in_playlists "yes"                                          
restore_paused "yes"                                                            
metadata_to_use   "artist,album,title,name,genre,date,composer,performer"      
follow_outside_symlinks "yes"                                                  
follow_inside_symlinks     "yes"  
audio_output {                                                                
  type     "alsa"                                                              
  name     "My ALSA Device"                                                                                             
}    

and my ~/.ncmpcpp/config file

mpd_host = "127.0.0.1"
mpd_port = "6600"
mpd_music_dir = "/home/anshi/musics"

I've tried running it on localhost too but same issue, obviously. "pidof mpd" does return an ID when running.

The files in .mpd specified are all there.

Last edited by anshi (2015-10-01 03:19:56)

Offline

#2 2015-10-01 07:18:49

Hwiparam
Member
From: Poland
Registered: 2011-09-26
Posts: 94

Re: Ncmpcpp - No Active MPD connection

Does it work properly with other (Sonata/Cantata) clients?
Have you tried configuring MPD not system-widely but locally?
https://wiki.archlinux.org/index.php/Mu … er_user.29

Last edited by Hwiparam (2015-10-01 07:41:46)

Offline

#3 2015-10-01 07:51:48

anshi
Member
Registered: 2015-10-01
Posts: 3

Re: Ncmpcpp - No Active MPD connection

Hwiparam wrote:

Does it work properly with other (Sonata/Cantata) clients?
Have you tried configuring MPD not system-widely but locally?
https://wiki.archlinux.org/index.php/Mu … er_user.29

Nope, it doesn't work with Sonata, no connection and no such file or directory. I switched over to local config according to the wiki you linked as I've done a few times and yeah same error.

Offline

#4 2015-10-01 07:55:30

anshi
Member
Registered: 2015-10-01
Posts: 3

Re: Ncmpcpp - No Active MPD connection

Fixed it, environment variables weren't set

I set them with

MPD_HOST=127.0.0.1
MPD_PORT=6600

Last edited by anshi (2015-10-01 07:55:40)

Offline

Board footer

Powered by FluxBB