From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze)
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 37083@debbugs.gnu.org
Subject: [bug#37083] [PATCH 0/1] (Help needed!) machine: Implement 'digital-ocean-environment-type'.
Date: Sat, 21 Sep 2019 16:56:36 -0400 [thread overview]
Message-ID: <87y2yh5px7.fsf@sdf.lonestar.org> (raw)
In-Reply-To: <87y2yy7f64.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 08 Sep 2019 21:37:23 +0200")
[-- Attachment #1.1: Type: text/plain, Size: 1357 bytes --]
Hey Ludovic,
Ludovic Courtès <ludo@gnu.org> writes:
> Presumably there’s more than one service of type
> ‘shepherd-root-service-type’ in the ‘services’ field? Let me know if I
> can help.
Sorry about how long this has been taking, I've been plucking away at it
on the weekends, but I've reached the point where I have to admit that
I'm stuck and I really need help if I'm ever going to finish this.
I have this procedure to create a static networking service for the
Digital Ocean droplet based on an API response:
(define (add-static-networking target network)
"Return an <operating-system> based on TARGET with a static networking
configuration for the public IPv4 network described by the alist NETWORK."
(operating-system
(inherit (machine-operating-system target))
(services (cons (static-networking-service "eth0"
(assoc-ref network "ip_address")
#:netmask (assoc-ref network "netmask")
#:gateway (assoc-ref network "gateway")
#:name-servers '("84.200.69.80" "84.200.70.40"))
(operating-system-services
(machine-operating-system target))))))
And when this operating system is deployed with the basic SSH
environment-type, I get the following backtrace:
[-- Attachment #1.2: backtrace --]
[-- Type: text/plain, Size: 1335 bytes --]
Backtrace:
6 (apply-smob/1 #<catch-closure 23ab600>)
In ice-9/boot-9.scm:
705:2 5 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
619:8 4 (_ #(#(#<directory (guile-user) 24a1140>)))
In guix/ui.scm:
1692:12 3 (run-guix-command _ . _)
In guix/store.scm:
623:10 2 (call-with-store _)
In srfi/srfi-1.scm:
640:9 1 (for-each #<procedure 4fbf800 at guix/scripts/deploy.s…> …)
In guix/scripts/deploy.scm:
96:20 0 (_ _)
guix/scripts/deploy.scm:96:20: Throw to key `srfi-34' with args `(#<condition %compound [service: #<<service> type: #<service-type openssh 4246960> value: #<<openssh-configuration> openssh: #<package openssh@8.0p1 gnu/packages/ssh.scm:165 3315210> pid-file: "/var/run/sshd.pid" port-number: 22 permit-root-login: #t allow-empty-passwords?: #f password-authentication?: #t public-key-authentication?: #t x11-forwarding?: #f allow-agent-forwarding?: #t allow-tcp-forwarding?: #t gateway-ports?: #f challenge-response-authentication?: #f use-pam?: #t print-last-log?: #t subsystems: (("sftp" "internal-sftp")) accepted-environment: () log-level: info extra-content: "" authorized-keys: () %auto-start?: #t>> target-type: #<service-type shepherd-root 2c4ac30> message: "more than one target service of type 'shepherd-root'"] 5579510>)'.
[-- Attachment #1.3: Type: text/plain, Size: 168 bytes --]
I have no idea where to begin with this. Why would the OpenSSH service
be giving me this "more than one target service of type 'shepherd-root'"
error?
Regards,
Jakob
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2019-09-21 20:57 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-19 16:41 [bug#37083] [PATCH 0/1] (Help needed!) machine: Implement 'digital-ocean-environment-type' Jakob L. Kreuze
2019-08-19 16:43 ` [bug#37083] [PATCH 1/1] " Jakob L. Kreuze
2019-08-27 10:38 ` [bug#37083] [PATCH 0/1] (Help needed!) " Ludovic Courtès
2019-09-04 12:08 ` Ludovic Courtès
2019-09-05 14:15 ` Jakob L. Kreuze
2019-09-07 20:10 ` Jakob L. Kreuze
2019-09-08 19:37 ` Ludovic Courtès
2019-09-21 20:56 ` Jakob L. Kreuze [this message]
2019-09-23 8:24 ` Ludovic Courtès
2019-09-28 20:46 ` Jakob L. Kreuze
2019-09-28 20:47 ` [bug#37083] [PATCH] " Jakob L. Kreuze
2019-09-28 22:36 ` Ludovic Courtès
2019-10-13 10:56 ` Ludovic Courtès
2019-10-22 16:34 ` Ludovic Courtès
2019-10-22 20:56 ` Jakob L. Kreuze
2019-10-23 9:42 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y2yh5px7.fsf@sdf.lonestar.org \
--to=zerodaysfordays@sdf.lonestar.org \
--cc=37083@debbugs.gnu.org \
--cc=ludo@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 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).