From: ludo@gnu.org (Ludovic Courtès)
To: Christopher Allan Webber <cwebber@dustycloud.org>
Cc: 22626@debbugs.gnu.org
Subject: bug#22626: Postgres service fails on adding user
Date: Thu, 11 Feb 2016 23:36:11 +0100 [thread overview]
Message-ID: <871t8ikh7o.fsf@gnu.org> (raw)
In-Reply-To: <87io1vqgzz.fsf@dustycloud.org> (Christopher Allan Webber's message of "Thu, 11 Feb 2016 09:44:16 -0800")
Christopher Allan Webber <cwebber@dustycloud.org> skribis:
> Ludovic Courtès writes:
>
>> Christopher Allan Webber <cwebber@dustycloud.org> skribis:
>>
>>> Heya all... guix system config attached. I tried doing a guix system
>>> reconfigure and it failboat'ed. Here's what happened:
>>>
>>> adding user 'postgres'...
>>> useradd: group 'postgres' does not exist
>>
>> Normally just above that there should be:
>>
>> adding group 'postgres'
>>
>> Could it be that adding the group silently failed? What does /etc/group
>> shows?
>
> Well, it looks like it does do that. I didn't show my full output
> because there's a lot of garbage... maybe it turns out that this garbage
> is related:
>
> The following derivation will be built:
> /gnu/store/kil0p7xg6qrvvkf3mp0j0xii09s1cqx7-grub.cfg.drv
> /gnu/store/qsgrb7inl2mkrnccxf524faqax63dbs4-system
> /gnu/store/1b31ydr0yrc3jdl6i4chaccsbapzq0m5-grub.cfg
> /gnu/store/sx2xqvr3s033bl60s09zs6jjbs73n791-grub-2.00
> activating system...
> setting up setuid programs in '/run/setuid-programs'...
> populating /etc from /gnu/store/piaczch5x7vczy9z7yjq4z8631rh828p-etc...
> usermod: existing lock file /etc/shadow.lock without a PID
> usermod: cannot lock /etc/shadow; try again later.
> adding group 'postgres'...
> groupadd: existing lock file /etc/group.lock without a PID
> groupadd: cannot lock /etc/group; try again later.
Apparently there’s a stale lock file that prevents ‘groupadd’ from
succeeding, maybe from an earlier crash or something?
Could you forcefully remove /etc/*.lock and retry?
> Anyway /etc/group does not show postgres but I suppose it wouldn't
> without the "guix system reconfigure" succeeding?
At this point, /run/current-system has been successfully updated; the
only thing that hasn’t been done yet is updating the GRUB menu.
Thanks,
Ludo’.
next prev parent reply other threads:[~2016-02-11 22:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-11 0:13 bug#22626: Postgres service fails on adding user Christopher Allan Webber
2016-02-11 7:44 ` Efraim Flashner
2016-02-11 10:07 ` Ludovic Courtès
2016-02-11 17:44 ` Christopher Allan Webber
2016-02-11 22:36 ` Ludovic Courtès [this message]
2016-02-11 23:07 ` Christopher Allan Webber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871t8ikh7o.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=22626@debbugs.gnu.org \
--cc=cwebber@dustycloud.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.