You are not logged in.

#1 2015-09-09 15:15:00

kron58
Member
Registered: 2015-09-09
Posts: 3

[SOLVED] mbpd + ncmpcpp updates database but doesn't find any file

So I've just reinstalled mpd and ncmpcpp after a fresh install, and it seems to be running perfectly except it doesn't find any music on my directory! Below are my mpd.conf, ncmpcpp config file and the output of mpd --no-daemon --stdout --verbose

mbpd.conf

# Files and directories #######################################################
#
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This 
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.

music_directory		"/home/kron58/Music/"

# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use 
# playlist files not created by the server but only if they are in the MPD
# format. This setting defaults to playlist saving being disabled.

playlist_directory		"/home/kron58/.mpd/playlists"

# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the 
# server is not up. This setting defaults to disabled which will allow
# MPD to accept files over ipc socket (using file:// protocol) or streaming
# files over an accepted protocol.

db_file			"/home/kron58/.mpd/database"
 
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
# settings.
#
# The special value "syslog" makes MPD use the local syslog daemon. This
# setting defaults to logging to syslog, otherwise logging is disabled.

log_file			"/home/kron58/.mpd/log"

# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default and the pid file will not be stored.

pid_file			"/home/kron58/.mpd/pid"

# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default and the server 
# state will be reset on server start up.

state_file			"/home/kron58/.mpd/state"

# The location of the sticker database.  This is a database which
# manages dynamic information attached to songs.

sticker_file			"/home/kron58/.mpd/sticker.sql"

###############################################################################


# General music daemon options ################################################
#
# This setting specifies the user that MPD will run as. MPD should never run as
# root and you may use this setting to make MPD change its user ID after
# initialization. This setting is disabled by default and MPD is run as the
# current user.
#
#user				"nobody"
#
# This setting specifies the group that MPD will run as. If not specified
# primary group of user specified with "user" setting will be used (if set).
# This is useful if MPD needs to be a member of group such as "audio" to
# have permission to use sound card.
#
#group				"nogroup"
#
# This setting sets the address for the daemon to listen on. Careful attention
# should be paid if this is assigned to anything other then the default, any.
# This setting can deny access to control of the daemon.
#
# For network
#bind_to_address		"any"
#
# And for Unix Socket
#bind_to_address		"~/.mpd/socket"
#
# This setting is the TCP port that is desired for the daemon to get assigned
# to.

port				"6600"

# This setting controls the type of information which is logged. Available 
# setting arguments are "default", "secure" or "verbose". The "verbose" setting
# argument is recommended for troubleshooting, though can quickly stretch
# available resources on limited hardware storage.
#
log_level			"default"
#
# If you have a problem with your MP3s ending abruptly it is recommended that 
# you set this argument to "no" to attempt to fix the problem. If this solves
# the problem, it is highly recommended to fix the MP3 files with vbrfix
# (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point gapless MP3 playback can be enabled.
#
#gapless_mp3_playback			"yes"
#
# Setting "restore_paused" to "yes" puts MPD into pause mode instead
# of starting playback after startup.
#
#restore_paused "no"
#
# This setting enables MPD to create playlists in a format usable by other
# music players.
#
#save_absolute_paths_in_playlists	"no"
#
# This setting defines a list of tag types that will be extracted during the
# audio file discovery process. The complete list of possible values can be
# found in the mpd.conf man page.
#metadata_to_use	"artist,album,title,track,name,genre,date,composer,performer,disc"
#
# This setting enables automatic update of MPD's database when files in 
# music_directory are changed.
#
auto_update	"yes"
#
# Limit the depth of the directories being watched, 0 means only watch
# the music directory itself.  There is no limit by default.
#
#auto_update_depth "3"
#
###############################################################################

ncmpcpp config

##### directories ######
##
## Directory for storing ncmpcpp related files.
## Changing it is useful if you want to store
## everything somewhere else and provide command
## line setting for alternative location to config
## file which defines that while launching ncmpcpp.
##

ncmpcpp_directory = /home/kron58/.ncmpcpp

##
## Directory for storing downloaded lyrics. It
## defaults to ~/.lyrics since other MPD clients
## (eg. ncmpc) also use that location.
##

lyrics_directory = ~/.lyrics

##### connection settings #####

mpd_host = localhost

mpd_port = 6600

mpd_connection_timeout = 5

## Needed for tag editor and file operations to work.

mpd_music_dir = /home/kron58/Music/

mpd_crossfade_time = 5

the command's output

config_file: loading file /home/kron58/.mpd/mpd.conf
server_socket: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
path: SetFSCharset: fs charset is: UTF-8
libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
vorbis: Xiph.Org libVorbis 1.3.5
opus: libopus 1.1
sndfile: libsndfile-1.0.25
db: reading DB
output: No 'AudioOutput' defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
output: Successfully detected a alsa audio device
curl: version 7.44.0
curl: with OpenSSL/1.0.2d
avahi: Initializing interface
avahi: Client changed to state 2
avahi: Client is RUNNING
avahi: Registering service _mpd._tcp/Music Player
avahi: Service group changed to state 0
avahi: Service group is UNCOMMITED
state_file: Loading state file /home/kron58/.mpd/state
inotify: initializing inotify
inotify: watching music directory
avahi: Service group changed to state 1
avahi: Service group is REGISTERING
avahi: Service group changed to state 2
avahi: Service 'Music Player' successfully established.
client: [0] opened from [::1]:35783
client: [0] process command list
client: process command update 
update: spawned thread for update job id 1
client: command returned 0
client: [0] process command list returned 0
update: starting
client: [0] process command list
client: process command status
update: finished
client: command returned 0
client: process command currentsong
client: command returned 0
client: [0] process command list returned 0
client: [0] closed
client: [1] opened from [::1]:35784
client: [1] process command status
client: [1] command returned 0
client: [1] process command lsinfo /
client: [1] command returned 0
client: [1] process command plchanges 0
client: [1] command returned 0
client: [1] process command outputs
client: [1] command returned 0
client: [1] process command decoders
client: [1] command returned 0
client: [1] process command outputs
client: [1] command returned 0
client: [1] process command outputs
client: [1] command returned 0
client: [1] process command idle
client: [1] command returned 1
client: [1] process command update /
update: spawned thread for update job id 2
client: [1] command returned 0
update: starting
client: [1] process command idle
client: [1] command returned 1
update: finished
client: [1] process command status
client: [1] command returned 0
client: [1] process command idle
client: [1] command returned 1
client: [1] process command status
client: [1] command returned 0
client: [1] process command idle
client: [1] command returned 1
client: [1] process command update /
update: spawned thread for update job id 3
client: [1] command returned 0
update: starting
client: [1] process command idle
client: [1] command returned 1
update: finished
client: [1] process command status
client: [1] command returned 0
client: [1] process command idle
client: [1] command returned 1
client: [1] process command status
client: [1] command returned 0
client: [1] process command idle
client: [1] command returned 1
client: [1] closed

In this command's output client [0] is mpc update running, and client [1] is ncmpcpp in which I clicked u to update a few times.

Last edited by kron58 (2015-09-09 17:08:58)

Offline

#2 2015-09-09 16:32:12

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] mbpd + ncmpcpp updates database but doesn't find any file

do you already have a database file?
try to delete it and run the verbose command again, to see if mpd is actually adding things

also: what kind of files. are those properly stored in your homedir or are they network mounts?

Last edited by Rasi (2015-09-09 16:32:53)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#3 2015-09-09 16:43:53

kron58
Member
Registered: 2015-09-09
Posts: 3

Re: [SOLVED] mbpd + ncmpcpp updates database but doesn't find any file

I have done as you said and deleted the database file, then i killed the mpd process and did the verbose command once again this was the output

config_file: loading file /home/kron58/.mpd/mpd.conf
server_socket: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
path: SetFSCharset: fs charset is: UTF-8
libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
vorbis: Xiph.Org libVorbis 1.3.5
opus: libopus 1.1
sndfile: libsndfile-1.0.25
errno: Failed to open /home/kron58/.mpd/database: No such file or directory
output: No 'AudioOutput' defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
output: Successfully detected a alsa audio device
curl: version 7.44.0
curl: with OpenSSL/1.0.2d
avahi: Initializing interface
avahi: Client changed to state 2
avahi: Client is RUNNING
avahi: Registering service _mpd._tcp/Music Player
avahi: Service group changed to state 0
avahi: Service group is UNCOMMITED
update: spawned thread for update job id 1
state_file: Loading state file /home/kron58/.mpd/state
update: starting
inotify: initializing inotify
inotify: watching music directory
update: reading /test1.mp3
avahi: Service group changed to state 1
avahi: Service group is REGISTERING
update: added /test1.mp3
update: reading /test2.mp3
update: added /test2.mp3
simple_db: removing empty directories from DB
simple_db: sorting DB
simple_db: writing DB
update: finished
avahi: Service group changed to state 2
avahi: Service 'Music Player' successfully established.

I noticed that this time it read, and added the test files I had on the Music folder, however when I opened ncmpcpp there were no files again.
I tried updating it when ncmpcpp but nothing happened.

Offline

#4 2015-09-09 17:03:20

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] mbpd + ncmpcpp updates database but doesn't find any file

when you open ncmpcpp what you see is the playback queue. you need to add files from library to this queue.

Hit '4' and it will open your library. as long as your files are tagged, they will appear here.
if they are not tagged, you can still add them from screen '2' (directory browser)

most importantly: read the help (F1)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#5 2015-09-09 17:09:34

kron58
Member
Registered: 2015-09-09
Posts: 3

Re: [SOLVED] mbpd + ncmpcpp updates database but doesn't find any file

Thanks adding them from the directory browser worked!

Offline

Board footer

Powered by FluxBB