From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +BDYAifObWFHgwAAgWs5BA (envelope-from ) for ; Mon, 18 Oct 2021 21:42:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gFeFOSbObWEcCQAA1q6Kng (envelope-from ) for ; Mon, 18 Oct 2021 19:42:30 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4FB83362E7 for ; Mon, 18 Oct 2021 21:42:29 +0200 (CEST) Received: from localhost ([::1]:54394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcYWh-0001Mb-Dl for larch@yhetil.org; Mon, 18 Oct 2021 15:42:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcYWI-0001MD-Ik for bug-guix@gnu.org; Mon, 18 Oct 2021 15:42:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37093) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcYWI-0000iM-9t for bug-guix@gnu.org; Mon, 18 Oct 2021 15:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mcYWI-0008WE-6Q for bug-guix@gnu.org; Mon, 18 Oct 2021 15:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50977: digital-ocean-environment-type fails References: In-Reply-To: Resent-From: Franz Geffke Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 18 Oct 2021 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50977 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50977@debbugs.gnu.org Received: via spool by 50977-submit@debbugs.gnu.org id=B50977.163458606732647 (code B ref 50977); Mon, 18 Oct 2021 19:42:02 +0000 Received: (at 50977) by debbugs.gnu.org; 18 Oct 2021 19:41:07 +0000 Received: from localhost ([127.0.0.1]:48639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcYVL-0008UR-8h for submit@debbugs.gnu.org; Mon, 18 Oct 2021 15:41:07 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:49961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcYVG-0008TJ-9f for 50977@debbugs.gnu.org; Mon, 18 Oct 2021 15:41:02 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id BB2B05811E2 for <50977@debbugs.gnu.org>; Mon, 18 Oct 2021 15:40:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 18 Oct 2021 15:40:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantherx.org; h= date:from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=fm1; bh=lX/KCtf99Iz+l6w556O+ZqqFce RMWVM+U4wDBCn/c3o=; b=wU8jjwQ6uh38Pn2A2BOgS/BAV2I3vuWbSmiDxPkPvF UWwP9Lm/n1kZ3rc5j2WtT9sKavJ4loJaAb/MgsqdGSALTjrC6O5HwVQAEfbNVWQj H8tma6YHS+cLjmX3k6glcVMG3Y12XYb4/w+StRchuMty16HzlL2qt4gGTwz/7QJp n5vuCSJ6EjVfQ7OB2Fb0D89lfh8yp1r25u95fQ9b7nZZkex43HQl8P8WoKMlhCqi BGTOfGX1cJZIyZXxNp/dFo3Rd6Owy+tX55hMIaRAv6eLcNj17zdjWeyrYBjqT2IY TRM85s/+TtY5dQlLMh0EIup22luYZ9fZSSyOiQVegSMQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=lX/KCt f99Iz+l6w556O+ZqqFceRMWVM+U4wDBCn/c3o=; b=LltMP4s4ZPFmu0L6xqeRts IVlPE8EZePyakrPpiXMhSH+9Gjx7YOdXf9SULbPdKCWZCdZ7vnNG8DlX49bHKnVk FlEOqLdwc5xY7cL/EwFGQwTfEZVTNXAR01a1qwiBh8ET67V099+Co2EztHDK45sk +xYFRIYcLL/O7apoml/JOn6AMsTbvjXM2e126w61IuCEhFah9PGXorMQh5g3Unrv 7kxI0zoWNiCHiHcRtP9D1CcisWTFQIkthtnurNmKCWKjNz8XVoP3FAprmwai+CHb QODucpMViE7oVnSyRmQzYb3NH33zUBY+u1SswrS2rUVTCNfdkL7u4w94GL1bjEfQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvtddgudefiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecuoggkgeduledqudeihedqqhhurgculdeftddtmd enucfjughrpeffhffvuffkohfogggtgfesthejredtredtvdenucfhrhhomhephfhrrghn iicuifgvfhhfkhgvuceofhhrrghniiesphgrnhhthhgvrhigrdhorhhgqeenucggtffrrg htthgvrhhnpeevvedtueevueduvdduvdfhjeeuvefgteegieelueevffeuieeifeelvdeu jefffeenucffohhmrghinhepghhnuhdrohhrghdpohhrghdrphhusgdpudeiledrvdehge drudeiledrvdehgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehfrhgrnhiisehprghnthhhvghrgidrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <50977@debbugs.gnu.org>; Mon, 18 Oct 2021 15:40:51 -0400 (EDT) Date: Mon, 18 Oct 2021 20:40:47 +0100 From: Franz Geffke Message-ID: <20211018204047.0473e078@pantherx.org> Organization: PantherX X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.24; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634586150; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lX/KCtf99Iz+l6w556O+ZqqFceRMWVM+U4wDBCn/c3o=; b=OanUUAh5Yi0T9f9g1hyyJ3S168E3LbBozCVxZhB0tYNv5+cnmdK3PJHL5jTPr3ULKxs4IB qjvc7v99WKFy7ilBHs0UERlEOA+MXVnf3/fIkzX4YmIeZp+OjxYnAvHlbFGfvYqx63M8Ib YNAvIFe7IomFhE3/Shg1LNfFPLAHqBiFlp2C84gD9o+/vrYToudgLX2NFftZ19H/nEHDIU lJdIfwBgfaxXTtED8EPmByX5Cmpe9OItGN82QwkIo4ogviaB9RLwt2cM4YdgEqTV2yV/S9 285RWp87DEjHTnlxXJLYb9OypOUWZArBw6Ubz+Z+49wBzMgKMZeku4b2x4FuFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634586150; a=rsa-sha256; cv=none; b=pZFvFKJEFnH982wDxqZOCge0qaxXpiXpnxkpZaYATa0wD8LP1Nwhs0WOnj5uhaGHVJGRy9 6vRxjrx57z8fPMa15jiHh3wvJ71q5tHxF1QQqmy0xUQ8/XjJgTh5Ycs5tT2NjdxHSjXH75 ohuymxIE/GaoIsilSwUxTjhlEtR140usW0L7qswMQrJNbzDhkQ2B4JVMJnBAgbE1MB/mkX fJ7cvZI5rfj7jqHYCROONrDLYHM2Ap+VzShVPQ6eKfpLu6/gdWr8GK29RsdSAgnzl/f8VG 4BpLboqp9TaCAZ5ZnXT3n3w4Wkk0XBuF2wEA86xzZXvF8VXZBAizpzv5X53mlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pantherx.org header.s=fm1 header.b=wU8jjwQ6; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=LltMP4s4; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pantherx.org header.s=fm1 header.b=wU8jjwQ6; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=LltMP4s4; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 4FB83362E7 X-Spam-Score: -0.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: ClD43VXc58FH I've done some more digging. There are various issues with the script that actually converts the Debian 9 Droplet to Guix. 1. The SSL certificates of gnu.org fail on Debian 9 (since end of Sep). This appears to be related to a change in LetsEncrypt root certificates 2. The guix binary used is rather old I don't have time to submit a merge request now. I have adapted the included script to work on Debian 9 (uncomment 1x line), 11 and Ubuntu 21.04. This should be good until the bug has been resolved. ``` #!/bin/bash # Guix 1.3.0 on DigitalOcean # Convert Debian 11 or Ubuntu 21.04 ###### MODIFY TIMEZONE="Europe/Berlin" LOCALE="en_US.utf8" USERNAME="guix" USER_COMMENT="guix's account" USER_PASSWORD="Gq2M6JqNS2W6mgkY" ###### MODIFY END CONFIG=/etc/bootstrap-config.scm CRYPT='$6$abc' apt-get update -y apt-get install curl xz-utils -y # Uncomment this for Debian 9 # sed -i '/^mozilla\/DST_Root_CA_X3/s/^/!/' /etc/ca-certificates.conf && update-ca-certificates -f wget https://ftp.gnu.org/gnu/guix/guix-binary-1.3.0.x86_64-linux.tar.xz cd /tmp tar --warning=no-timestamp -xf ~/guix-binary-1.3.0.x86_64-linux.tar.xz mv var/guix /var/ && mv gnu / mkdir -p ~root/.config/guix ln -sf /var/guix/profiles/per-user/root/current-guix ~root/.config/guix/current export GUIX_PROFILE="`echo ~root`/.config/guix/current" ; source $GUIX_PROFILE/etc/profile groupadd --system guixbuild for i in `seq -w 1 10`; do useradd -g guixbuild -G guixbuild \ -d /var/empty -s `which nologin` \ -c "Guix build user $i" --system \ guixbuilder$i; done; cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service /etc/systemd/system/ systemctl start guix-daemon && systemctl enable guix-daemon mkdir -p /usr/local/bin cd /usr/local/bin ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix mkdir -p /usr/local/share/info cd /usr/local/share/info for i in /var/guix/profiles/per-user/root/current-guix/share/info/*; do ln -s $i; done guix archive --authorize < ~root/.config/guix/current/share/guix/ci.guix.gnu.org.pub # guix pull guix package -i glibc-utf8-locales export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale" guix package -i openssl HOSTNAME=$(curl -s http://169.254.169.254/metadata/v1/hostname) PUBLIC_IPV4=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address) NETMASK=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/netmask) GATEWAY=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/gateway) function write_server_config() { cat >> $CONFIG <