From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan =?utf-8?Q?Reich=C3=B6r?= Subject: Re: Problem installing Guix on OpenVZ host that uses zfs Date: Wed, 12 Apr 2017 22:41:16 +0200 Message-ID: <874lxtpdeb.fsf@xsteve.at> References: <877f2q673x.fsf@xsteve.at> <20170412153319.GC5920@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyP56-00046P-IM for guix-devel@gnu.org; Wed, 12 Apr 2017 16:41:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyP53-0005Hi-FE for guix-devel@gnu.org; Wed, 12 Apr 2017 16:41:36 -0400 Received: from [195.159.176.226] (port=52276 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cyP53-0005EW-9J for guix-devel@gnu.org; Wed, 12 Apr 2017 16:41:33 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cyP4o-0000j0-HO for guix-devel@gnu.org; Wed, 12 Apr 2017 22:41:18 +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: guix-devel@gnu.org Hi Leo, > On Tue, Apr 11, 2017 at 10:07:30PM +0200, Stefan Reichör wrote: >> Hi all, >> >> I tried today to install Guix v12.0 on an OpenVZ hoster: >> https://www.gnu.org/software/guix/manual/html_node/Binary-Installation.html#Binary-Installation >> >> But I failed with the following problem: >> >> ~/bin% ./guix package -i hello >> The following package will be installed: >> hello 2.10 /gnu/store/rvs42awwwby7pq3j0znglmz3vyznvbh1-hello-2.10 >> >> The following derivations will be built: >> /gnu/store/3rjlwl02c69c71jdcjcp96r41byqbv54-profile.drv >> /gnu/store/va7p6kn3c5836aw0risjxc0m6s3cj5jx-ca-certificate-bundle.drv >> /gnu/store/qbx513w8j5ikrjjnn2pv7qq91zmpylw8-fonts-dir.drv >> /gnu/store/9b7gxm83y7x4ps2mimp6jpfzx7hjypvd-info-dir.drv >> guix package: error: build failed: while setting up the build environment: unable to make filesystem `/' private: Permission denied > > This comes from DerivationGoal() in 'nix/libstore/build.cc'. > > I'm not sure what it's trying to do with `/' and I'm also not familiar > with that rather long function, so can you try attaching to the daemon > with strace [0] and letting us know exactly where it fails? > > [0] Something like: > $ strace -f -p $(pgrep guix-daemon | head -n1) Cool trick :-) Here is the part that triggers the problem as I assume (I can send the full log as well when it is needed): [pid 31032] open("/proc/self/mountinfo", O_RDONLY) = 17 [pid 31032] read(17, "2860 2854 0:102 / / rw,noatime m"..., 4096) = 4076 [pid 31032] read(17, "", 4096) = 0 [pid 31032] close(17) = 0 [pid 31032] mount(NULL, "/", NULL, MS_PRIVATE, NULL) = -1 EACCES (Permission denied) [pid 31032] futex(0x7f827449c190, FUTEX_WAKE_PRIVATE, 2147483647) = 0 [pid 31032] write(2, "while setting up the build envir"..., 97) = 97 [pid 31032] exit_group(1) = ? [pid 31028] close(16) = 0 The entry for "/" in /proc/self/mountinfo is: 3966 3548 0:102 / / rw,noatime master:129 - zfs satazpool/data/subvol-618-disk-1 rw,xattr,posixacl Stefan.