Package: mpd Version: 0.22.6-1+b1 Severity: minor Hi!
Here the mpd daemon tries to start whenever *anyone* SSHes into my home server. I have a system-wide mpd running on that server, yet it still tries to start the socket service, which means that any systemd --user session is "degraded". Here's one example: anarcat@marcos:~$ systemctl list-units --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● mpd.socket loaded failed failed mpd.socket LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 2 loaded units listed. anarcat@marcos:~$ systemctl --user status mpd.socket ● mpd.socket Loaded: loaded (/home/anarcat/.config/systemd/user/mpd.socket; enabled; vendor preset: enabled) Active: failed (Result: resources) Triggers: ● mpd.service Listen: [::]:6600 (Stream) aoû 18 15:17:04 marcos systemd[1426573]: mpd.socket: Failed with result 'resources'. aoû 18 15:17:04 marcos systemd[1426573]: Failed to listen on mpd.socket. aoû 18 15:30:36 marcos systemd[1430876]: mpd.socket: Failed to create listening socket ([::]:6600): Address already in use aoû 18 15:30:36 marcos systemd[1430876]: mpd.socket: Failed to listen on sockets: Address already in use aoû 18 15:30:36 marcos systemd[1430876]: mpd.socket: Failed with result 'resources'. aoû 18 15:30:36 marcos systemd[1430876]: Failed to listen on mpd.socket. etc. The .service file also tries to start for some users: register@marcos:~$ systemctl --user list-units --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● mpd.service loaded failed failed Music Player Daemon LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 1 loaded units listed. register@marcos:~$ systemctl --user status mpd.service ● mpd.service - Music Player Daemon Loaded: loaded (/usr/lib/systemd/user/mpd.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2022-08-22 10:51:21 EDT; 18s ago Docs: man:mpd(1) man:mpd.conf(5) file:///usr/share/doc/mpd/html/user.html Process: 613776 ExecStart=/usr/bin/mpd --no-daemon (code=exited, status=1/FAILURE) Main PID: 613776 (code=exited, status=1/FAILURE) CPU: 85ms Aug 22 10:51:21 marcos systemd[613761]: Starting Music Player Daemon... Aug 22 10:51:21 marcos mpd[613776]: config_file: config parameter "id3v1_encoding" on line 470 is deprecated Aug 22 10:51:21 marcos mpd[613776]: exception: failed to open log file "/var/log/mpd/mpd.log" (config line 39): Permission denied Aug 22 10:51:21 marcos systemd[613761]: mpd.service: Main process exited, code=exited, status=1/FAILURE Aug 22 10:51:21 marcos systemd[613761]: mpd.service: Failed with result 'exit-code'. Aug 22 10:51:21 marcos systemd[613761]: Failed to start Music Player Daemon. It seems to me mpd should generally not run for any arbitrary user unless the user explicitly opted in. Maybe make it conditional on the graphical session, for example? Other packages fixed this by not enabling the service by default, see for example #1001147 and this patch: https://salsa.debian.org/go-team/packages/syncthing/-/commit/890542804f7a358bd36f86bd452845b7bc968cce Maybe we should consider the same thing here? -- System Information: Debian Release: 11.4 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable'), (1, 'unstable'), (1, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-16-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages mpd depends on: ii adduser 3.118 ii init-system-helpers 1.60 ii libadplug-2.3.3-0 2.3.3+dfsg-2 ii libao4 1.2.2+20180113-1.1 ii libasound2 1.2.4-1.1 ii libaudiofile1 0.3.6-5 ii libavahi-client3 0.8-5 ii libavahi-common3 0.8-5 ii libavcodec58 7:4.3.4-0+deb11u1 ii libavformat58 7:4.3.4-0+deb11u1 ii libavutil56 7:4.3.4-0+deb11u1 ii libbz2-1.0 1.0.8-4 ii libc6 2.31-13+deb11u3 ii libcdio-cdda2 10.2+2.0.0-1+b2 ii libcdio-paranoia2 10.2+2.0.0-1+b2 ii libcdio19 2.1.0-2 ii libchromaprint1 1.5.0-2 ii libcurl3-gnutls 7.74.0-1.3+deb11u2 ii libdbus-1-3 1.12.20-2 ii libexpat1 2.2.10-2+deb11u3 ii libfaad2 2.10.0-1 ii libflac8 1.3.3-2+deb11u1 ii libfluidsynth2 2.1.7-1.1 ii libgcc-s1 10.2.1-6 ii libgme0 0.6.3-2 ii libicu67 67.1-7 ii libid3tag0 0.15.1b-14 ii libiso9660-11 2.1.0-2 ii libixml10 1:1.8.4-2 ii libjack-jackd2-0 [libjack-0.125] 1.9.17~dfsg-1 ii libjs-sphinxdoc 3.4.3-2 ii libmad0 0.15.1b-10 ii libmikmod3 3.3.11.1-6 ii libmms0 0.6.4-3 ii libmodplug1 1:0.8.9.0-3 ii libmp3lame0 3.100-3 ii libmpcdec6 2:0.1~r495-2 ii libmpdclient2 2.19-1 ii libmpg123-0 1.26.4-1 ii libnfs13 4.0.0-1 ii libogg0 1.3.4-0.1 ii libopenal1 1:1.19.1-2 ii libopus0 1.3.1-0.1 ii libpcre3 2:8.39-13 ii libpulse0 14.2-2 ii libsamplerate0 0.2.1+ds0-1 ii libshout3 2.4.5-1+b1 ii libsidplayfp5 2.0.5-2 ii libsmbclient 2:4.13.13+dfsg-1~deb11u5 ii libsndfile1 1.0.31-2 ii libsndio7.0 1.5.0-3 ii libsoxr0 0.1.3-4 ii libsqlite3-0 3.34.1-3 ii libstdc++6 10.2.1-6 ii libsystemd0 247.3-7 ii libupnp13 1:1.8.4-2 ii liburing1 0.7-3 ii libvorbis0a 1.3.7-1 ii libvorbisenc2 1.3.7-1 ii libwavpack1 5.4.0-1 ii libwildmidi2 0.4.3-1 ii libyajl2 2.1.0-3 ii libzzip-0-13 0.13.62-3.3+deb11u1 ii lsb-base 11.1.0 ii zlib1g 1:1.2.11.dfsg-2+deb11u1 mpd recommends no packages. Versions of packages mpd suggests: ii avahi-daemon 0.8-5 ii cantata [mpd-client] 2.4.2.ds1-1 ii gmpc [mpd-client] 11.8.16-19 pn icecast2 <none> ii mpc [mpd-client] 0.33-1 ii mpdris2 [mpd-client] 0.9.1-1 ii pulseaudio 14.2-2 -- no debconf information