You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

MPD故障排查:运行ncmpcpp无音乐显示,寻求技术帮助

问题描述

运行ncmpcpp时无法显示音乐,用户级MPD服务状态正常,但手动执行mpd --verbose --stdout --no-daemon命令后得到以下输出:

mpd --verbose --stdout --no-daemon
config_file: loading file /home/woutd/.config/mpd/mpd.conf
libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
vorbis: Xiph.Org libVorbis 1.3.7
opus: libopus 1.3.1
sndfile: libsndfile-1.2.0
hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
simple_db: reading DB
input: Input plugin 'qobuz' is not configured: No Qobuz app_id configured
curl: version 7.87.0
curl: with OpenSSL/3.0.7
state_file: Loading state file /home/woutd/.mpd/mpdstate
event: RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
client: [0] opened from 127.0.0.1:42672
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "currentsong"
client: [0] command returned 0
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "idle"
client: [0] command returned 1
client: [0] process command "idle"
client: [0] command returned 1
^Cstate_file: Saving state file /home/woutd/.mpd/mpdstate
fifo_output: Removing FIFO "/tmp/mpd.fifo"
排查方案
  • 检查MPD配置文件/home/woutd/.config/mpd/mpd.conf中的music_directory配置项,确认路径指向你的音乐文件夹,且MPD进程对该路径拥有读取权限。
  • 手动触发MPD扫描音乐库:执行mpc update命令,或在ncmpcpp中按下U键触发库更新。
  • 验证MPD数据库状态:查看/home/woutd/.mpd/tag_cache文件(或配置中指定的数据库路径),若文件为空,说明音乐库未被正确扫描,需重新触发更新。
  • 核对ncmpcpp配置:确保~/.config/ncmpcpp/config中的连接参数(如mpd_host、mpd_port)与MPD配置完全一致,且music_directory也匹配MPD的设置。
  • 日志中RTIOThread实时调度失败、qobuz插件未配置的提示属于非功能性警告,不会影响音乐库加载,可忽略。

内容的提问来源于stack exchange,提问作者Engineer

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.02 11:31:01