unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#54812: ‘guix system reconfigure’ closes SSH connections
@ 2022-04-09 12:05 Ludovic Courtès
  2022-04-09 22:19 ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2022-04-09 12:05 UTC (permalink / raw)
  To: 54812

With OpenSSH turned into inetd style in commit
808b9e850491c7b1d867a5f1f4d5ee6f61f345d4, the service upgrade code used
by ‘guix system reconfigure’ and ‘guix deploy’ wrongfully decides that
the ‘sshd-*’ transient services corresponding to individual SSH
connections should be closed:

--8<---------------cut here---------------start------------->8---
$ sudo guix system reconfigure …
[…]
guix system: chargeur d'amorçage correctement installé sur « (/dev/sda) »
0,0 Mo seront téléchargés
 module-import-compiled  20KiB                                                                                                                       1.2MiB/s 00:00 [##################] 100.0%
The following derivation will be built:
  /gnu/store/n99ahnnw94cay1drg499kxsg5ma6598p-upgrade-shepherd-services.scm.drv

0,0 Mo seront téléchargés
 module-import-compiled  20KiB                                                                                                                       1.8MiB/s 00:00 [##################] 100.0%
construction de /gnu/store/n99ahnnw94cay1drg499kxsg5ma6598p-upgrade-shepherd-services.scm.drv...
shepherd: Removing service 'sshd-1'...
shepherd: Service sshd-1 has been stopped.
shepherd: Transient service sshd-1 unregistered.
shepherd: Done.
shepherd: Removing service 'sshd-3'...
shepherd: Service sshd-3 has been stopped.
shepherd: Transient service sshd-3 unregistered.
shepherd: Done.
shepherd: Service swap-swap could not be started.
shepherd: Service host-name has been started.
shepherd: Service user-homes has been started.
shepherd: Service sysctl has been started.
shepherd: Service host-name has been started.
shepherd: Service term-console could not be started.
shepherd: Service bluetooth has been started.
Pour compléter la mise à jour, lancez « herd restart SERVICE » pour arrêter,
mettre à jour et redémarrer tous les services qui n'ont pas été redémarrés
automatiquement.
Lancez « herd status » pour visualiser la liste des services de votre système.
--8<---------------cut here---------------end--------------->8---

I think the solution is to leave transient services untouched.

Unfortunately, the status sexp returned by ‘services->sexp’ currently
lacks information about whether a service is transient.

Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#54812: ‘guix system reconfigure’ closes SSH connections
  2022-04-09 12:05 bug#54812: ‘guix system reconfigure’ closes SSH connections Ludovic Courtès
@ 2022-04-09 22:19 ` Ludovic Courtès
       [not found]   ` <871qwv23go.fsf@dustycloud.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2022-04-09 22:19 UTC (permalink / raw)
  To: 54812-done

Ludovic Courtès <ludo@gnu.org> skribis:

> With OpenSSH turned into inetd style in commit
> 808b9e850491c7b1d867a5f1f4d5ee6f61f345d4, the service upgrade code used
> by ‘guix system reconfigure’ and ‘guix deploy’ wrongfully decides that
> the ‘sshd-*’ transient services corresponding to individual SSH
> connections should be closed:

Fixed with:

  eeb8ac43c8 services: shepherd: Do not unload transient services.
  a2c759c830 services: herd: Report whether a service is transient.

Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#54812: ‘guix system reconfigure’ closes SSH connections
       [not found]   ` <871qwv23go.fsf@dustycloud.org>
@ 2022-05-14 22:19     ` Christine Lemmer-Webber
  2022-05-16 23:40       ` Christine Lemmer-Webber
  0 siblings, 1 reply; 5+ messages in thread
From: Christine Lemmer-Webber @ 2022-05-14 22:19 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 54812, 54812-done

Ludovic Courtès <ludo@gnu.org> writes:

> Ludovic Courtès <ludo@gnu.org> skribis:
>
>> With OpenSSH turned into inetd style in commit
>> 808b9e850491c7b1d867a5f1f4d5ee6f61f345d4, the service upgrade code used
>> by ‘guix system reconfigure’ and ‘guix deploy’ wrongfully decides that
>> the ‘sshd-*’ transient services corresponding to individual SSH
>> connections should be closed:
>
> Fixed with:
>
>   eeb8ac43c8 services: shepherd: Do not unload transient services.
>   a2c759c830 services: herd: Report whether a service is transient.
>
> Ludo’.

Hm.  I'm getting this issue.  I did a guix pull locally, on the
server... doesn't seem to make a difference.  I get the very error
reported above when using "guix deploy".

I guess others aren't?  I wonder why I am...

 - Christine





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#54812: ‘guix system reconfigure’ closes SSH connections
  2022-05-14 22:19     ` Christine Lemmer-Webber
@ 2022-05-16 23:40       ` Christine Lemmer-Webber
  2023-06-15 20:59         ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Christine Lemmer-Webber @ 2022-05-16 23:40 UTC (permalink / raw)
  Cc: ludo, 54812

Christine Lemmer-Webber <cwebber@dustycloud.org> writes:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Ludovic Courtès <ludo@gnu.org> skribis:
>>
>>> With OpenSSH turned into inetd style in commit
>>> 808b9e850491c7b1d867a5f1f4d5ee6f61f345d4, the service upgrade code used
>>> by ‘guix system reconfigure’ and ‘guix deploy’ wrongfully decides that
>>> the ‘sshd-*’ transient services corresponding to individual SSH
>>> connections should be closed:
>>
>> Fixed with:
>>
>>   eeb8ac43c8 services: shepherd: Do not unload transient services.
>>   a2c759c830 services: herd: Report whether a service is transient.
>>
>> Ludo’.
>
> Hm.  I'm getting this issue.  I did a guix pull locally, on the
> server... doesn't seem to make a difference.  I get the very error
> reported above when using "guix deploy".
>
> I guess others aren't?  I wonder why I am...
>
>  - Christine

I reopened this, because I'm hitting it on all the machines I use "guix
deploy" with.  I think, before closing, it would be good to hear if any
other guix deploy users are hitting it.  If it's just me, well I'll have
to figure it out then, but I suspect it isn't just me. :)




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#54812: ‘guix system reconfigure’ closes SSH connections
  2022-05-16 23:40       ` Christine Lemmer-Webber
@ 2023-06-15 20:59         ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2023-06-15 20:59 UTC (permalink / raw)
  To: Christine Lemmer-Webber; +Cc: 54812

Hi Christine,

Christine Lemmer-Webber <cwebber@dustycloud.org> skribis:

> Christine Lemmer-Webber <cwebber@dustycloud.org> writes:
>
>> Ludovic Courtès <ludo@gnu.org> writes:
>>
>>> Ludovic Courtès <ludo@gnu.org> skribis:
>>>
>>>> With OpenSSH turned into inetd style in commit
>>>> 808b9e850491c7b1d867a5f1f4d5ee6f61f345d4, the service upgrade code used
>>>> by ‘guix system reconfigure’ and ‘guix deploy’ wrongfully decides that
>>>> the ‘sshd-*’ transient services corresponding to individual SSH
>>>> connections should be closed:
>>>
>>> Fixed with:
>>>
>>>   eeb8ac43c8 services: shepherd: Do not unload transient services.
>>>   a2c759c830 services: herd: Report whether a service is transient.
>>>
>>> Ludo’.
>>
>> Hm.  I'm getting this issue.  I did a guix pull locally, on the
>> server... doesn't seem to make a difference.  I get the very error
>> reported above when using "guix deploy".
>>
>> I guess others aren't?  I wonder why I am...
>>
>>  - Christine
>
> I reopened this, because I'm hitting it on all the machines I use "guix
> deploy" with.  I think, before closing, it would be good to hear if any
> other guix deploy users are hitting it.  If it's just me, well I'll have
> to figure it out then, but I suspect it isn't just me. :)

It’s been a year now :-) but I’m definitely not getting this issue (SSH
connections getting closed) when using ‘guix deploy’.

What about you?

Maybe we can close?

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-15 21:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-09 12:05 bug#54812: ‘guix system reconfigure’ closes SSH connections Ludovic Courtès
2022-04-09 22:19 ` Ludovic Courtès
     [not found]   ` <871qwv23go.fsf@dustycloud.org>
2022-05-14 22:19     ` Christine Lemmer-Webber
2022-05-16 23:40       ` Christine Lemmer-Webber
2023-06-15 20:59         ` Ludovic Courtès

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).