From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#22053: silent failure on guix environment foo --container Date: Mon, 30 Nov 2015 13:51:12 +0100 Message-ID: <87lh9fbqgv.fsf@gnu.org> References: <20151129202959.6a2f6053@debian-netbook> <87k2p0fqou.fsf@gnu.org> <20151130085032.4b9c127e@debian-netbook> <8737vnekxh.fsf@gnu.org> <20151130144413.73383d40@debian-netbook> 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]:42245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3Nw5-0004TS-Ha for bug-guix@gnu.org; Mon, 30 Nov 2015 07:52:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3Nw2-0004xH-MS for bug-guix@gnu.org; Mon, 30 Nov 2015 07:52:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:42253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3Nw2-0004xD-Jn for bug-guix@gnu.org; Mon, 30 Nov 2015 07:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a3Nw2-0006Ah-Cl for bug-guix@gnu.org; Mon, 30 Nov 2015 07:52:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20151130144413.73383d40@debian-netbook> (Efraim Flashner's message of "Mon, 30 Nov 2015 14:44:13 +0200") 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-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Efraim Flashner Cc: 22053@debbugs.gnu.org Efraim Flashner skribis: > On Mon, 30 Nov 2015 13:22:34 +0100 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> Efraim Flashner skribis: >>=20 >> > On Sun, 29 Nov 2015 22:20:33 +0100 >> > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: >> >=20=20 >> >> Efraim Flashner skribis: >> >>=20 >> >> [...]=20=20 >> >>=20 >> >> The failure is: >> >>=20 >> >> --8<---------------cut here---------------start------------->8--- >> >> 21228 mount("none", "/tmp/guix-directory.5sVcGc//dev/pts", "devpts", = MS_NOSUID|MS_NOEXEC, "newinstance,ptmxmode=3D0666,mode=3D6"...) =3D -1 EPER= M (Operation not permitted) >> >> 21228 exit_group(1) =3D ? >> >> --8<---------------cut here---------------end--------------->8--- >> >>=20 >> >> The problem may be that the kernel does not support >> >> CONFIG_DEVPTS_MULTIPLE_INSTANCES. Could you check that in >> >> /proc/config.gz or similar?=20=20 >> > >> > # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set=20=20 >>=20 >> QED. :-) However, the daemon needs it too. Don=E2=80=99t you have pro= blems >> with guix-daemon as well, when building things locally on that machine? >>=20 >> Ludo=E2=80=99. > > Not at all, I've been building things all day. I=E2=80=99ve realized that the daemon has a fallback case for this situatio= n, in libstore/build.cc: --8<---------------cut here---------------start------------->8--- /* Mount a new devpts on /dev/pts. Note that this requires the kernel to be compiled with CONFIG_DEVPTS_MULTIPLE_INSTANCES=3Dy (which is the case if /dev/ptx/ptmx exists). */ if (pathExists("/dev/pts/ptmx") && !pathExists(chrootRootDir + "/dev/ptmx") && dirsInChroot.find("/dev/pts") =3D=3D dirsInChroot.end()) { if (mount("none", (chrootRootDir + "/dev/pts").c_str(), "devpts", 0, = "newinstance,mode=3D0620") =3D=3D -1) throw SysError("mounting /dev/pts"); createSymlink("/dev/pts/ptmx", chrootRootDir + "/dev/ptmx"); /* Make sure /dev/pts/ptmx is world-writable. With some Linux versions, it is created with permissions 0. */ chmod_(chrootRootDir + "/dev/pts/ptmx", 0666); } --8<---------------cut here---------------end--------------->8--- David, should we do something similar? Thanks, Ludo=E2=80=99.