all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw@netris.org>
Cc: guix-devel@gnu.org
Subject: Re: X server crashes during 'guix system reconfigure' on mips64el
Date: Sun, 28 Aug 2016 17:07:36 +0200	[thread overview]
Message-ID: <87k2f10w5j.fsf@gnu.org> (raw)
In-Reply-To: <87zio5qsmw.fsf_-_@netris.org> (Mark H. Weaver's message of "Mon, 22 Aug 2016 01:28:39 -0400")

Hi Mark,

Mark H Weaver <mhw@netris.org> skribis:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> civodul pushed a commit to branch master
>> in repository guix.
>>
>> commit 3cf319a3f8e23831960a0f1320122cc514188a37
>> Author: Ludovic Courtès <ludo@gnu.org>
>> Date:   Sun Aug 21 19:03:29 2016 +0200
>>
>>     services: elogind: Provide '%elogind-file-systems' by extension.
>>     
>>     * gnu/system/file-systems.scm (%base-file-systems): Remove
>>     %ELOGIND-FILE-SYSTEMS.
>>     * gnu/services/desktop.scm (elogind-service-type): Extend
>>     FILE-SYSTEM-SERVICE-TYPE to provide %ELOGIND-FILE-SYSTEMS.
>
> This commit causes a major problem on my Lemote YeeLoong (mips64el)
> machine running GuixSD.  I don't know whether it might affect others.

Apologies, I didn’t expect this.  :-/

> When I run 'guix system reconfigure' to update to a system with this
> commit, it unloads the older %elogind-file-system services, which causes
> my X server to crash and leave me in text mode with my keyboard in the
> wrong mode, so I have to hard reset the machine.
>
> In addition, the 'guix system reconfigure' gets stuck.  (I can see this
> because I always run it in a text terminal; I do all my 'root' work
> there.)
>
> I've tried it twice, and transcribed (by hand) the last few lines of the
> output from 'guix system reconfigure':
>
> First time:
>
>   making '/gnu/store/f0z88r...-system' the current system...
>   guix system: unloading service 'file-system-/sys/fs/cgroup/elogind'...
>   wlp0s14f5u3: deauthenticating from xx:xx:xx:xx:xx:xx by local choice (Reason: 3=DEAUTH_LEAVING)
>
> Second time:
>
>   making '/gnu/store/f0z88r...-system' the current system...
>   guix system: unloading service 'file-system-/run/systemd'...
>
> I'm not sure if it's relevant, but I don't have 'elogin-service' on my
> YeeLoong.  I can't run it there because it depends on 'mozjs' which
> fails to build on mips64el.

The problem here is that stopping a ‘file-system-xxx’ Shepherd service
amounts to stopping the ‘user-processes’—i.e., kill all the user
processes.  This can be seen in the service dependency graph:

  guix system shepherd-graph the-config.scm | dot -Tps > t.ps

So ‘guix system reconfigure’ should detect this case and keep the
service up and running instead of stopping it.  Namely,
‘call-with-service-upgrade-info’ in (guix scripts system) should check
whether a given Shepherd service has running dependent services.

To be continued…

Thanks for reporting the issue and reverting the faulty commit!

Ludo’.

PS: On my machine (where elogind runs), Xorg.0.log reads:

  (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration

… which suggests we’re doing things wrong here.

  parent reply	other threads:[~2016-08-28 15:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20160821223010.6271.25223@vcs.savannah.gnu.org>
     [not found] ` <20160821223011.7BBD9220179@vcs.savannah.gnu.org>
2016-08-22  5:28   ` X server crashes during 'guix system reconfigure' on mips64el Mark H Weaver
2016-08-22  6:44     ` Leo Famulari
2016-08-22 12:19       ` Mark H Weaver
2016-08-28 15:07     ` Ludovic Courtès [this message]
2016-08-31 14:17       ` Ludovic Courtès
2016-08-31 17:06         ` Leo Famulari
2016-09-01 12:02           ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k2f10w5j.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=mhw@netris.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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.