From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#22626: Postgres service fails on adding user Date: Thu, 11 Feb 2016 23:36:11 +0100 Message-ID: <871t8ikh7o.fsf@gnu.org> References: <8760xwhzpt.fsf@dustycloud.org> <87io1vtv9n.fsf@gnu.org> <87io1vqgzz.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTzrF-0005JL-BF for bug-guix@gnu.org; Thu, 11 Feb 2016 17:37:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTzrB-0006AY-VH for bug-guix@gnu.org; Thu, 11 Feb 2016 17:37:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:56113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTzrB-0006AU-RM for bug-guix@gnu.org; Thu, 11 Feb 2016 17:37:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aTzrB-0004q5-Kj for bug-guix@gnu.org; Thu, 11 Feb 2016 17:37:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87io1vqgzz.fsf@dustycloud.org> (Christopher Allan Webber's message of "Thu, 11 Feb 2016 09:44:16 -0800") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Christopher Allan Webber Cc: 22626@debbugs.gnu.org Christopher Allan Webber skribis: > Ludovic Court=C3=A8s writes: > >> Christopher Allan Webber 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=E2=80=99s a stale lock file that prevents =E2=80=98groupad= d=E2=80=99 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=E2=80=99t been done yet is updating the GRUB menu. Thanks, Ludo=E2=80=99.