* bug#22626: Postgres service fails on adding user
@ 2016-02-11 0:13 Christopher Allan Webber
2016-02-11 7:44 ` Efraim Flashner
2016-02-11 10:07 ` Ludovic Courtès
0 siblings, 2 replies; 6+ messages in thread
From: Christopher Allan Webber @ 2016-02-11 0:13 UTC (permalink / raw)
To: 22626
[-- Attachment #1: Type: text/plain, Size: 1786 bytes --]
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
Backtrace:
In ice-9/boot-9.scm:
63: 19 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
432: 18 [eval # #]
In ice-9/boot-9.scm:
2401: 17 [save-module-excursion #<procedure 28dc940 at ice-9/boot-9.scm:4045:3 ()>]
4050: 16 [#<procedure 28dc940 at ice-9/boot-9.scm:4045:3 ()>]
1724: 15 [%start-stack load-stack ...]
1729: 14 [#<procedure 28f3ea0 ()>]
In unknown file:
?: 13 [primitive-load "/gnu/store/24mbii9wjlyzfzsqwfmcvz6vz2fv5n6g-guix-0.9.0.c3f29bc/bin/.guix-real"]
In guix/ui.scm:
1177: 12 [run-guix-command system "reconfigure" "guix-config.scm"]
In ice-9/boot-9.scm:
157: 11 [catch srfi-34 #<procedure 4fb2020 at guix/ui.scm:413:2 ()> ...]
157: 10 [catch system-error ...]
In guix/scripts/system.scm:
701: 9 [process-action reconfigure ("guix-config.scm") ...]
In guix/store.scm:
1061: 8 [run-with-store # ...]
In guix/scripts/system.scm:
520: 7 [#<procedure 91f6f80 at guix/scripts/system.scm:520:13 (state)> #]
302: 6 [#<procedure 9661740 at guix/scripts/system.scm:286:2 (state)> #]
In unknown file:
?: 5 [primitive-load "/gnu/store/fnanaa7xalxa9h3yh1hpj3m5zgm9wasp-activate"]
In ice-9/eval.scm:
432: 4 [eval # ()]
In ice-9/boot-9.scm:
768: 3 [for-each #<procedure primitive-load (_)> #]
In unknown file:
?: 2 [primitive-load "/gnu/store/hz2hnin6c12afvsyqxv0vs2rndxl9vpg-activate-servic
e"]
In ice-9/eval.scm:
411: 1 [eval # ()]
In unknown file:
?: 0 [getpw "postgres"]
ERROR: In procedure getpw:
ERROR: In procedure getpw: entry not found
Config attached. Thanx!
- cwebb
[-- Attachment #2: guix-config.scm --]
[-- Type: application/octet-stream, Size: 2656 bytes --]
;; This is an operating system configuration template
;; for a "desktop" setup with X11.
(use-modules (gnu) (gnu system nss)
(gnu packages linux))
(use-service-modules desktop databases)
(use-package-modules xfce certs pulseaudio)
(operating-system
(host-name "oolong")
(timezone "America/Los_Angeles")
(locale "en_US.UTF-8")
(kernel linux-libre-4.1)
;; Assuming /dev/sdX is the target hard disk, and "root" is
;; the label of the target root file system.
(bootloader (grub-configuration
(device "/dev/sda")))
(mapped-devices (list (mapped-device
(source "/dev/sda8")
(target "home-luks")
(type luks-device-mapping))))
(file-systems `(,(file-system
(device "guix")
(title 'label)
(mount-point "/")
(type "ext4"))
,(file-system
(device "/dev/mapper/home-luks")
(mount-point "/home")
(type "ext4"))
,(file-system
(device "debian")
(title 'label)
(mount-point "/mnt/debian")
(type "ext4"))
;;; Not quite the right way to mount this...
;; ,(file-system
;; (device "/dev/disk/by-uuid/e9b11604-c044-400b-9dd5-97b40158a928")
;; (title 'label)
;; (mount-point "/mnt/backup")
;; (type "ext4")
;; (mount? #f))
,@%base-file-systems))
(users (cons (user-account
(name "cwebber")
(uid 1000)
(comment "Christopher Allan Webber")
(group "cwebber")
(supplementary-groups '("users"
"wheel" "netdev"
"audio" "video"))
(home-directory "/home/cwebber"))
%base-user-accounts))
(groups (cons (user-group
(name "cwebber")
(id 1000))
%base-groups))
;; Add Xfce and Ratpoison; that allows us to choose
;; sessions using either of these at the log-in screen.
(packages (cons* xfce ;desktop environments
nss-certs ;for HTTPS access
pulseaudio
%base-packages))
;; Use the "desktop" services, which include the X11
;; log-in service, networking with Wicd, and more.
(services (cons*
(postgresql-service)
%desktop-services))
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss))
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#22626: Postgres service fails on adding user
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
1 sibling, 0 replies; 6+ messages in thread
From: Efraim Flashner @ 2016-02-11 7:44 UTC (permalink / raw)
To: Christopher Allan Webber; +Cc: 22626
[-- Attachment #1: Type: text/plain, Size: 2391 bytes --]
On Wed, 10 Feb 2016 16:13:19 -0800
Christopher Allan Webber <cwebber@dustycloud.org> wrote:
> 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
> Backtrace:
> In ice-9/boot-9.scm:
> 63: 19 [call-with-prompt prompt0 ...]
> In ice-9/eval.scm:
> 432: 18 [eval # #]
> In ice-9/boot-9.scm:
> 2401: 17 [save-module-excursion #<procedure 28dc940 at ice-9/boot-9.scm:4045:3 ()>]
> 4050: 16 [#<procedure 28dc940 at ice-9/boot-9.scm:4045:3 ()>]
> 1724: 15 [%start-stack load-stack ...]
> 1729: 14 [#<procedure 28f3ea0 ()>]
> In unknown file:
> ?: 13 [primitive-load "/gnu/store/24mbii9wjlyzfzsqwfmcvz6vz2fv5n6g-guix-0.9.0.c3f29bc/bin/.guix-real"]
> In guix/ui.scm:
> 1177: 12 [run-guix-command system "reconfigure" "guix-config.scm"]
> In ice-9/boot-9.scm:
> 157: 11 [catch srfi-34 #<procedure 4fb2020 at guix/ui.scm:413:2 ()> ...]
> 157: 10 [catch system-error ...]
> In guix/scripts/system.scm:
> 701: 9 [process-action reconfigure ("guix-config.scm") ...]
> In guix/store.scm:
> 1061: 8 [run-with-store # ...]
> In guix/scripts/system.scm:
> 520: 7 [#<procedure 91f6f80 at guix/scripts/system.scm:520:13 (state)> #]
> 302: 6 [#<procedure 9661740 at guix/scripts/system.scm:286:2 (state)> #]
> In unknown file:
> ?: 5 [primitive-load "/gnu/store/fnanaa7xalxa9h3yh1hpj3m5zgm9wasp-activate"]
> In ice-9/eval.scm:
> 432: 4 [eval # ()]
> In ice-9/boot-9.scm:
> 768: 3 [for-each #<procedure primitive-load (_)> #]
> In unknown file:
> ?: 2 [primitive-load "/gnu/store/hz2hnin6c12afvsyqxv0vs2rndxl9vpg-activate-servic
> e"]
> In ice-9/eval.scm:
> 411: 1 [eval # ()]
> In unknown file:
> ?: 0 [getpw "postgres"]
>
> ERROR: In procedure getpw:
> ERROR: In procedure getpw: entry not found
>
> Config attached. Thanx!
> - cwebb
>
I noticed that you use the postgresql-service, by any chance did you try
again after the fix to the service by Danny Milosavljevic in bug#22618?
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#22626: Postgres service fails on adding user
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
1 sibling, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2016-02-11 10:07 UTC (permalink / raw)
To: Christopher Allan Webber; +Cc: 22626
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?
(When testing in ‘guix system vm’, everything works well.)
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#22626: Postgres service fails on adding user
2016-02-11 10:07 ` Ludovic Courtès
@ 2016-02-11 17:44 ` Christopher Allan Webber
2016-02-11 22:36 ` Ludovic Courtès
0 siblings, 1 reply; 6+ messages in thread
From: Christopher Allan Webber @ 2016-02-11 17:44 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 22626
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.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
adding user 'ntpd'...
useradd: existing lock file /etc/group.lock without a PID
useradd: cannot lock /etc/group; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: no changes
usermod: no changes
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
usermod: existing lock file /etc/shadow.lock without a PID
usermod: cannot lock /etc/shadow; try again later.
adding user 'postgres'...
useradd: group 'postgres' does not exist
Anyway /etc/group does not show postgres but I suppose it wouldn't
without the "guix system reconfigure" succeeding?
> (When testing in ‘guix system vm’, everything works well.)
I can't tell whether or not "guix system vm" would be fine; I assume it
probably would because I got to the point where qemu must have been
invoked, since my system crashed. See my last bug.
It definitely does not work with "guix system reconfigure" though.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#22626: Postgres service fails on adding user
2016-02-11 17:44 ` Christopher Allan Webber
@ 2016-02-11 22:36 ` Ludovic Courtès
2016-02-11 23:07 ` Christopher Allan Webber
0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2016-02-11 22:36 UTC (permalink / raw)
To: Christopher Allan Webber; +Cc: 22626
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’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#22626: Postgres service fails on adding user
2016-02-11 22:36 ` Ludovic Courtès
@ 2016-02-11 23:07 ` Christopher Allan Webber
0 siblings, 0 replies; 6+ messages in thread
From: Christopher Allan Webber @ 2016-02-11 23:07 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 22626-done
Ludovic Courtès writes:
> 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?
Well, that fixed it! I guess I could have guessed by the context clues
being dumped into stdout... :)
Anyway, closed!
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-02-11 23:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-02-11 23:07 ` Christopher Allan Webber
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).