[solved] mpd + ympd -- ympd web says 'not authorized' / ympd logs show fail to connect

Creating a bug report/issue

:check_box_with_check: I have searched the existing open and closed issues

Required Information

  • DietPi version 10.0.1 / master
  • Distro version: trixie 1
  • Kernel version: Linux DietPi 6.12.62+rpt-rpi-v6 #1 Raspbian 1:6.12.62-1+rpt1 (2025-12-18) armv6l GNU/Linux
  • Architecture armhf
  • SBC model: RPi B / RPi Zero W
  • Power supply used: 5A USB
  • SD card used: SanDisk 16 GB

Additional Information (if applicable)

Steps to reproduce

  1. Install fresh MPD and ympd
  2. Confirm MPD OK by playing music from any other MPD client
  3. Attempt to control MPD via ympd’s http://diept:1337/

Expected behaviour

  • YMPD’s web tool says ‘connected’ and then shows MPD library and current play queue

Actual behaviour

  • YMPD Web says ‘connected’ once, then all other actions have a status block ‘not authorized’
  • YMPD’s log files show `MPD connection: no such file or directory / MPD connection failed.

Extra details

  • The MPD suite is socket-activated by systemd but the ypmd.service file depends on ympd.service and not ympd.socket. Changing the ympd.service dependency so that ympd service runs only after systemd has created the required /run/mpd/socket file allows ympd to connect and control the mpd service.
  • I’ve made a PR for this small change.
  • Thanks to the community and to Micha for this great project.

I recommend staying on Github with this. Just to keep everything on one place mpd + ympd -- ympd web says 'not authorized' / ympd logs show fail to connect by k3ninho · Pull Request #7986 · MichaIng/DietPi · GitHub