From: Jan Nieuwenhuizen <janneke@gnu.org>
To: 24390@debbugs.gnu.org
Subject: bug#24390: VM with postgres service broken in master
Date: Wed, 07 Sep 2016 20:51:01 +0200 [thread overview]
Message-ID: <87mvjjwnl6.fsf@gnu.org> (raw)
[-- 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
next reply other threads:[~2016-09-07 18:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-07 18:51 Jan Nieuwenhuizen [this message]
2016-11-01 21:02 ` bug#24390: VM with postgres service broken in master Ludovic Courtès
2017-09-30 7:38 ` Jan Nieuwenhuizen
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=87mvjjwnl6.fsf@gnu.org \
--to=janneke@gnu.org \
--cc=24390@debbugs.gnu.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.