From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Vollmert Subject: bug#36855: guix system switch-generation doesn't Date: Tue, 6 Aug 2019 23:21:40 +0200 Message-ID: <3F889811-B4FA-415F-B4C0-7994DD00A968@vllmrt.net> References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@vllmrt.net> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42535) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hv6v9-0007Lj-PW for bug-guix@gnu.org; Tue, 06 Aug 2019 17:23:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hv6v8-00081R-HK for bug-guix@gnu.org; Tue, 06 Aug 2019 17:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57324) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hv6v8-00081J-AR for bug-guix@gnu.org; Tue, 06 Aug 2019 17:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hv6v8-00074z-50 for bug-guix@gnu.org; Tue, 06 Aug 2019 17:23:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:42354) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hv6u6-0007Hi-Kl for bug-guix@gnu.org; Tue, 06 Aug 2019 17:21:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hv6u4-0007hQ-6i for bug-guix@gnu.org; Tue, 06 Aug 2019 17:21:57 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:18020) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hv6u3-0007gd-BJ for bug-guix@gnu.org; Tue, 06 Aug 2019 17:21:55 -0400 In-Reply-To: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@vllmrt.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 36855@debbugs.gnu.org Cc: GitHub Developer Support Could we get some input on this bug? Maybe I=E2=80=99m misunderstanding something, but it seems that a core = guix feature (atomic rollbacks) doesn=E2=80=99t work=E2=80=A6 > On 30. Jul 2019, at 12:00, Robert Vollmert wrote: >=20 > What I see: >=20 > 1. edit ~/pzprnode/pzprnode >=20 > rob@garp ~/pzprnode$ git diff > diff --git a/pzprnode b/pzprnode > index 612e6a8..d8ef0ea 100755 > --- a/pzprnode > +++ b/pzprnode > @@ -190,5 +190,6 @@ const server =3D http.createServer((req, res) =3D> = { > }); >=20 > server.listen(port, hostname, () =3D> { > + console.log("updated version"); > console.log(`Server running at http://${hostname}:${port}/`); > }); >=20 > 2. sudo guix system reconfigure -L ~/garp-config = ~/garp-config/config.scm > 3. sudo herd restart pzprnode > 4. less /var/log/messages >=20 > Jul 30 11:46:57 localhost shepherd[1]: Service pzprnode has been = stopped.=20 > Jul 30 11:46:57 localhost shepherd[1]: Service pzprnode has been = started.=20 > Jul 30 11:46:58 localhost pzprnode[4954]: updated version=20 > Jul 30 11:46:58 localhost pzprnode[4954]: Server running at = http://127.0.0.1:3456/=20 >=20 > 5. sudo guix system list-generations >=20 > Generation 151 Jul 30 2019 10:37:06 > file name: /var/guix/profiles/system-151-link > canonical file name: = /gnu/store/jis33accsfpa068aps0a9mrycmjzfm4m-system > label: GNU with Linux-Libre 5.2.1 > bootloader: grub > root device: label: "guix-root" > kernel: = /gnu/store/fp6wsvn10h1is0wkz8l2sbzjmjbzi7vr-linux-libre-5.2.1/bzImage > Generation 152 Jul 30 2019 11:43:13 (current) > file name: /var/guix/profiles/system-152-link > canonical file name: = /gnu/store/3z3wmaj0399kihqc372y91nzcjxc1myl-system > label: GNU with Linux-Libre 5.2.1 > bootloader: grub > root device: label: "guix-root" > kernel: = /gnu/store/fp6wsvn10h1is0wkz8l2sbzjmjbzi7vr-linux-libre-5.2.1/bzImage >=20 > 6. sudo guix system switch-generation 151 >=20 > substitute: updating substitutes from 'https://ci.guix.gnu.org'... = 100.0% > The following derivation will be built: > /gnu/store/qvxbl3gm6406dbbkm8jigmpc8zi42lfw-grub.cfg.drv > building /gnu/store/qvxbl3gm6406dbbkm8jigmpc8zi42lfw-grub.cfg.drv... > switched from generation 152 to 151 >=20 > 7. sudo herd restart pzprnode > 8. less /var/log/messages >=20 > Jul 30 11:48:02 localhost shepherd[1]: Service pzprnode has been = stopped.=20 > Jul 30 11:48:02 localhost shepherd[1]: Service pzprnode has been = started.=20 > Jul 30 11:48:03 localhost pzprnode[4994]: updated version=20 > Jul 30 11:48:03 localhost pzprnode[4994]: Server running at = http://127.0.0.1:3456/=20 >=20 > The line with =E2=80=9Cupdated version=E2=80=9D should not be there. >=20 > Presumably, this is due to switch-generations not calling = upgrade-shepherd-services. >=20