* bug#24390: VM with postgres service broken in master
@ 2016-09-07 18:51 Jan Nieuwenhuizen
2016-11-01 21:02 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Jan Nieuwenhuizen @ 2016-09-07 18:51 UTC (permalink / raw)
To: 24390
[-- Attachment #1: Type: text/plain, Size: 1118 bytes --]
Hi!
Building a VM with postgres service like so (pg.scm attached)
guix system vm pg.scm --expose=$HOME --share=$HOME/tmp=/exchange
on master @22 August
e8bb433 gnu: Add kmscon.
results in run-vm.sh that boots fine doing
/gnu/store/0d28hg2ms78wciiwlq1ic1sk1i98vdd8-run-vm.sh -enable-kvm -m 2G -net nic,model=virtio -redir tcp:2223::2222 -redir -redir tcp:5433::5432 &
Creating the same vm with today's master
392a4e1 guix hash: Add --exclude-vcs option.
and running it
/gnu/store/fikrcvp5bz1f8f152hgrn94lx677s95l-run-vm.sh -enable-kvm -m 2G -net nic,model=virtio -redir tcp:2223::2222 -redir tcp:5433::5432 &
breaks like so (copied manually from graphical qemu box)
Adding user guixbuilder10...
Adding user postgres...
ERROR: In procedure system*:
ERROR: Wrong type (expecting string): #t
...
In ./gnu/build/activation.scm:
...
152:20 (add-user "postgres" "postgres" #:uid #f #:comment "Po#" #)
In unknown file:
0 (system* "useradd" "-g" "postgres" "-c" "PostgresSQL" se#" #)
I'm not sure how to debug this further.
Greetings,
Jan
[-- Attachment #2: pg.scm --]
[-- Type: application/octet-stream, Size: 1202 bytes --]
(use-modules (gnu))
(use-service-modules
base
databases
networking
ssh)
(use-package-modules
databases
linux
networking
ssh)
(define %user (getenv "USER"))
(operating-system
(host-name "postgres")
(timezone "Europe/Amsterdam")
(locale "en_US.UTF-8")
(bootloader (grub-configuration
(device "/dev/sda")))
(file-systems
(cons*
(file-system (device "guix")
(title 'label)
(mount-point "/")
(type "ext4"))
%base-file-systems))
(groups (cons*
(user-group (name %user))
%base-groups))
(users
(cons* (user-account (name %user)
(group %user)
(password (crypt "" "xx"))
(uid 1000)
(supplementary-groups '("wheel"))
(home-directory (string-append "/home/" %user)))
%base-user-accounts))
(services (cons*
(dhcp-client-service)
(lsh-service #:port-number 2222
#:allow-empty-passwords? #t
#:root-login? #t)
(postgresql-service)
%base-services)))
[-- Attachment #3: Type: text/plain, Size: 154 bytes --]
--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#24390: VM with postgres service broken in master
2016-09-07 18:51 bug#24390: VM with postgres service broken in master Jan Nieuwenhuizen
@ 2016-11-01 21:02 ` Ludovic Courtès
2017-09-30 7:38 ` Jan Nieuwenhuizen
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2016-11-01 21:02 UTC (permalink / raw)
To: Jan Nieuwenhuizen; +Cc: 24390
Hello!
Jan Nieuwenhuizen <janneke@gnu.org> skribis:
> Creating the same vm with today's master
>
> 392a4e1 guix hash: Add --exclude-vcs option.
>
> and running it
>
> /gnu/store/fikrcvp5bz1f8f152hgrn94lx677s95l-run-vm.sh -enable-kvm -m 2G -net nic,model=virtio -redir tcp:2223::2222 -redir tcp:5433::5432 &
>
> breaks like so (copied manually from graphical qemu box)
>
> Adding user guixbuilder10...
> Adding user postgres...
> ERROR: In procedure system*:
> ERROR: Wrong type (expecting string): #t
> ...
> In ./gnu/build/activation.scm:
> ...
> 152:20 (add-user "postgres" "postgres" #:uid #f #:comment "Po#" #)
> In unknown file:
> 0 (system* "useradd" "-g" "postgres" "-c" "PostgresSQL" se#" #)
Sorry for not answering earlier. I cannot reproduce it with
v0.11.0-2111-g85533e2 and with the config you sent.
Could you check on your side?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-09-30 7:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-07 18:51 bug#24390: VM with postgres service broken in master Jan Nieuwenhuizen
2016-11-01 21:02 ` Ludovic Courtès
2017-09-30 7:38 ` Jan Nieuwenhuizen
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.