You are not logged in.

#1 2014-08-23 15:50:12

tmette
Member
From: USA
Registered: 2013-09-10
Posts: 24

Nothing showing in ncmcpp Library

I just got done installing mpd and ncmcpp. Trying to set this up for my first time. I've edited my mpd.conf like so:

music_directory "/home/tmette/music" # where you store your music
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
error_file "~/.mpd/mpd.error"
pid_file "~/.mpd/mpd.pid"
state_file "~/.mpd/mpdstate"
user "todd"

audio_output {
type "alsa"

}

I also edited the /.ncmcpp/conf file like this:

mpd_music_dir = "/home/tmette/music"

Running "systemctl status mpd.service", it says it's running but there's no database. It also says "No Database" in the Library view of ncmcpp. How do I go about getting the DB created? I was using a tutorial found online but it's really outdated and still used the "mpd --create-db" command.

Any help would be greatly appreciated! smile

Offline

#2 2014-08-23 17:02:17

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Nothing showing in ncmcpp Library

mpc update

You probably should name that output.

Last edited by emeres (2014-08-23 17:12:47)

Offline

#3 2014-08-23 19:01:13

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

Re: Nothing showing in ncmcpp Library

Paste your service file...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-08-24 02:24:54

Proinsias
Member
From: Glasgow
Registered: 2013-08-19
Posts: 121

Re: Nothing showing in ncmcpp Library

The autostart with systemd per user section of the wiki might be worth a look.  The wiki metions you should not set the user in the mpd.conf, or start the mpd  service as a root user in these cases. Perhaps disable/stop the systemd services and just start mpd by typing 'mpd' or 'mpd /path/to/mpd/config" for testing.

https://wiki.archlinux.org/index.php/Mp … th_systemd

Last edited by Proinsias (2014-08-24 02:25:52)

Offline

#5 2014-08-28 23:46:24

tmette
Member
From: USA
Registered: 2013-09-10
Posts: 24

Re: Nothing showing in ncmcpp Library

Sorry for the extremely late reply, I've been out of town unexpectedly. I ran "mpc update" and got "error: already updating".

I enabled it with systemd and when checking the status I get:

* mpd.service - Music Player Daemon
   Loaded: loaded (/usr/lib/systemd/system/mpd.service; enabled)
   Active: active (running) since Thu 2014-08-28 18:37:47 CDT; 2s ago
 Main PID: 1991 (mpd)
   CGroup: /system.slice/mpd.service
           `-1991 /usr/bin/mpd --no-daemon

Aug 28 18:37:48 csm101 mpd[1991]: server_socket: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because bi...ucceeded)
Aug 28 18:37:48 csm101 mpd[1991]: main: Found db_file setting without music_directory - disabling database
Aug 28 18:37:48 csm101 mpd[1991]: output: No 'audio_output' defined in config file
Aug 28 18:37:48 csm101 mpd[1991]: output: Attempt to detect audio output device
Aug 28 18:37:48 csm101 mpd[1991]: output: Attempting to detect a alsa audio device
Aug 28 18:37:48 csm101 mpd[1991]: Home directory not accessible: Permission denied
Aug 28 18:37:48 csm101 mpd[1991]: output: Successfully detected a alsa audio device
Aug 28 18:37:48 csm101 mpd[1991]: state_file: failed to open /var/lib/mpd/mpdstate: No such file or directory
Hint: Some lines were ellipsized, use -l to show in full.

Offline

#6 2014-08-28 23:50:14

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

Re: Nothing showing in ncmcpp Library

You should be enabling mpd@.service...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-08-29 00:59:20

tmette
Member
From: USA
Registered: 2013-09-10
Posts: 24

Re: Nothing showing in ncmcpp Library

Ok, quick update, I tried the following:

mpd --kill
mpd --no-daemon --stdout --verbose

and got:

config_file: loading file /etc/mpd.conf
server_socket: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
fatal_error: Failed to set group 45: Operation not permitted

Offline

#8 2014-08-29 01:18:16

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

Re: Nothing showing in ncmcpp Library

As I said in the post above, if you are wanting to run mpd as your user (as your .conf file suggests), then you need to set set it up to do just that...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB