From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: X server crashes during 'guix system reconfigure' on mips64el Date: Wed, 31 Aug 2016 16:17:29 +0200 Message-ID: <878tvdnhty.fsf@gnu.org> References: <20160821223010.6271.25223@vcs.savannah.gnu.org> <20160821223011.7BBD9220179@vcs.savannah.gnu.org> <87zio5qsmw.fsf_-_@netris.org> <87k2f10w5j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf6Ks-0000QO-94 for guix-devel@gnu.org; Wed, 31 Aug 2016 10:17:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bf6Kl-00067D-5q for guix-devel@gnu.org; Wed, 31 Aug 2016 10:17:49 -0400 In-Reply-To: <87k2f10w5j.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 28 Aug 2016 17:07:36 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mark H Weaver Cc: guix-devel@gnu.org Hi! ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > Mark H Weaver skribis: [...] >> 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=3DDEAUTH_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 =E2=80=98file-system-xxx=E2=80=99 She= pherd service > amounts to stopping the =E2=80=98user-processes=E2=80=99=E2=80=94i.e., ki= ll 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 =E2=80=98guix system reconfigure=E2=80=99 should detect this case and = keep the > service up and running instead of stopping it. Namely, > =E2=80=98call-with-service-upgrade-info=E2=80=99 in (guix scripts system)= should check > whether a given Shepherd service has running dependent services. > > To be continued=E2=80=A6 I believe this is fixed by commit d4f8884fdb897e648fd7f4262b2142d8c363ac76 (and now we have proper tests!). Could you or Leo retry the previous scenario (you need to revert the revert) and report back? Thanks! Ludo=E2=80=99.