FS#42114 - [mpd] failed to start with systemd --user

Attached to Project: Arch Linux
Opened by yk (radc) - Thursday, 25 September 2014, 12:53 GMT
Last edited by Gaetan Bisson (vesath) - Thursday, 25 September 2014, 19:28 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
After update, mpd failed to start with systemd --user.

Additional info:
[2014-09-25 14:11] [PACMAN] upgraded mpd (0.18.14-2 -> 0.18.14-3)

systemd log:
Sep 25 19:30:12 local systemd[878]: Starting Music Player Daemon...
Sep 25 19:30:12 local systemd[878]: Started Music Player Daemon.
Sep 25 19:30:12 local systemd[881]: Failed at step GROUP spawning /usr/bin/mpd: Operation not permitted
Sep 25 19:30:12 local systemd[878]: mpd.service: main process exited, code=exited, status=216/GROUP
Sep 25 19:30:12 local systemd[878]: Unit mpd.service entered failed state.

Steps to reproduce:
systemctl --user start mpd.service

Solution:
I delete the line
User=mpd
in /usr/lib/systemd/user/mpd.service.
And no more fails.

That line is not supposed to be there, right?

More info:
https://projects.archlinux.org/svntogit/packages.git/diff/trunk/PKGBUILD?h=packages/mpd&id=e6f144a29d5204a8b5c435ea72ad5ac1125272df
This task depends upon

Closed by  Gaetan Bisson (vesath)
Thursday, 25 September 2014, 19:28 GMT
Reason for closing:  Fixed
Additional comments about closing:  mpd-0.18.14-4
Comment by Makpoc (Makpoc) - Thursday, 25 September 2014, 14:56 GMT
Hi,

I can confirm the problem AND the solution.

Thanks @yk
Comment by nfnty (nfnty) - Thursday, 25 September 2014, 18:03 GMT
Fixed with attached patch.
Comment by Gaetan Bisson (vesath) - Thursday, 25 September 2014, 19:23 GMT
Ah, my mistake, I sed'd the wrong service file! Yesterday was really not my day...

Loading...