You are not logged in.
Pages: 1
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! ![]()
Offline
mpc updateYou probably should name that output.
Last edited by emeres (2014-08-23 17:12:47)
Offline
Paste your service file...
Offline
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
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
You should be enabling mpd@.service...
Offline
Ok, quick update, I tried the following:
mpd --kill
mpd --no-daemon --stdout --verboseand 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 permittedOffline
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...
Offline
Pages: 1