Skip to content

mpd + ympd -- ympd web says 'not authorized' / ympd logs show fail to connect#7986

Merged
MichaIng merged 10 commits intoMichaIng:devfrom
k3ninho:patch-1
Feb 26, 2026
Merged

mpd + ympd -- ympd web says 'not authorized' / ympd logs show fail to connect#7986
MichaIng merged 10 commits intoMichaIng:devfrom
k3ninho:patch-1

Conversation

@k3ninho
Copy link
Contributor

@k3ninho k3ninho commented Feb 26, 2026

ympd fails to connect to mpd when After=mpd.service allows it to start as soon as mpd.service is running. Changing here to depend on After=mpd.socket ensures that ympd will start and connect only when systemd has created /run/mpd/socket.

Feb 26 12:32:17 DietPi ympd[8052]: MPD connection: No such file or directory
Feb 26 12:32:18 DietPi ympd[8052]: MPD connection failed.
[repeats]

becomes:

Feb 26 12:33:39 DietPi systemd[1]: Started ympd.service - ympd (DietPi).
Feb 26 12:33:43 DietPi ympd[8167]: MPD connected.

MichaIng and others added 7 commits February 17, 2026 22:33
URL check and fallback updates
`ympd` fails to connect to `mpd` when `After=mpd.service` allows it to start as soon as mpd.service is running. Changing here to depend on `After=mpd.socket` ensures that `ympd` will start and connect only when `systemd` has created `/run/mpd/socket`.

```
Feb 26 12:32:17 DietPi ympd[8052]: MPD connection: No such file or directory
Feb 26 12:32:18 DietPi ympd[8052]: MPD connection failed.
[repeats]
```
becomes:
```
Feb 26 12:33:39 DietPi systemd[1]: Started ympd.service - ympd (DietPi).
Feb 26 12:33:43 DietPi ympd[8167]: MPD connected.
```
@k3ninho k3ninho changed the title Patch 1 mpd + ympd -- ympd web says 'not authorized' / ympd logs show fail to connect Feb 26, 2026
@MichaIng MichaIng added this to the v10.2 milestone Feb 26, 2026
k3ninho and others added 3 commits February 26, 2026 17:05
Re-add trailing newline on UNIX:

Co-authored-by: MichaIng <micha@dietpi.com>
make the systemd unit expect both mpd.service and mpd.socket

Co-authored-by: MichaIng <micha@dietpi.com>
@MichaIng MichaIng merged commit d3aeac1 into MichaIng:dev Feb 26, 2026
1 check passed
@k3ninho k3ninho deleted the patch-1 branch February 26, 2026 19:58
@MichaIng MichaIng mentioned this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants