Closed sofad closed 1 year ago
Many thanks for your report.
The last log entry says it was started. It's probably just listening on a different port?
ss -tlpn
root@DietPi:~# ss -tlpn
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 0.0.0.0:111 0.0.0.0:* users:(("rpcbind",pid=197,fd=4),("systemd",pid=1,fd=37))
LISTEN 0 1024 0.0.0.0:80 0.0.0.0:* users:(("lighttpd",pid=508,fd=4))
LISTEN 0 128 0.0.0.0:58641 0.0.0.0:* users:(("rpc.mountd",pid=480,fd=9))
LISTEN 0 32 0.0.0.0:53 0.0.0.0:* users:(("pihole-FTL",pid=403,fd=5))
LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=377,fd=3))
LISTEN 0 255 0.0.0.0:7000 0.0.0.0:* users:(("shairport-sync",pid=376,fd=6))
LISTEN 0 64 0.0.0.0:2049 0.0.0.0:*
LISTEN 0 128 0.0.0.0:49057 0.0.0.0:* users:(("rpc.mountd",pid=480,fd=13))
LISTEN 0 128 0.0.0.0:5252 0.0.0.0:* users:(("dietpi-dashboar",pid=368,fd=6))
LISTEN 0 5 127.0.0.1:4711 0.0.0.0:* users:(("pihole-FTL",pid=403,fd=10))
LISTEN 0 5 127.0.0.1:6600 0.0.0.0:* users:(("mpd",pid=513,fd=11))
LISTEN 0 64 0.0.0.0:33129 0.0.0.0:*
LISTEN 0 128 0.0.0.0:57645 0.0.0.0:* users:(("rpc.mountd",pid=480,fd=17))
LISTEN 0 128 [::]:111 [::]:* users:(("rpcbind",pid=197,fd=6),("systemd",pid=1,fd=39))
LISTEN 0 1024 [::]:80 [::]:* users:(("lighttpd",pid=508,fd=5))
LISTEN 0 5 [fd9e:b49e:f446:4dea:ba27:ebff:fe3b:7df9]:56625 [::]:* users:(("shairport-sync",pid=376,fd=23))
LISTEN 0 32 [::]:53 [::]:* users:(("pihole-FTL",pid=403,fd=7))
LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=377,fd=4))
LISTEN 0 255 [::]:7000 [::]:* users:(("shairport-sync",pid=376,fd=7))
LISTEN 0 128 [::]:50233 [::]:* users:(("rpc.mountd",pid=480,fd=15))
LISTEN 0 64 [::]:44027 [::]:*
LISTEN 0 128 [::]:43803 [::]:* users:(("rpc.mountd",pid=480,fd=11))
LISTEN 0 64 [::]:2049 [::]:*
LISTEN 0 128 [::]:42373 [::]:* users:(("rpc.mountd",pid=480,fd=19))
LISTEN 0 5 [::1]:4711 [::]:* users:(("pihole-FTL",pid=403,fd=11))
LISTEN 0 5 [::1]:6600 [::]:* users:(("mpd",pid=513,fd=10))
LISTEN 0 5 [fd9e:b49e:f446:4dea:ba27:ebff:fe3b:7df9]:38605 [::]:* users:(("shairport-sync",pid=376,fd=20))
Okay, definitely not up. This combination of startup errors is strange as well, I didn't see this when testing last time:
Jan 21 12:54:33 DietPi systemd[1]: Starting LSB: myMPD - a standalone and mobile friendly web mpdclient...
Jan 21 12:54:33 DietPi mympd[6289]: mympd process is not running ... failed!
Jan 21 12:54:33 DietPi mympd[6289]: Starting the process: mympd.
Jan 21 12:54:33 DietPi systemd[1]: Started LSB: myMPD - a standalone and mobile friendly web mpdclient.
Okay on a fresh install, somehow the systemd unit is missing completely:
# dpkg -L mympd
/.
/etc
/etc/init.d
/etc/init.d/mympd
/usr
/usr/bin
/usr/bin/mympd
/usr/bin/mympd-script
/usr/share
/usr/share/doc
/usr/share/doc/mympd
/usr/share/doc/mympd/changelog.Debian.gz
/usr/share/doc/mympd/changelog.gz
/usr/share/doc/mympd/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/mympd-script.1.gz
/usr/share/man/man1/mympd.1.gz
Something broke with the last release yesterday, but I cannot see something related in changelog, probably a packaging bug: https://github.com/jcorporation/myMPD/releases/tag/v10.2.0
Need to check back with developer.
Sadly the repo contains only the latest release, so no downgrade possible. But you can create the unit manually:
cat << '_EOF_' > /lib/systemd/system/mympd.service
#
# SPDX-License-Identifier: GPL-3.0-or-later
# myMPD (c) 2018-2023 Juergen Mang <mail@jcgames.de>
# https://github.com/jcorporation/mympd
#
[Unit]
Description=myMPD server daemon
Documentation=man:mympd(1)
Requires=network.target local-fs.target
After=mpd.service
[Service]
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
DynamicUser=yes
ExecStart=/usr/bin/mympd
LockPersonality=yes
MemoryDenyWriteExecute=yes
PrivateDevices=yes
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectProc=invisible
RestrictRealtime=yes
StateDirectory=mympd
CacheDirectory=mympd
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
RestrictNamespaces=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
[Install]
WantedBy=multi-user.target
_EOF_
systemctl daemon-reload
systemctl restart mympd
Source: https://github.com/jcorporation/myMPD/blob/master/contrib/initscripts/mympd.service.in
Recognised and fixed a few other issues for fresh installs: https://github.com/MichaIng/DietPi/commit/4179be5
I created the unit manually, as you have explained. MyMpd 10.2.0 is running as expected again.
MichaIng, thank you very very much!
Sorry to report, myMPD has issues: Music is playing, can be skipped. But the Icons like "Search" "Artist" "Album" produce a javascript error message:
<
I'll try to replicate, but am out of houre for ~3 hours.
Sorry to report, myMPD has issues: Music is playing, can be skipped. But the Icons like "Search" "Artist" "Album" produce a javascript error message:
<
myMPD v10.2.0 has renamed some views. Please try:
This is mentioned in the release notes: https://github.com/jcorporation/myMPD/releases/tag/v10.2.0
I'll mark this as closed since the original issue is solved.
Creating a bug report/issue
Required Information
cat /boot/dietpi/.version
Additional Information (if applicable)
echo $G_HW_UUID
Steps to reproduce
Expected behaviour
mympd shoud open in browser
Actual behaviour
mympd is not reachable Tried also https://local.ip:1333 http://local.ip:1333
https://local.ip:1332 http://local.ip:1332
Extra details
If any information is needed, i'm happy to provide it. Thank you.