You are not logged in.
Pages: 1
Hello, I've been fiddling a while with both and been through a fair few threads without much luck.
MPD: I cannot get ncmpcpp to work with it.
Well, that's a bit of a lie, I've had it working twice. It then stopped working. My issue is that it reads as there being no database.
$ mpc ls|mpc add
mpd error: No database
$ sudo systemctl status mpd
● mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/mpd.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-06-09 03:07:09 UTC; 2min 18s ago
Docs: man:mpd(1)
man:mpd.conf(5)
Main PID: 2958 (mpd)
Tasks: 3 (limit: 4915)
Memory: 7.3M
CGroup: /system.slice/mpd.service
└─2958 ● mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/mpd.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-06-09 03:07:09 UTC; 2min 18s ago
Docs: man:mpd(1)
man:mpd.conf(5)
Main PID: 2958 (mpd)
Tasks: 3 (limit: 4915)
Memory: 7.3M
CGroup: /system.slice/mpd.service
└─2958 /usr/bin/mpd --no-daemon
Jun 09 03:07:21 archport mpd[2958]: client: [2] closed
Jun 09 03:07:49 archport mpd[2958]: client: [3] opened from local
Jun 09 03:07:49 archport mpd[2958]: client: [3] closed
Jun 09 03:09:02 archport mpd[2958]: client: [4] opened from local
Jun 09 03:09:02 archport mpd[2958]: exception: No database
Jun 09 03:09:02 archport mpd[2958]: client: [4] closed
Jun 09 03:09:02 archport mpd[2958]: client: [5] opened from local
Jun 09 03:09:02 archport mpd[2958]: client: [5] closed
Jun 09 03:09:19 archport mpd[2958]: client: [6] opened from local
Jun 09 03:09:19 archport mpd[2958]: client: [6] closed/usr/bin/mpd --no-daemon
Jun 09 03:07:21 archport mpd[2958]: client: [2] closed
Jun 09 03:07:49 archport mpd[2958]: client: [3] opened from local
Jun 09 03:07:49 archport mpd[2958]: client: [3] closed
Jun 09 03:09:02 archport mpd[2958]: client: [4] opened from local
Jun 09 03:09:02 archport mpd[2958]: exception: No database
Jun 09 03:09:02 archport mpd[2958]: client: [4] closed
Jun 09 03:09:02 archport mpd[2958]: client: [5] opened from local
Jun 09 03:09:02 archport mpd[2958]: client: [5] closed
Jun 09 03:09:19 archport mpd[2958]: client: [6] opened from local
Jun 09 03:09:19 archport mpd[2958]: client: [6] closed
$ sudo pkill mpd
$ sudo systemctl stop mpd.service
Warning: Stopping mpd.service, but it can still be activated by:
mpd.socket
$ sudo systemctl start mpd.service
$ sudo systemctl status mpd.service
● mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/mpd.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2019-06-09 03:11:46 UTC; 9s ago
Docs: man:mpd(1)
man:mpd.conf(5)
Main PID: 3064 (mpd)
Tasks: 3 (limit: 4915)
Memory: 7.2M
CGroup: /system.slice/mpd.service
└─3064 /usr/bin/mpd --no-daemon
Jun 09 03:11:46 archport mpd[3064]: oss_output: Error opening OSS device "/dev/dsp": No such file or directory
Jun 09 03:11:46 archport mpd[3064]: oss_output: Error opening OSS device "/dev/sound/dsp": No such file or directory
Jun 09 03:11:46 archport mpd[3064]: output: Attempting to detect a solaris audio device
Jun 09 03:11:46 archport mpd[3064]: output: Attempting to detect a pulse audio device
Jun 09 03:11:46 archport mpd[3064]: output: Attempting to detect a jack audio device
Jun 09 03:11:46 archport mpd[3064]: output: Successfully detected a jack audio device
Jun 09 03:11:46 archport mpd[3064]: exception: Input plugin 'tidal' is unavailable: No Tidal application token configured
Jun 09 03:11:46 archport mpd[3064]: exception: Input plugin 'qobuz' is unavailable: No Qobuz app_id configured
Jun 09 03:11:46 archport mpd[3064]: zeroconf: No global port, disabling zeroconf
Jun 09 03:11:46 archport systemd[1]: Started Music Player Daemon.
$ mpc ls|mpc add
mpd error: No database
mpd.conf:
music_directory "/store/music"
playlist_directory "~/.config/mpd/playlists"
db_file "~/.config/mpd/database"
log_file "~/.config/mpd/log"
pid_file "~/.config/mpd/pid"
state_file "~/.config/mpd/state"
sticker_file "~/.config/mpd/sticker.sql"
restore_paused "yes"
save_absolute_paths_in_playlists "yes"
auto_update "yes"
bind_to_address "127.0.0.1"
max_output_buffer_size "16384"
audio_output {
type "pulse"
name "pulse audio"
mixer_type "software"
}
audio_output {
type "fifo"
name "toggle_visualizer"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
ncmpcpp config:
ncmpcpp_directory = /home/vofan/.config/ncmpcpp
lyrics_directory = /home/vofan/.config/lyrics
mpd_host = localhost
mpd_port = 6600
mpd_music_dir = "/store/music"
visualizer_type = spectrum
message_delay_time = 1
song_list_format = {$4%a - }{%t}|{$8%f$9}$R{$3(%l)$9}
song_status_format = $b{{$8"%t"}} $3by {$4%a{ $3in $7%b{ (%y)}} $3}|{$8%f}
song_library_format = {%n - }{%t}|{%f}
alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b
alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}
current_item_prefix = $(cyan)$r$b
current_item_suffix = $/r$(end)$/b
current_item_inactive_column_prefix = $(magenta)$r
current_item_inactive_column_suffix = $/r$(end)
playlist_display_mode = columns
browser_display_mode = columns
progressbar_look = ->
media_library_primary_tag = album_artist
media_library_album_split_by_date = no
startup_screen = media_library
display_volume_level = no
ignore_leading_the = yes
external_editor = vim
use_console_editor = yes
empty_tag_color = magenta
main_window_color = white
progressbar_color = black:b
progressbar_elapsed_color = blue:b
statusbar_color = red
statusbar_time_color = cyan:b
As I said, I have had it working, but upon rebooting/going off and doing other things (I didn't really pay attention..) twice, it broke upon my return.
Thanks a lot for taking the time.
Last edited by Vofan (2019-06-09 04:58:53)
Offline
Please edit your post and remove the fontconfig material: that is a separate question
https://wiki.archlinux.org/index.php/Co … ow_to_post
As for mpd. Make sure it is stopped and run `mpd --no-daemon --stdout --verbose`
Offline
Edited. Sorry for forgetting the one-topic-per-thread rule.
I effectively received:
Failed to bind to '127.0.0.1:6600': Address already in use
And for [::]:6600
As outlined in this thread https://bbs.archlinux.org/viewtopic.php?id=120371 . I think I had forgotten to stop mpd.socket, however.
Upon changing bind_to_address to "any" and rerunning after killing everything, it works, with originally very long output (I had let it run, and by the time it had run, my terminal history wasn't long enough for me to copy, so I stopped, reran). ncmpcpp shows connection refused, however.
config_file: loading file /home/vofan/.config/mpd/mpd.conf
exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address already in use
libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
vorbis: Xiph.Org libVorbis 1.3.6
opus: libopus 1.3.1
sndfile: libsndfile-1.0.28
hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
wildmidi: configuration file does not exist: /etc/timidity/timidity.cfg
simple_db: reading DB
exception: Input plugin 'tidal' is unavailable: No Tidal application token configured
exception: Input plugin 'qobuz' is unavailable: No Qobuz app_id configured
curl: version 7.65.0
curl: with OpenSSL/1.1.1c
avahi: Initializing interface
exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
avahi: Client changed to state 101
avahi: Client is CONNECTING
state_file: Loading state file /home/vofan/.config/mpd/state
inotify: initializing inotify
inotify: watching music directory
Offline
Oh, well, duh, that's because --no-daemon?
Stopped, reran. Going to try a reboot.
Offline
After rebooting I receive the no database error again.
$ ps aux | grep mpd
mpd 1050 1.9 0.4 321716 37440 ? Ssl 03:57 0:01 /usr/bin/mpd --no-daemon
vofan 2945 0.0 0.0 6276 2280 pts/0 S+ 03:58 0:00 grep --color=auto mpd
$ sudo pkill mpd && sudo systemctl stop mpd.service && sudo systemctl stop mpd.socket
$ mpd --no-daemon --stdout --verbose
config_file: loading file /home/vofan/.config/mpd/mpd.conf
exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address already in use
libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
vorbis: Xiph.Org libVorbis 1.3.6
opus: libopus 1.3.1
sndfile: libsndfile-1.0.28
hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
wildmidi: configuration file does not exist: /etc/timidity/timidity.cfg
simple_db: reading DB
exception: Input plugin 'tidal' is unavailable: No Tidal application token configured
exception: Input plugin 'qobuz' is unavailable: No Qobuz app_id configured
curl: version 7.65.0
curl: with OpenSSL/1.1.1c
avahi: Initializing interface
exception: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
avahi: Client changed to state 101
avahi: Client is CONNECTING
state_file: Loading state file /home/vofan/.config/mpd/state
inotify: initializing inotify
inotify: watching music directory
Offline
Why aren't you running the service as --user?
Offline
Why aren't you running the service as --user?
I hadn't read the systemctl man page close enough, sorry. Hm. It is mentioned briefly on the mpd archwiki page, but not on the systemd page, I guess this is why I've missed this til now. Thanks a whole lot.
I'll mark as solved. The only slight annoyance is that my login and startx now hang for a few seconds. I can live with this, but I don't know if there's a way around it?
If it helps, I start mpd by
mpd >/dev/null 2>&1 &
mpdupdate &
in my .xinitrc.
Offline
Don't start it in your .xinitrc: use the --user service file.
Offline
Pages: 1