You are not logged in.

#1 2014-06-21 04:02:30

badministrator
Member
Registered: 2014-05-27
Posts: 19

[Solved] mpd + ncmpcpp "no database"

I installed MPD and Ncmpcpp according to this tutorial.

http://archerbase.wordpress.com/2009/12 … rch-linux/

When I run ncmpcpp however, it displays nothing and does not show any music. It displays 'no database' in the bottom left corner.

When I type @ to bring up MPD server info it says Last DB update: 01/01/1970 10:00:00 AM

Here is my mpd.conf file stored at /home/badmin/.mpd/mpd.conf

music_directory		"~/Music"
playlist_directory		"~/.mpd/playlists"
db_file			"~/.mpd/mpd.db"
log_file			"~/.mpd/mpd.log"
pid_file			"~/.mpd/mpd.pid"
state_file			"~/.mpd/mpdstate"
user				"badmin"
#
audio_output {
	type		"alsa"
	name 		"My ALSA Device"
}

My ncmpcpp config is /home/badmin/.ncmpcpp/config

mpd_music_dir = "/home/badmin/Music"  

Are there any other configuration files I need to worry about?

How do I get ncmpcpp to show my music?

Last edited by badministrator (2014-06-21 04:43:07)

Offline

#2 2014-06-21 04:11:22

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

Re: [Solved] mpd + ncmpcpp "no database"

Try changing your mpd.conf to read:

music_directory		"/home/badmin/Music"

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-06-21 04:21:34

badministrator
Member
Registered: 2014-05-27
Posts: 19

Re: [Solved] mpd + ncmpcpp "no database"

Changed "~/Music" to "/home/badmin/Music" but still will not find music.

In some panels of ncmpcpp it will say "Database update finished!" but others wills say "no database".

MPD server info still says Songs in Database: 0
and Last DB update: 01/01/1970 10:00:00 AM

Offline

#4 2014-06-21 04:27:19

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [Solved] mpd + ncmpcpp "no database"

I believe the path for the mpd config has changed:

mpd(1) wrote:

       MPD searches for a config  file  in  $XDG_CONFIG_HOME/mpd/mpd.conf
       then ~/.mpdconf then /etc/mpd.conf or uses CONF_FILE.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2014-06-21 04:32:13

badministrator
Member
Registered: 2014-05-27
Posts: 19

Re: [Solved] mpd + ncmpcpp "no database"

I saw that on the wiki. I'm not too sure what that means though. Where do I need to move my config file?

Offline

#6 2014-06-21 04:37:21

badministrator
Member
Registered: 2014-05-27
Posts: 19

Re: [Solved] mpd + ncmpcpp "no database"

So I copied everything that was in my ~/.mpd/ to my .config/mpd/ it is still exactly the same though.

Offline

#7 2014-06-21 04:42:49

badministrator
Member
Registered: 2014-05-27
Posts: 19

Re: [Solved] mpd + ncmpcpp "no database"

So I installed ncmpcpp-git from the AUR fixed everything although at the moment I have config files at ~/.mpd and ~/.conf/mpd and am not sure where it's reading it from.

Offline

#8 2014-06-21 04:47:38

okubax
Member
From: Kent, UK.
Registered: 2010-04-24
Posts: 210
Website

Re: [Solved] mpd + ncmpcpp "no database"

/DELETED. Didin't see the solved tag

Last edited by okubax (2014-06-21 04:49:31)

Offline

#9 2014-06-21 05:40:07

bwmcn
Member
From: TN, USA
Registered: 2013-11-15
Posts: 9

Re: [Solved] mpd + ncmpcpp "no database"

badministrator wrote:

I have config files at ~/.mpd and ~/.conf/mpd and am not sure where it's reading it from.

You can have one in either place.

According to the man page,

MPD  searches  for a config file in $XDG_CONFIG_HOME/mpd/mpd.conf then
       ~/.mpdconf then /etc/mpd.conf or uses CONF_FILE.

So, if you have a config in .config/mpd/mpd.conf, it's reading that one.


irc://irc.freenode.net/bwayne

Offline

#10 2019-06-05 12:51:01

unInstance
Member
Registered: 2018-03-08
Posts: 17

Re: [Solved] mpd + ncmpcpp "no database"

Setting $XDG_CONFIG_HOME explicitly helped me.

Offline

#11 2019-06-05 12:57:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,423

Re: [Solved] mpd + ncmpcpp "no database"

Please don't necrobump 5 year old solved threads.

Closing.

Offline

Board footer

Powered by FluxBB