GNU bug report logs - #54779
guix home reconfigure throw error after Shepherd updata

Previous Next

Package: guix;

Reported by: Aleksandr Vityazev <avityazev <at> posteo.org>

Date: Thu, 7 Apr 2022 23:28:02 UTC

Severity: important

Merged with 54919

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 54779 in the body.
You can then email your comments to 54779 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#54779; Package guix. (Thu, 07 Apr 2022 23:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Aleksandr Vityazev <avityazev <at> posteo.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 07 Apr 2022 23:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Aleksandr Vityazev <avityazev <at> posteo.org>
To: "bug-guix" <bug-guix <at> gnu.org>
Subject: guix home reconfigure throw error after Shepherd updata
Date: Thu, 07 Apr 2022 23:27:31 +0000
[Message part 1 (text/plain, inline)]
Hi,

guix home reconfigure config.scm [1], throw error and freezes even
ctrl-c doesn't help

Uncaught exception in task:
In fibers.scm
  150:0 9 (_)
In ice-9/boot-9.scm
  1747:15 8 (with-exception-handler #<procedure 7c9c7efe1c60> at ic..>
  ...)
In shepherd.scm
  439:9 7 (_)
In ice-9/boot-9.scm
  1747:15 8 (with-exception-handler #<procedure 7f9c7efe1ba0> at ic..>
  ...)
In ice-9/exceptions.scm:
  406:15 5 (_)
In ice-9/boot-9.scm:
  1752:10 4 (with-exception-handler _ _ #:unwind? _ # _)
In shepherd.scm
 502:23 3 (_)
In srfi/srfi-1.scm:
 586:17 2 (map1 (#<<service> 7f9c80e0df30>))
In ice-9/boot-9.scm:
 1685:16 1 (raise-exception _ #:continuable? _)
 1683:16 0 (raise-exception _ #:continuable? _)
ice-9/boot-9.scm:1683:16 In procedure raise-exception:
Zero values returned to single-valued continuation


[1] 
[confgi.scm (text/plain, attachment)]
[Message part 3 (text/plain, inline)]
--      
Best regards,
Aleksandr Vityazev


Information forwarded to bug-guix <at> gnu.org:
bug#54779; Package guix. (Thu, 14 Apr 2022 07:24:01 GMT) Full text and rfc822 format available.

Message #8 received at 54779 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 54779 <at> debbugs.gnu.org
Subject: same problem here
Date: Thu, 14 Apr 2022 09:16:08 +0200
Hi !

I do have the same problem here, and have found a temporary fix to allow
finishing the reconfiguration.

If you `herd stop root` before reconfiguring home, the `guix home
reconfigure` should finish, with an error, but allowing the
reconfiguration.

Just in case it might be helpful for developers :
The error happends in the `activate profile` phase, when herd and
shepherd are involved.

The reconfiguration actually works when there is no service-type related
to a herd service in the configuration (here it was the case with dbus I
think).

Good luck,

Nicolas




Information forwarded to bug-guix <at> gnu.org:
bug#54779; Package guix. (Wed, 20 Apr 2022 01:38:01 GMT) Full text and rfc822 format available.

Message #11 received at 54779 <at> debbugs.gnu.org (full text, mbox):

From: Aleksandr Vityazev <avityazev <at> posteo.org>
To: 54779 <at> debbugs.gnu.org
Subject: Re: bug#54779: guix home reconfigure throw error after Shepherd updata
Date: Wed, 20 Apr 2022 01:37:28 +0000
[Message part 1 (text/plain, inline)]
Hi,

it seems that the attached patch should fix this.

-- 
Best regards,
Aleksandr Vityazev

[shepherd-home.patch (text/x-patch, attachment)]

Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 20 Apr 2022 20:03:01 GMT) Full text and rfc822 format available.

Merged 54779 54919. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 20 Apr 2022 21:54:01 GMT) Full text and rfc822 format available.

Merged 54779 54919. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 20 Apr 2022 21:54:02 GMT) Full text and rfc822 format available.

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Wed, 20 Apr 2022 22:12:02 GMT) Full text and rfc822 format available.

Notification sent to Aleksandr Vityazev <avityazev <at> posteo.org>:
bug acknowledged by developer. (Wed, 20 Apr 2022 22:12:02 GMT) Full text and rfc822 format available.

Message #22 received at 54779-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Aleksandr Vityazev <avityazev <at> posteo.org>
Cc: 54779-done <at> debbugs.gnu.org, Nicolas Graves <ngraves <at> ngraves.fr>
Subject: Re: bug#54779: guix home reconfigure throw error after Shepherd updata
Date: Thu, 21 Apr 2022 00:11:04 +0200
Hi,

Aleksandr Vityazev <avityazev <at> posteo.org> skribis:

> guix home reconfigure config.scm [1], throw error and freezes even
> ctrl-c doesn't help

Indeed, this can be reproduced like so:

--8<---------------cut here---------------start------------->8---
$ herd load root /gnu/store/1xx98q22c6ijr0p5pjbq3wnxd5yyxlmy-shepherd.conf
WARNING: Use of `load' in declarative module (#{ g139}#).  Add #:declarative? #f to your define-module invocation.
Uncaught exception in task:
In fibers.scm:
    150:8  9 (_)
In ice-9/boot-9.scm:
  1747:15  8 (with-exception-handler #<procedure 7f52c6b31390 at ic…> …)
In shepherd.scm:
    432:9  7 (_)
In ice-9/boot-9.scm:
  1747:15  6 (with-exception-handler #<procedure 7f52c6b312d0 at ic…> …)
In ice-9/exceptions.scm:
   406:15  5 (_)
In ice-9/boot-9.scm:
  1752:10  4 (with-exception-handler _ _ #:unwind? _ # _)
In shepherd.scm:
   502:23  3 (_)
In srfi/srfi-1.scm:
   586:17  2 (map1 (#<<service> 7f52c8f77f30>))
In ice-9/boot-9.scm:
  1685:16  1 (raise-exception _ #:continuable? _)
  1683:16  0 (raise-exception _ #:continuable? _)
ice-9/boot-9.scm:1683:16: In procedure raise-exception:
Zero values returned to single-valued continuation
--8<---------------cut here---------------end--------------->8---

(‘guix home reconfigure’ invokes the same command as above.)

The problem is that ‘start-in-the-background’ returns zero values, as
indicated above, but shepherd expects user commands to return one value.

So the fix, as you suggest, is to return one value at the end of
shepherd.conf.

You suggested redirecting stdin, which is also a good idea, but for a
different reason.  :-)  Anyway I’ve done both.

  dd2ab92d9d home: shepherd: Redirect input port to /dev/null.
  bc867b2ab0 home: shepherd: "shepherd.conf" returns one value.

Thank you!

Ludo’.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Wed, 20 Apr 2022 22:12:02 GMT) Full text and rfc822 format available.

Notification sent to Brian Cully <bjc <at> spork.org>:
bug acknowledged by developer. (Wed, 20 Apr 2022 22:12:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 19 May 2022 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 32 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.