mpd-service-type needs a pre-existing user in system and does not works with a new user defined in config.scm

  • Done
  • quality assurance status badge
Details
3 participants
  • Leo Famulari
  • Bruno Victal
  • R Veera Kumar
Owner
unassigned
Submitted by
R Veera Kumar
Severity
normal

Debbugs page

R Veera Kumar wrote 5 years ago
(address . bug-guix@gnu.org)
20200412042515.GA3430@tulip
Hi,

This is to report:
mpd-service-type needs a pre-existing user in system and does not works
with a new user defined in config.scm. Running guix system reconfigure
gives some getpw error.

Guix system reconfigure works fine if we add temporarily a user with useradd.

Thanks,
Veera
Leo Famulari wrote 5 years ago
(name . R Veera Kumar)(address . vkor@vkten.in)(address . 40567@debbugs.gnu.org)
20200529022757.GK5443@jasmine.lan
On Sun, Apr 12, 2020 at 09:55:15AM +0530, R Veera Kumar wrote:
Toggle quote (7 lines)
> This is to report:
> mpd-service-type needs a pre-existing user in system and does not works
> with a new user defined in config.scm. Running guix system reconfigure
> gives some getpw error.
>
> Guix system reconfigure works fine if we add temporarily a user with useradd.

I suppose the service was written with the assumption that one would
choose their own user as the MPD user, since they likely own the music
library.

We could make the MPD service extend accounts-service-type to handle
user accounts for a "system user" but it depends on the expectations of
MPD users, or at least people using this service.

At least, we could add a more informative error message.
Bruno Victal wrote 2 years ago
(name . R Veera Kumar)(address . vkor@vkten.in)(address . 40567-done@debbugs.gnu.org)
4f766d9e-1b1d-8903-ad1c-573c1078f11b@makinata.eu
Hi Veera,

On 2020-04-12 05:25, R Veera Kumar wrote:
Toggle quote (12 lines)
> Hi,
>
> This is to report:
> mpd-service-type needs a pre-existing user in system and does not works
> with a new user defined in config.scm. Running guix system reconfigure
> gives some getpw error.
>
> Guix system reconfigure works fine if we add temporarily a user with useradd.
>
> Thanks,
> Veera

This bug no longer applies as mpd-service-type has gone through some refactorings in the meantime.
Worth noting is that mpd-service-type isn't meant to be used with interactive user-accounts, for
such cases a home service variant should be used instead.


Cheers,
Bruno
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 40567@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 40567
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help