GNU bug report logs - #32183
New ‘guix pull’ /root/.config/current/bin/guix: Permission denied

Previous Next

Package: guix;

Reported by: Pjotr Prins <pjotr.public12 <at> thebird.nl>

Date: Tue, 17 Jul 2018 08:57:02 UTC

Severity: important

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32183 in the body.
You can then email your comments to 32183 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to ludo <at> gnu.org, guix-patches <at> gnu.org:
bug#32183; Package guix-patches. (Tue, 17 Jul 2018 08:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pjotr Prins <pjotr.public12 <at> thebird.nl>:
New bug report received and forwarded. Copy sent to ludo <at> gnu.org, guix-patches <at> gnu.org. (Tue, 17 Jul 2018 08:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pjotr Prins <pjotr.public12 <at> thebird.nl>
To: guix-patches <at> gnu.org
Cc: ludo <at> gnu.org
Subject: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Tue, 17 Jul 2018 10:55:41 +0200
On Fri, Jul 13, 2018 at 02:04:22PM +0200, Ludovic Courtès wrote:
> Hi Pjotr,
> 
> Pjotr Prins <pjotr.public12 <at> thebird.nl> skribis:
> 
> > Fails to build with below /gnu/store/8ahlc84zaj0iw9jpsdpa9wx4ms0s9cma-guix-daemon-0.15.0-1.4876bc8/libexec/guix/download: line 8: /root/.config/current/bin/guix: Permission denied
> 
> Could you figure out why this is the case, perhaps by running attaching
> “strace -f” to guix-daemon?
> 
> guix-daemon runs as root, so I wonder why we’re getting EACCES for
> /root/.config/current/bin/guix.
> 
> Thanks for reporting the issue,
> Ludo’.

It popped up again. On the server:

  strace -f /home/pjotr/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild &> /tmp/guix-daemon-strace.log

on the client

  penguin2:~/izip/git/opensource/genenetwork/guix-gemma-dev$ ./pre-inst-env guix package -i conda --no-grafts

    /gnu/store/8ahlc84zaj0iw9jpsdpa9wx4ms0s9cma-guix-daemon-0.15.0-1.4876bc8/libexec/guix/download: line 8: /root/.config/current/bin/guix: Permission denied
    /gnu/store/8ahlc84zaj0iw9jpsdpa9wx4ms0s9cma-guix-daemon-0.15.0-1.4876bc8/libexec/guix/download: line 8: exec: /root/.config/current/bin/guix: cannot execute: Permission denied
    builder for `/gnu/store/s2y18gwgyhsqp6p0kdznxq9qah38cbxv-ruamel.yaml-0.15.35.tar.gz.drv' failed with exit code 126

The strace starts with with a bunch of errors 

execve("/home/pjotr/.config/guix/current/bin/guix-daemon", ["/home/pjotr/.config/guix/current"..., "--build-users-group=guixbuild"], [/* 22 var
s */]) = 0
brk(NULL)                               = 0x155e000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8d5cd11000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/tls/haswell/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No
 such file or directory)
stat("/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/tls/haswell/x86_64", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/tls/haswell/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such f
ile or directory)
stat("/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/tls/haswell", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such fi
le or directory)
stat("/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/tls/x86_64", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/tls/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or d
irectory)
stat("/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/tls", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/haswell/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No suc
h file or directory)
stat("/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/haswell/x86_64", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/haswell/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file 
or directory)
stat("/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/haswell", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file o
r directory)
stat("/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/x86_64", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or direc
tory)
stat("/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/tls/haswell/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT 
(No such file or directory)
stat("/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/tls/haswell/x86_64", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory
)
openat(AT_FDCWD, "/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/tls/haswell/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No suc
h file or directory)
stat("/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/tls/haswell", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
 file or directory)
stat("/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/tls/x86_64", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/tls/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file o
r directory)
stat("/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/tls", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/haswell/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No 
such file or directory)
stat("/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/haswell/x86_64", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/haswell/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such fi
le or directory)
stat("/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/haswell", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such fil
e or directory)
stat("/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/x86_64", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or di
rectory)
stat("/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/tls/haswell/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (N
o such file or directory)
stat("/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/tls/haswell/x86_64", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/tls/haswell/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such 
file or directory)
stat("/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/tls/haswell", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such f
ile or directory)
stat("/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/tls/x86_64", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/tls/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or 
directory)
stat("/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/tls", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/haswell/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No su
ch file or directory)
stat("/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/haswell/x86_64", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/haswell/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file
 or directory)
stat("/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/haswell", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file 
or directory)
stat("/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/x86_64", 0x7ffdb9f16af0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 '\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=121128, ...}) = 0
mmap(NULL, 2208128, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8d5c8d3000
mprotect(0x7f8d5c8ed000, 2097152, PROT_NONE) = 0
mmap(0x7f8d5caed000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7f8d5caed000
close(3)                                = 0
openat(AT_FDCWD, "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or
 directory)
openat(AT_FDCWD, "/gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file
 or directory)
openat(AT_FDCWD, "/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file o
r directory)
openat(AT_FDCWD, "/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/tls/haswell/x86_64/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = -1 E
NOENT (No such file or directory)
stat("/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/tls/haswell/x86_64", 0x7ffdb9f16ac0) = -1 ENOENT (No such file or directory
)
openat(AT_FDCWD, "/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/tls/haswell/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (
No such file or directory)
stat("/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/tls/haswell", 0x7ffdb9f16ac0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/tls/x86_64/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (N
o such file or directory)
stat("/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/tls/x86_64", 0x7ffdb9f16ac0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/tls/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such 
file or directory)
stat("/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/tls", 0x7ffdb9f16ac0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/haswell/x86_64/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOEN
T (No such file or directory)
stat("/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/haswell/x86_64", 0x7ffdb9f16ac0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/haswell/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No s
uch file or directory)
stat("/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/haswell", 0x7ffdb9f16ac0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/x86_64/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No su
ch file or directory)
stat("/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/x86_64", 0x7ffdb9f16ac0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/gnu/store/nrsjkmnh5gqpsyap9pz4hkmmdxxryhdh-sqlite-3.23.0/lib/libsqlite3.so.0", O_RDONLY|O_CLOEXEC) = 3

and ends with

[pid 52405] <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 52427
[pid 52405] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=52427, si_uid=999, si_status=0, si_utime=0, si_stime=0} ---
[pid 52405] statfs("/gnu/store", {f_type=EXT2_SUPER_MAGIC, f_bsize=4096, f_blocks=49254537, f_bfree=30544962, f_bavail=28025538, f_files=12582912, f_ffree=10500341, f_fsid={val=[9367051, 4063534803]}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_RELATIME}) = 0
[pid 52405] statfs("/tmp/guix-build-ruamel.yaml-0.15.35.tar.gz.drv-0", {f_type=EXT2_SUPER_MAGIC, f_bsize=4096, f_blocks=56770171, f_bfree=52693770, f_bavail=49792574, f_files=14491648, f_ffree=14179761, f_fsid={val=[3427961175, 3977194498]}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_RELATIME}) = 0
[pid 52405] lstat("/tmp/guix-build-ruamel.yaml-0.15.35.tar.gz.drv-0", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
[pid 52405] openat(AT_FDCWD, "/tmp/guix-build-ruamel.yaml-0.15.35.tar.gz.drv-0", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 14
[pid 52405] fstat(14, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
[pid 52405] getdents(14, /* 2 entries */, 32768) = 48
[pid 52405] getdents(14, /* 0 entries */, 32768) = 0
[pid 52405] close(14)                   = 0
[pid 52405] unlink("/tmp/guix-build-ruamel.yaml-0.15.35.tar.gz.drv-0") = -1 EISDIR (Is a directory)
[pid 52405] rmdir("/tmp/guix-build-ruamel.yaml-0.15.35.tar.gz.drv-0") = 0
[pid 52405] futex(0x7f8d5b9ba190, FUTEX_WAKE_PRIVATE, 2147483647) = 0
[pid 52405] write(4, "gmlo\0\0\0\0s\0\0\0\0\0\0\0builder for `/gn"..., 136) = 136
[pid 52405] close(8)                    = 0
[pid 52405] close(12)                   = 0
[pid 52405] write(4, "gmlo\0\0\0\0\207\0\0\0\0\0\0\0cannot build der"..., 152) = 152
[pid 52405] write(4, "gmlo\0\0\0\0y\0\0\0\0\0\0\0cannot build der"..., 144) = 144
[pid 52405] write(4, "gmlo\0\0\0\0t\0\0\0\0\0\0\0cannot build der"..., 136) = 136
[pid 52405] rt_sigaction(SIGIO, {sa_handler=SIG_IGN, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f8d5b425ac0}, {sa_handler=0x4092e0, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f8d5b425ac0}, 8) = 0
[pid 52405] write(4, "ptxc\0\0\0\0I\0\0\0\0\0\0\0build of `/gnu/s"..., 104) = 104
[pid 52405] read(4, "", 32768)          = 0
[pid 52405] close(10)                   = 0
[pid 52405] close(11 <unfinished ...>
[pid 52406] <... read resumed> "", 4096) = 0
[pid 52405] <... close resumed> )       = 0
[pid 52405] close(13)                   = 0
[pid 52405] wait4(52406,  <unfinished ...>
[pid 52406] read(7, "", 4096)           = 0
[pid 52406] close(7)                    = 0
[pid 52406] exit_group(0 <unfinished ...>
[pid 52424] <... read resumed> )        = ? <unavailable>
[pid 52423] <... read resumed> <unfinished ...>) = ?
[pid 52422] <... futex resumed>)        = ?
[pid 52424] +++ exited with 0 +++
[pid 52423] +++ exited with 0 +++
[pid 52422] +++ exited with 0 +++
[pid 52421] <... futex resumed>)        = ?
[pid 52420] <... futex resumed>)        = ?
[pid 52419] <... futex resumed>)        = ?
[pid 52418] <... futex resumed>)        = ?
[pid 52421] +++ exited with 0 +++
[pid 52420] +++ exited with 0 +++
[pid 52419] +++ exited with 0 +++
[pid 52418] +++ exited with 0 +++
[pid 52416] <... futex resumed>)        = ?
[pid 52415] <... futex resumed>)        = ?
[pid 52414] <... futex resumed>)        = ?
[pid 52413] <... futex resumed>)        = ?
[pid 52416] +++ exited with 0 +++
[pid 52415] +++ exited with 0 +++
[pid 52414] +++ exited with 0 +++
[pid 52413] +++ exited with 0 +++
[pid 52412] <... futex resumed>)        = ?
[pid 52411] <... futex resumed>)        = ?
[pid 52410] <... futex resumed>)        = ?
[pid 52409] <... futex resumed>)        = ?
[pid 52412] +++ exited with 0 +++
[pid 52411] +++ exited with 0 +++
[pid 52410] +++ exited with 0 +++
[pid 52409] +++ exited with 0 +++
[pid 52408] <... futex resumed>)        = ?
[pid 52407] <... futex resumed>)        = ?
[pid 52406] <... exit_group resumed>)   = ?
[pid 52408] +++ exited with 0 +++
[pid 52407] +++ exited with 0 +++
[pid 52406] +++ exited with 0 +++
[pid 52405] <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 52406
[pid 52405] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=52406, si_uid=0, si_status=0, si_utime=16, si_stime=8} ---
[pid 52405] close(9)                    = 0
[pid 52405] unlink("/var/guix/temproots/52405") = 0
[pid 52405] stat("/var/guix/db/db.sqlite", {st_mode=S_IFREG|0644, st_size=52448256, ...}) = 0
[pid 52405] fcntl(5, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
[pid 52405] fcntl(5, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = -1 EAGAIN (Resource temporarily unavailable)
[pid 52405] munmap(0x7f8d5cd02000, 32768) = 0
[pid 52405] munmap(0x7f8d5ccfa000, 32768) = 0
[pid 52405] munmap(0x7f8d5ccf2000, 32768) = 0
[pid 52405] munmap(0x7f8d5ccea000, 32768) = 0
[pid 52405] close(7)                    = 0
[pid 52405] close(6)                    = 0
[pid 52405] fcntl(5, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
[pid 52405] fcntl(5, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
[pid 52405] fstat(5, {st_mode=S_IFREG|0644, st_size=52448256, ...}) = 0
[pid 52405] stat("/var/guix/db/db.sqlite", {st_mode=S_IFREG|0644, st_size=52448256, ...}) = 0
[pid 52405] close(5)                    = 0
[pid 52405] close(3)                    = 0
[pid 52405] exit_group(0)               = ?
[pid 52405] +++ exited with 0 +++
<... select resumed> )                  = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=52405, si_uid=0, si_status=0, si_utime=15, si_stime=22} ---
wait4(-1, NULL, WNOHANG, NULL)          = 52405
wait4(-1, NULL, WNOHANG, NULL)          = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]})                 = -1 EINTR (Interrupted system call)
select(4, [3], NULL, NULL, NULLstrace: Process 52384 detached
 <detached ...>






Information forwarded to guix-patches <at> gnu.org:
bug#32183; Package guix-patches. (Tue, 17 Jul 2018 09:43:01 GMT) Full text and rfc822 format available.

Message #8 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: Pjotr Prins <pjotr.public12 <at> thebird.nl>
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: 32183 <at> debbugs.gnu.org
Subject: Re: [bug#32183] New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Tue, 17 Jul 2018 11:42:18 +0200
Also, using a year old guix client gives the same error. It is in the
daemon.





Information forwarded to guix-patches <at> gnu.org:
bug#32183; Package guix-patches. (Tue, 17 Jul 2018 09:52:02 GMT) Full text and rfc822 format available.

Message #11 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: Pjotr Prins <pjotr.public12 <at> thebird.nl>
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: 32183 <at> debbugs.gnu.org
Subject: Re: [bug#32183] New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Tue, 17 Jul 2018 11:51:55 +0200
On Tue, Jul 17, 2018 at 11:42:18AM +0200, Pjotr Prins wrote:
> Also, using a year old guix client gives the same error. It is in the
> daemon.

And running an older daemon fixed it:

/gnu/store/4lk7j5693ikj7yiw2qpsbva5vkicxmp4-guix-0.14.0-13.7af5c2a/bin/guix-daemon --build-users-group=guixbuild




Information forwarded to guix-patches <at> gnu.org:
bug#32183; Package guix-patches. (Tue, 17 Jul 2018 19:16:02 GMT) Full text and rfc822 format available.

Message #14 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: 32183 <at> debbugs.gnu.org
Subject: Re: [bug#32183] New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Tue, 17 Jul 2018 15:15:54 -0400
[Message part 1 (text/plain, inline)]
On Tue, Jul 17, 2018 at 10:55:41AM +0200, Pjotr Prins wrote:
> > > Fails to build with below /gnu/store/8ahlc84zaj0iw9jpsdpa9wx4ms0s9cma-guix-daemon-0.15.0-1.4876bc8/libexec/guix/download: line 8: /root/.config/current/bin/guix: Permission denied

There must be a typo in the code somewhere. The path should be
'/root/.config/guix/current/bin/guix'.Note the extra 'guix' path
component.
[signature.asc (application/pgp-signature, inline)]

bug reassigned from package 'guix-patches' to 'guix'. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Tue, 17 Jul 2018 22:24:01 GMT) Full text and rfc822 format available.

Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Tue, 17 Jul 2018 22:29:02 GMT) Full text and rfc822 format available.

Notification sent to Pjotr Prins <pjotr.public12 <at> thebird.nl>:
bug acknowledged by developer. (Tue, 17 Jul 2018 22:29:03 GMT) Full text and rfc822 format available.

Message #21 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Leo Famulari <leo <at> famulari.name>
Cc: Pjotr Prins <pjotr.public12 <at> thebird.nl>, 32183-done <at> debbugs.gnu.org
Subject: Re: [bug#32183] New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Wed, 18 Jul 2018 00:28:31 +0200
Leo Famulari <leo <at> famulari.name> skribis:

> On Tue, Jul 17, 2018 at 10:55:41AM +0200, Pjotr Prins wrote:
>> > > Fails to build with below /gnu/store/8ahlc84zaj0iw9jpsdpa9wx4ms0s9cma-guix-daemon-0.15.0-1.4876bc8/libexec/guix/download: line 8: /root/.config/current/bin/guix: Permission denied
>
> There must be a typo in the code somewhere. The path should be
> '/root/.config/guix/current/bin/guix'.Note the extra 'guix' path
> component.

Good catch!  Fixed in 799dc53e9bfe605613cd2e7cb2c584282847fa84.

Thank you Leo & Pjotr.

Ludo’.




Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 23 Jul 2018 20:47:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Mon, 23 Jul 2018 22:29:02 GMT) Full text and rfc822 format available.

Message #26 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: Pjotr Prins <pjotr.public12 <at> thebird.nl>
To: 32183 <at> debbugs.gnu.org
Subject: Re: [bug#32183] New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Tue, 24 Jul 2018 00:28:55 +0200
Not completely sorted. Not sure what is going wrong but now starting
with guix 0.14 daemon and client and running guix pull a few times
successfully, running guix-daemon from $HOME/.config/guix/current/bin
and guix from a fresh git checkout using ./pre-inst-env guix I get

substitute: /gnu/store/x02v3j0h5q1d9bl3lwxavp8m9rpm3b7m-guix-daemon-0.15.0-2.8bbb79c/libexec/guix/substitute: line 8: /root/.config/guix/current/bin/guix: No such file or directory

which is funny for two reasons - 1st this is a guix-daemon that
appears to be older (it is the same) referring to a directory that
does not exist - guix pull is in my $HOME/.config.

Note that it still downloads binaries, but won't do the final
symlinks in the profile.

On this machine I am stuck because whatever I do I get this error.
Only rolling back to 0.14 allows me to install software again
including guix. But then it stops in its tracks with above.

Pj.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Thu, 26 Jul 2018 13:52:02 GMT) Full text and rfc822 format available.

Message #29 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: 32183 <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Thu, 26 Jul 2018 15:50:57 +0200
Hi Pjotr,

Pjotr Prins <pjotr.public12 <at> thebird.nl> skribis:

> Not completely sorted. Not sure what is going wrong but now starting
> with guix 0.14 daemon and client and running guix pull a few times
> successfully, running guix-daemon from $HOME/.config/guix/current/bin
> and guix from a fresh git checkout using ./pre-inst-env guix I get
>
> substitute: /gnu/store/x02v3j0h5q1d9bl3lwxavp8m9rpm3b7m-guix-daemon-0.15.0-2.8bbb79c/libexec/guix/substitute: line 8: /root/.config/guix/current/bin/guix: No such file or directory
>
> which is funny for two reasons - 1st this is a guix-daemon that
> appears to be older (it is the same) referring to a directory that
> does not exist - guix pull is in my $HOME/.config.

Since ‘guix-daemon’ runs as root, the ‘guix-daemon’ package¹ assumes
that ~root/.config/guix/current/bin/guix exists.  In fact, the only way
you can install the ‘guix-daemon’ package is by running ‘guix pull’, and
if you run ‘guix-daemon’ you run it as root, so ~root/.config/guix
necessarily exists.

Or could it be that you’re running ‘guix-daemon’ from
~/.config/guix/current as non-root?  That would indeed fail.

In fact it may be enough to do:

  exec ~/.config/guix/current/bin/guix …

instead of:

  exec ~root/.config/guix/current/bin/guix …

in that ‘install’ phase of ‘guix-daemon’.

Thanks,
Ludo’.

¹ https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/package-management.scm#n301




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Sun, 02 Sep 2018 14:04:01 GMT) Full text and rfc822 format available.

Message #32 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: 32183 <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Sun, 02 Sep 2018 15:55:06 +0200
Hi Pjotr,

What was the outcome of this bug?

  https://bugs.gnu.org/32183

If it wasn’t resolved, could you answer the questions below?

Thanks in advance!

Ludo’.

ludo <at> gnu.org (Ludovic Courtès) skribis:

> Hi Pjotr,
>
> Pjotr Prins <pjotr.public12 <at> thebird.nl> skribis:
>
>> Not completely sorted. Not sure what is going wrong but now starting
>> with guix 0.14 daemon and client and running guix pull a few times
>> successfully, running guix-daemon from $HOME/.config/guix/current/bin
>> and guix from a fresh git checkout using ./pre-inst-env guix I get
>>
>> substitute: /gnu/store/x02v3j0h5q1d9bl3lwxavp8m9rpm3b7m-guix-daemon-0.15.0-2.8bbb79c/libexec/guix/substitute: line 8: /root/.config/guix/current/bin/guix: No such file or directory
>>
>> which is funny for two reasons - 1st this is a guix-daemon that
>> appears to be older (it is the same) referring to a directory that
>> does not exist - guix pull is in my $HOME/.config.
>
> Since ‘guix-daemon’ runs as root, the ‘guix-daemon’ package¹ assumes
> that ~root/.config/guix/current/bin/guix exists.  In fact, the only way
> you can install the ‘guix-daemon’ package is by running ‘guix pull’, and
> if you run ‘guix-daemon’ you run it as root, so ~root/.config/guix
> necessarily exists.
>
> Or could it be that you’re running ‘guix-daemon’ from
> ~/.config/guix/current as non-root?  That would indeed fail.
>
> In fact it may be enough to do:
>
>   exec ~/.config/guix/current/bin/guix …
>
> instead of:
>
>   exec ~root/.config/guix/current/bin/guix …
>
> in that ‘install’ phase of ‘guix-daemon’.
>
> Thanks,
> Ludo’.
>
> ¹ https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/package-management.scm#n301




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Sun, 02 Sep 2018 14:30:02 GMT) Full text and rfc822 format available.

Message #35 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: Pjotr Prins <pjotr.public12 <at> thebird.nl>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Pjotr Prins <pjotr.public12 <at> thebird.nl>, 32183 <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Sun, 2 Sep 2018 16:28:55 +0200
On Sun, Sep 02, 2018 at 03:55:06PM +0200, Ludovic Courtès wrote:
> Hi Pjotr,
> 
> What was the outcome of this bug?
> 
>   https://bugs.gnu.org/32183
> 
> If it wasn’t resolved, could you answer the questions below?

I still face this problem on one or two machines. I am running a
standard setup. Not sure what it is.

But since no one else is reporting I think it must be because I am
running some earlier tree checkout too for deployment. Something got
messed up.

You can close this issue for now. I'll simply reinstall Guix on these
machines and start building a recent tree.

> Thanks in advance!
> 
> Ludo’.
> 
> ludo <at> gnu.org (Ludovic Courtès) skribis:
> 
> > Hi Pjotr,
> >
> > Pjotr Prins <pjotr.public12 <at> thebird.nl> skribis:
> >
> >> Not completely sorted. Not sure what is going wrong but now starting
> >> with guix 0.14 daemon and client and running guix pull a few times
> >> successfully, running guix-daemon from $HOME/.config/guix/current/bin
> >> and guix from a fresh git checkout using ./pre-inst-env guix I get
> >>
> >> substitute: /gnu/store/x02v3j0h5q1d9bl3lwxavp8m9rpm3b7m-guix-daemon-0.15.0-2.8bbb79c/libexec/guix/substitute: line 8: /root/.config/guix/current/bin/guix: No such file or directory
> >>
> >> which is funny for two reasons - 1st this is a guix-daemon that
> >> appears to be older (it is the same) referring to a directory that
> >> does not exist - guix pull is in my $HOME/.config.
> >
> > Since ‘guix-daemon’ runs as root, the ‘guix-daemon’ package¹ assumes
> > that ~root/.config/guix/current/bin/guix exists.  In fact, the only way
> > you can install the ‘guix-daemon’ package is by running ‘guix pull’, and
> > if you run ‘guix-daemon’ you run it as root, so ~root/.config/guix
> > necessarily exists.
> >
> > Or could it be that you’re running ‘guix-daemon’ from
> > ~/.config/guix/current as non-root?  That would indeed fail.
> >
> > In fact it may be enough to do:
> >
> >   exec ~/.config/guix/current/bin/guix …
> >
> > instead of:
> >
> >   exec ~root/.config/guix/current/bin/guix …
> >
> > in that ‘install’ phase of ‘guix-daemon’.
> >
> > Thanks,
> > Ludo’.
> >
> > ¹ https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/package-management.scm#n301
> 




Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Sun, 02 Sep 2018 20:05:02 GMT) Full text and rfc822 format available.

Notification sent to Pjotr Prins <pjotr.public12 <at> thebird.nl>:
bug acknowledged by developer. (Sun, 02 Sep 2018 20:05:03 GMT) Full text and rfc822 format available.

Message #40 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Sun, 02 Sep 2018 22:04:32 +0200
Hi,

Pjotr Prins <pjotr.public12 <at> thebird.nl> skribis:

> On Sun, Sep 02, 2018 at 03:55:06PM +0200, Ludovic Courtès wrote:
>> Hi Pjotr,
>> 
>> What was the outcome of this bug?
>> 
>>   https://bugs.gnu.org/32183
>> 
>> If it wasn’t resolved, could you answer the questions below?
>
> I still face this problem on one or two machines. I am running a
> standard setup. Not sure what it is.
>
> But since no one else is reporting I think it must be because I am
> running some earlier tree checkout too for deployment. Something got
> messed up.

OK.  Do reopen it if it shows up again.

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Wed, 05 Sep 2018 15:28:02 GMT) Full text and rfc822 format available.

Message #43 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
To: 32183 <at> debbugs.gnu.org
Subject: Me too!
Date: Wed, 05 Sep 2018 17:27:06 +0200
Hi Ludo and Pjotr,

I just ran into this bug as well:

   ./pre-inst-env guix build python-matplotlib
   @ build-started /gnu/store/33hf690qiwrvr0y59g9xwz6rpf3mmbj6-matplotlib-2.2.3.tar.gz.drv - x86_64-linux /var/log/guix/drvs/33//hf690qiwrvr0y59g9xwz6rpf3mmbj6-matplotlib-2.2.3.tar.gz.drv.bz2
   /gnu/store/1w41y8q12r3dw8iphl5rpkr508881y50-guix-daemon-0.15.0-2.8bbb79c/libexec/guix/download: line 8: /root/.config/guix/current/bin/guix: Permission denied
   /gnu/store/1w41y8q12r3dw8iphl5rpkr508881y50-guix-daemon-0.15.0-2.8bbb79c/libexec/guix/download: line 8: exec: /root/.config/guix/current/bin/guix: cannot execute: Permission denied
  ...
  (resulting build failure etc., nothing interesting)

This is on recent source code checkout (commit
fefe17b0888b467383ea91fed73a9586295c49f0) with a small modification
(update of hdf5 to 1.10.3).

My guix-daemon is started via systemd at boot time, so it should run as
root. It's from root's guix, which is about two weeks old and has not
caused any trouble before.

Konrad.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Thu, 06 Sep 2018 21:11:01 GMT) Full text and rfc822 format available.

Message #46 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: Pjotr Prins <pjotr.public12 <at> thebird.nl>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Pjotr Prins <pjotr.public12 <at> thebird.nl>, 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Thu, 6 Sep 2018 23:10:33 +0200
On Sun, Sep 02, 2018 at 10:04:32PM +0200, Ludovic Courtès wrote:
> OK.  Do reopen it if it shows up again.

Just to report that I did a successful install on one of those
machines. Starting with a 0.14 guix as root

  guix pull

restarted daemon using the new one in /root/.config/current/bin/

switched to normal user using the guix pointed in that directory

  /gnu/store/47hhyj0l4nk4na09qx1b66sz1wvpx95i-guix-command pull

Next I could run 

  ~/.config/current/bin/guix ...

everything appeared hunky dory until I need to build a package

	/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: /root/.config/guix/current/bin/guix: Permission denied
	/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: exec: /root/.config/guix/current/bin/guix: cannot execute: Permission denied
	builder for `/gnu/store/2q486ivskp2vm2rq10rs4pq949zkcz8h-evaluate_0.11.tar.gz.drv' failed with exit code 126
	cannot build derivation `/gnu/store/qaaf8i893x0ivfnw6q19l0rq5gkmlbmj-r-evaluate-0.11.drv': 1 dependencies couldn't be built
	cannot build derivation `/gnu/store/frxjc6iwwflasmj3wcm5s2934mgziaj6-r-fansi-0.3.0.drv': 1 dependencies couldn't be built
	cannot build derivation `/gnu/store/p3d9km0fi423nl66q5ncvkxcnj2kz6bv-r-rsqlite-2.1.1.drv': 1 dependencies couldn't be built
	guix package: error: build failed: build of `/gnu/store/p3d9km0fi423nl66q5ncvkxcnj2kz6bv-r-rsqlite-2.1.1.drv' failed

Again as root I did another guix pull. It instates the same daemon

  /root/.config/guix/current/bin/guix-daemon -> /gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/bin/guix-daemon

Now guix pull fails in $USER

  which guix
  /home/wrk/.config/guix/current/bin/guix

  guix pull

	Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
	Building from this channel:
		guix      https://git.savannah.gnu.org/git/guix.git   91cc2a3
	guile: warning: failed to install locale
	substitute: updating substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
	substitute: updating substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
	Downloading https://mirror.hydra.gnu.org/guix/nar/gzip/xw7kc681ivcls1lpp0qy0xljljzd70dr-groff-1.22.3...
	 groff-1.22.3  2.7MiB                                                                   1.2MiB/s 00:02 [##################] 100.0%

	/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: /root/.config/guix/current/bin/guix: Permission denied
	/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: exec: /root/.config/guix/current/bin/guix: cannot execute: Permission denied
	builder for `/gnu/store/24ag580271wa640529ycykdwj0lk0g6z-curl-7.61.1.tar.xz.drv' failed with exit code 126
	cannot build derivation `/gnu/store/17lw3svpjqygpj739yynyz6b8abddikx-curl-7.61.1.drv': 1 dependencies couldn't be built
	Backtrace:
						18 (primitive-load "/gnu/store/blfsj798qh4i2pmrcvyaidmsdiz?")
	In ice-9/eval.scm:
			155:9 17 (_ _)

Can you think of a way of getting out of this loop? What am I doing wrong here?

Pj.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Sun, 09 Sep 2018 07:21:01 GMT) Full text and rfc822 format available.

Message #49 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: Pjotr Prins <pjotr.public12 <at> thebird.nl>
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: Ludovic Courtès <ludo <at> gnu.org>,
 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Sun, 9 Sep 2018 09:20:04 +0200
Dear Ludo,

If I understand 'guix pull' correctly below should simply not be
possible, right? I mean, once you do a guix pull you have the latest
and the greatest and there should be no interference? Intriguingly
this does not happen on all my systems, just on 2 - notably my laptop
I am using in Southern France ;)

Pj.

On Thu, Sep 06, 2018 at 11:10:33PM +0200, Pjotr Prins wrote:
> On Sun, Sep 02, 2018 at 10:04:32PM +0200, Ludovic Courtès wrote:
> > OK.  Do reopen it if it shows up again.
> 
> Just to report that I did a successful install on one of those
> machines. Starting with a 0.14 guix as root
> 
>   guix pull
> 
> restarted daemon using the new one in /root/.config/current/bin/
> 
> switched to normal user using the guix pointed in that directory
> 
>   /gnu/store/47hhyj0l4nk4na09qx1b66sz1wvpx95i-guix-command pull
> 
> Next I could run 
> 
>   ~/.config/current/bin/guix ...
> 
> everything appeared hunky dory until I need to build a package
> 
> 	/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: /root/.config/guix/current/bin/guix: Permission denied
> 	/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: exec: /root/.config/guix/current/bin/guix: cannot execute: Permission denied
> 	builder for `/gnu/store/2q486ivskp2vm2rq10rs4pq949zkcz8h-evaluate_0.11.tar.gz.drv' failed with exit code 126
> 	cannot build derivation `/gnu/store/qaaf8i893x0ivfnw6q19l0rq5gkmlbmj-r-evaluate-0.11.drv': 1 dependencies couldn't be built
> 	cannot build derivation `/gnu/store/frxjc6iwwflasmj3wcm5s2934mgziaj6-r-fansi-0.3.0.drv': 1 dependencies couldn't be built
> 	cannot build derivation `/gnu/store/p3d9km0fi423nl66q5ncvkxcnj2kz6bv-r-rsqlite-2.1.1.drv': 1 dependencies couldn't be built
> 	guix package: error: build failed: build of `/gnu/store/p3d9km0fi423nl66q5ncvkxcnj2kz6bv-r-rsqlite-2.1.1.drv' failed
> 
> Again as root I did another guix pull. It instates the same daemon
> 
>   /root/.config/guix/current/bin/guix-daemon -> /gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/bin/guix-daemon
> 
> Now guix pull fails in $USER
> 
>   which guix
>   /home/wrk/.config/guix/current/bin/guix
> 
>   guix pull
> 
> 	Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
> 	Building from this channel:
> 		guix      https://git.savannah.gnu.org/git/guix.git   91cc2a3
> 	guile: warning: failed to install locale
> 	substitute: updating substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
> 	substitute: updating substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
> 	Downloading https://mirror.hydra.gnu.org/guix/nar/gzip/xw7kc681ivcls1lpp0qy0xljljzd70dr-groff-1.22.3...
> 	 groff-1.22.3  2.7MiB                                                                   1.2MiB/s 00:02 [##################] 100.0%
> 
> 	/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: /root/.config/guix/current/bin/guix: Permission denied
> 	/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: exec: /root/.config/guix/current/bin/guix: cannot execute: Permission denied
> 	builder for `/gnu/store/24ag580271wa640529ycykdwj0lk0g6z-curl-7.61.1.tar.xz.drv' failed with exit code 126
> 	cannot build derivation `/gnu/store/17lw3svpjqygpj739yynyz6b8abddikx-curl-7.61.1.drv': 1 dependencies couldn't be built
> 	Backtrace:
> 						18 (primitive-load "/gnu/store/blfsj798qh4i2pmrcvyaidmsdiz?")
> 	In ice-9/eval.scm:
> 			155:9 17 (_ _)
> 
> Can you think of a way of getting out of this loop? What am I doing wrong here?
> 
> Pj.
> 




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Sun, 09 Sep 2018 14:03:02 GMT) Full text and rfc822 format available.

Message #52 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: Pjotr Prins <pjotr.public12 <at> thebird.nl>
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: Ludovic Courtès <ludo <at> gnu.org>,
 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Sun, 9 Sep 2018 16:02:25 +0200
It is working now. After a guix pull I did a guix package -i guix in a
new profile. Restarting the daemon from there it stopped complaining!

I don't know why the deamon from guix pull straight was not working,
but at least guix is building again.

Pj.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Sun, 09 Sep 2018 14:45:02 GMT) Full text and rfc822 format available.

Message #55 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: Konrad Hinsen <konrad.hinsen <at> fastmail.net>, 32183 <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Sun, 09 Sep 2018 16:44:31 +0200
Hello,

Pjotr Prins <pjotr.public12 <at> thebird.nl> skribis:

>   guix pull
>
> 	Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
> 	Building from this channel:
> 		guix      https://git.savannah.gnu.org/git/guix.git   91cc2a3
> 	guile: warning: failed to install locale
> 	substitute: updating substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
> 	substitute: updating substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
> 	Downloading https://mirror.hydra.gnu.org/guix/nar/gzip/xw7kc681ivcls1lpp0qy0xljljzd70dr-groff-1.22.3...
> 	 groff-1.22.3  2.7MiB                                                                   1.2MiB/s 00:02 [##################] 100.0%
>
> 	/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: /root/.config/guix/current/bin/guix: Permission denied
> 	/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: exec: /root/.config/guix/current/bin/guix: cannot execute: Permission denied
> 	builder for `/gnu/store/24ag580271wa640529ycykdwj0lk0g6z-curl-7.61.1.tar.xz.drv' failed with exit code 126
> 	cannot build derivation `/gnu/store/17lw3svpjqygpj739yynyz6b8abddikx-curl-7.61.1.drv': 1 dependencies couldn't be built
> 	Backtrace:
> 						18 (primitive-load "/gnu/store/blfsj798qh4i2pmrcvyaidmsdiz?")
> 	In ice-9/eval.scm:
> 			155:9 17 (_ _)
>
> Can you think of a way of getting out of this loop? What am I doing wrong here?

I don’t think you’re doing anything wrong.  Could anyone of you who
experience this problem strace guix-daemon?  I’ve thought about this and
don’t understand where that EACCES (“Permission denied”) comes from.

Specifically, you’d have to run something along these lines as root:

  strace -f -p $(pidof guix-daemon) -o log

and then, as root or non-root (it doesn’t matter), run, say:

  guix build curl -S --no-substitutes

Thanks in advance!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Tue, 11 Sep 2018 09:35:01 GMT) Full text and rfc822 format available.

Message #58 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
To: Ludovic Courtès <ludo <at> gnu.org>, Pjotr Prins
 <pjotr.public12 <at> thebird.nl>
Cc: 32183 <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Tue, 11 Sep 2018 11:34:33 +0200
[Message part 1 (text/plain, inline)]
Hi Ludo,

> I don’t think you’re doing anything wrong.  Could anyone of you who
> experience this problem strace guix-daemon?  I’ve thought about this and
> don’t understand where that EACCES (“Permission denied”) comes from.
>
> Specifically, you’d have to run something along these lines as root:
>
>   strace -f -p $(pidof guix-daemon) -o log
>
> and then, as root or non-root (it doesn’t matter), run, say:
>
>   guix build curl -S --no-substitutes

The log file (compressed) is attached.

In doing this I noticed that I have two guix-daemon processes running:

root      1583  0.0  0.0  33156  2412 ?        Ss   08:55   0:00 /root/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild
root     13003  0.0  0.0  36028  6256 ?        Ss   11:28   0:00 /root/.config/guix/current/bin/guix-daemon 12770

I ran strace on the first one.

Konrad.

[guix-daemon-strace.log.gz (application/gzip, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Tue, 11 Sep 2018 10:13:01 GMT) Full text and rfc822 format available.

Message #61 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
Cc: Pjotr Prins <pjotr.public12 <at> thebird.nl>, 32183 <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Tue, 11 Sep 2018 12:12:15 +0200
Hi Konrad,

Konrad Hinsen <konrad.hinsen <at> fastmail.net> skribis:

>> Specifically, you’d have to run something along these lines as root:
>>
>>   strace -f -p $(pidof guix-daemon) -o log
>>
>> and then, as root or non-root (it doesn’t matter), run, say:
>>
>>   guix build curl -S --no-substitutes
>
> The log file (compressed) is attached.
>
> In doing this I noticed that I have two guix-daemon processes running:
>
> root      1583  0.0  0.0  33156  2412 ?        Ss   08:55   0:00 /root/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild
> root     13003  0.0  0.0  36028  6256 ?        Ss   11:28   0:00 /root/.config/guix/current/bin/guix-daemon 12770
>
> I ran strace on the first one.

Ooh, I see.  The log shows this:

--8<---------------cut here---------------start------------->8---
13795 setgroups(1, [999])               = 0
13795 setgid(999)                       = 0
13795 getgid()                          = 999
13795 getegid()                         = 999
13795 setuid(499)                       = 0
13795 getuid()                          = 499
13795 geteuid()                         = 499

[...]

13795 execve("/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download", ["download", "/gnu/store/j3swd19y4wzv6nrr13bv7"..., "/gnu/store/rdlndkf50sn0jq7bqkbhm"...], 0xa26f60 /* 17 vars */) = 0

[...]

13795 execve("/root/.config/guix/current/bin/guix", ["/root/.config/guix/current/bin/g"..., "perform-download", "/gnu/store/j3swd19y4wzv6nrr13bv7"..., "/gnu/store/rdlndkf50sn0jq7bqkbhm"...], 0x6c0530 /* 19 vars */) = -1 EACCES (Permission denied)
13795 stat("/root/.config/guix/current/bin/guix", 0x7fffffffe1d0) = -1 EACCES (Permission denied)
--8<---------------cut here---------------end--------------->8---

The download process is running as a build user, not as root, hence the
permission issue (silly me!).

Now we need to find a way to use ‘guix’ from root’s
~/.config/guix/current.  A solution may be to expose that profile under
/var/guix/profiles.  Needs more thought…

Thanks for helping out!

Ludo’.




Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 11 Sep 2018 10:14:02 GMT) Full text and rfc822 format available.

Severity set to 'important' from 'normal' Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Tue, 11 Sep 2018 10:14:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Tue, 11 Sep 2018 13:24:02 GMT) Full text and rfc822 format available.

Message #68 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: Pjotr Prins <pjotr.public12 <at> thebird.nl>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Konrad Hinsen <konrad.hinsen <at> fastmail.net>, 32183 <at> debbugs.gnu.org,
 Pjotr Prins <pjotr.public12 <at> thebird.nl>
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Tue, 11 Sep 2018 15:23:13 +0200
On Tue, Sep 11, 2018 at 12:12:15PM +0200, Ludovic Courtès wrote:
> The download process is running as a build user, not as root, hence the
> permission issue (silly me!).
> 
> Now we need to find a way to use ‘guix’ from root’s
> ~/.config/guix/current.  A solution may be to expose that profile under
> /var/guix/profiles.  Needs more thought…

Great! Any quick hacks to fix this? Even when I set all permissions open I get in the latest tree

./pre-inst-env guix package -i r-rqda -p ~/opt/rqda --substitute-urls="https://berlin.guixsd.org" --verbose

Building /gnu/store/nknybsl5a9wnfgd9bs13fzmjwa382ys2-libgcrypt-1.8.3.tar.bz2.drv - x86_64-linux
/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: /root/.config/guix/current/bin/guix: Permission denied
/gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: exec: /root/.config/guix/current/bin/guix: cannot execute: Permission denied
builder for `/gnu/store/nknybsl5a9wnfgd9bs13fzmjwa382ys2-libgcrypt-1.8.3.tar.bz2.drv' failed with exit code 126
Build failed: /gnu/store/nknybsl5a9wnfgd9bs13fzmjwa382ys2-libgcrypt-1.8.3.tar.bz2.drv - 1 builder for `/gnu/store/nknybsl5a9wnfgd9bs13fzmjwa382ys2-libgcrypt-1.8.3.tar.bz2.drv' failed with exit code





Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Tue, 11 Sep 2018 13:59:02 GMT) Full text and rfc822 format available.

Message #71 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: Pjotr Prins <pjotr.public12 <at> thebird.nl>
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 32183 <at> debbugs.gnu.org,
 Konrad Hinsen <konrad.hinsen <at> fastmail.net>
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Tue, 11 Sep 2018 15:58:39 +0200
On Tue, Sep 11, 2018 at 03:23:13PM +0200, Pjotr Prins wrote:
> On Tue, Sep 11, 2018 at 12:12:15PM +0200, Ludovic Courtès wrote:
> > The download process is running as a build user, not as root, hence the
> > permission issue (silly me!).
> > 
> > Now we need to find a way to use ‘guix’ from root’s
> > ~/.config/guix/current.  A solution may be to expose that profile under
> > /var/guix/profiles.  Needs more thought…
> 
> Great! Any quick hacks to fix this? Even when I set all permissions open I get in the latest tree
> 
> ./pre-inst-env guix package -i r-rqda -p ~/opt/rqda --substitute-urls="https://berlin.guixsd.org" --verbose
> 
> Building /gnu/store/nknybsl5a9wnfgd9bs13fzmjwa382ys2-libgcrypt-1.8.3.tar.bz2.drv - x86_64-linux
> /gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: /root/.config/guix/current/bin/guix: Permission denied
> /gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: exec: /root/.config/guix/current/bin/guix: cannot execute: Permission denied
> builder for `/gnu/store/nknybsl5a9wnfgd9bs13fzmjwa382ys2-libgcrypt-1.8.3.tar.bz2.drv' failed with exit code 126
> Build failed: /gnu/store/nknybsl5a9wnfgd9bs13fzmjwa382ys2-libgcrypt-1.8.3.tar.bz2.drv - 1 builder for `/gnu/store/nknybsl5a9wnfgd9bs13fzmjwa382ys2-libgcrypt-1.8.3.tar.bz2.drv' failed with exit code

Hmmm. It fixed itself when I added the mirror substitute URL again.
After that it successfully built ghostscript. Looks like the building
problem only exists in the pre-building track of guix where it builds
packages for its own use?




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Tue, 11 Sep 2018 14:27:02 GMT) Full text and rfc822 format available.

Message #74 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: Konrad Hinsen <konrad.hinsen <at> fastmail.net>, 32183 <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Tue, 11 Sep 2018 16:26:43 +0200
Pjotr Prins <pjotr.public12 <at> thebird.nl> skribis:

> On Tue, Sep 11, 2018 at 12:12:15PM +0200, Ludovic Courtès wrote:
>> The download process is running as a build user, not as root, hence the
>> permission issue (silly me!).
>> 
>> Now we need to find a way to use ‘guix’ from root’s
>> ~/.config/guix/current.  A solution may be to expose that profile under
>> /var/guix/profiles.  Needs more thought…
>
> Great! Any quick hacks to fix this?

A quick workaround is to run ‘guix-daemon’ from the ‘guix’ package.  So,
as root, you’d do:

  guix pull             # if you haven’t done it recently
  guix package -i guix  # to install or upgrade guix

Then make sure your systemd (or whatever) config file returns to
/var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon as it
does when you install Guix from the binary tarball.

HTH!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Tue, 11 Sep 2018 14:28:01 GMT) Full text and rfc822 format available.

Message #77 received at 32183 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: Konrad Hinsen <konrad.hinsen <at> fastmail.net>, 32183 <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Tue, 11 Sep 2018 16:27:23 +0200
Pjotr Prins <pjotr.public12 <at> thebird.nl> skribis:

> On Tue, Sep 11, 2018 at 03:23:13PM +0200, Pjotr Prins wrote:
>> On Tue, Sep 11, 2018 at 12:12:15PM +0200, Ludovic Courtès wrote:
>> > The download process is running as a build user, not as root, hence the
>> > permission issue (silly me!).
>> > 
>> > Now we need to find a way to use ‘guix’ from root’s
>> > ~/.config/guix/current.  A solution may be to expose that profile under
>> > /var/guix/profiles.  Needs more thought…
>> 
>> Great! Any quick hacks to fix this? Even when I set all permissions open I get in the latest tree
>> 
>> ./pre-inst-env guix package -i r-rqda -p ~/opt/rqda --substitute-urls="https://berlin.guixsd.org" --verbose
>> 
>> Building /gnu/store/nknybsl5a9wnfgd9bs13fzmjwa382ys2-libgcrypt-1.8.3.tar.bz2.drv - x86_64-linux
>> /gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: /root/.config/guix/current/bin/guix: Permission denied
>> /gnu/store/sf84mb2y5vcykwq9fv02l2nipp34qng2-guix-daemon-0.15.0-3.3d43017/libexec/guix/download: line 8: exec: /root/.config/guix/current/bin/guix: cannot execute: Permission denied
>> builder for `/gnu/store/nknybsl5a9wnfgd9bs13fzmjwa382ys2-libgcrypt-1.8.3.tar.bz2.drv' failed with exit code 126
>> Build failed: /gnu/store/nknybsl5a9wnfgd9bs13fzmjwa382ys2-libgcrypt-1.8.3.tar.bz2.drv - 1 builder for `/gnu/store/nknybsl5a9wnfgd9bs13fzmjwa382ys2-libgcrypt-1.8.3.tar.bz2.drv' failed with exit code
>
> Hmmm. It fixed itself when I added the mirror substitute URL again.
> After that it successfully built ghostscript. Looks like the building
> problem only exists in the pre-building track of guix where it builds
> packages for its own use?

The issue affects downloads only (fixed-output derivations, not
substitutes.)

Ludo’.




Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Thu, 11 Oct 2018 16:33:02 GMT) Full text and rfc822 format available.

Notification sent to Pjotr Prins <pjotr.public12 <at> thebird.nl>:
bug acknowledged by developer. (Thu, 11 Oct 2018 16:33:02 GMT) Full text and rfc822 format available.

Message #82 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: Konrad Hinsen <konrad.hinsen <at> fastmail.net>, 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Thu, 11 Oct 2018 18:32:20 +0200
Hi there!

I believe commit ed9d7cb4d95f8f4776e6fee2778ab52bc2852969 fixes it.

That is, if you run ‘guix pull’ as root and then start
~/.config/guix/current/bin/guix-daemon, everything should be fine.

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Fri, 12 Oct 2018 07:00:02 GMT) Full text and rfc822 format available.

Message #85 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
To: Ludovic Courtès <ludo <at> gnu.org>,
 Pjotr Prins <pjotr.public12 <at> thebird.nl>
Cc: 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’ /root/.config/current/bin/guix: Permission denied
Date: Fri, 12 Oct 2018 08:59:13 +0200
Hi Ludo,
> I believe commit ed9d7cb4d95f8f4776e6fee2778ab52bc2852969 fixes it.
>
> That is, if you run ‘guix pull’ as root and then start
> ~/.config/guix/current/bin/guix-daemon, everything should be fine.
Let's say the bug seems to be elsewhere now ;-)

When I try to build something after following your instructions, I get 
the error message

/gnu/store/bkkf11ixn67cwcw05nw9w9yd68i4jf23-guix-daemon-0.15.0-5.1d0be47/libexec/guix/download: 
line 8: /var/guix/profiles/per-user/root/current-guix/bin/guix: No such 
file or directory

And indeed there is no guix at that place. I guess it should be

/var/guix/profiles/per-user/root/guix-profile/bin/guix

I can try fixing the download script and testing again, but not before 
next week, sorry!

Konrad.





Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Fri, 12 Oct 2018 12:59:02 GMT) Full text and rfc822 format available.

Message #88 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
Cc: Pjotr Prins <pjotr.public12 <at> thebird.nl>, 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Fri, 12 Oct 2018 14:57:53 +0200
Hello,

Konrad Hinsen <konrad.hinsen <at> fastmail.net> skribis:

>> I believe commit ed9d7cb4d95f8f4776e6fee2778ab52bc2852969 fixes it.
>>
>> That is, if you run ‘guix pull’ as root and then start
>> ~/.config/guix/current/bin/guix-daemon, everything should be fine.
> Let's say the bug seems to be elsewhere now ;-)
>
> When I try to build something after following your instructions, I get
> the error message
>
> /gnu/store/bkkf11ixn67cwcw05nw9w9yd68i4jf23-guix-daemon-0.15.0-5.1d0be47/libexec/guix/download:
> line 8: /var/guix/profiles/per-user/root/current-guix/bin/guix: No
> such file or directory

Hmm you might need to run, say, ‘guix pull -l’, to make this script
magically appear.  :-)

Concretely, the new ‘guix pull’ migrates things from ~/.config/guix to
/var/guix/profiles the first time you run it, but it may be that you
haven’t yet run the *new* ‘guix pull’.

HTH,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Sun, 14 Oct 2018 18:13:02 GMT) Full text and rfc822 format available.

Message #91 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: Pjotr Prins <pjotr.public12 <at> thebird.nl>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Pjotr Prins <pjotr.public12 <at> thebird.nl>, 32183-done <at> debbugs.gnu.org,
 Konrad Hinsen <konrad.hinsen <at> fastmail.net>
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Sun, 14 Oct 2018 20:12:18 +0200
On Thu, Oct 11, 2018 at 06:32:20PM +0200, Ludovic Courtès wrote:
> Hi there!
> 
> I believe commit ed9d7cb4d95f8f4776e6fee2778ab52bc2852969 fixes it.
> 
> That is, if you run ‘guix pull’ as root and then start
> ~/.config/guix/current/bin/guix-daemon, everything should be fine.

It works on one problematic machine. Thanks!

Pj.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Mon, 15 Oct 2018 12:00:02 GMT) Full text and rfc822 format available.

Message #94 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’ /root/.config/current/bin/guix: Permission denied
Date: Mon, 15 Oct 2018 13:59:05 +0200
Hi Ludo,

> Hmm you might need to run, say, ‘guix pull -l’, to make this script
> magically appear.  :-)
>
> Concretely, the new ‘guix pull’ migrates things from ~/.config/guix to
> /var/guix/profiles the first time you run it, but it may be that you
> haven’t yet run the *new* ‘guix pull’.

That looks like the right direction, since running "guix pull -l" starts 
by saying

   Migrating profile generations to '/var/guix/profiles/per-user/root'...

Unfortunately, its next statement is just as magic but less pleasant:

Backtrace:
           6 (primitive-load "/root/.config/guix/current/bin/guix")
In guix/ui.scm:
  1583:12  5 (run-guix-command _ . _)
In ice-9/boot-9.scm:
    829:9  4 (catch srfi-34 #<procedure 337dc80 at guix/ui.scm:615:…> …)
    829:9  3 (catch system-error #<procedure 337dd20 at guix/script…> …)
    829:9  2 (catch git-error #<procedure 337dbe0 at guix/scripts/p…> …)
    829:9  1 (catch system-error #<procedure 3391a60 at guix/script…> …)
In unknown file:
           0 (raise #<condition &profile-not-found-error [profile: "…>)

ERROR: In procedure raise:
Wrong type (expecting exact integer): #<condition 
&profile-not-found-error [profile: 
"/var/guix/profiles/per-user/root/current-guix"] 338b460>


This looks like an error in an error-raising procedure, something like  
a meta-error ;-)

Looking at

  ~# ls -l /var/guix/profiles/per-user/root/current-guix
   lrwxrwxrwx 1 root root 14 oct.  15 13:51 
/var/guix/profiles/per-user/root/current-guix -> current-4-link

yields  a link that is indeed missing. What I do have is 
current-guix-4-link, but not a plain current-4-link.

Konrad.





Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Mon, 15 Oct 2018 19:34:01 GMT) Full text and rfc822 format available.

Message #97 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
Cc: 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Mon, 15 Oct 2018 21:33:36 +0200
Hi Konrad,

Konrad Hinsen <konrad.hinsen <at> fastmail.net> skribis:

> This looks like an error in an error-raising procedure, something
> like  a meta-error ;-)

The horror bug department worked hard to deliver this one.  :-)

> Looking at
>
>   ~# ls -l /var/guix/profiles/per-user/root/current-guix
>    lrwxrwxrwx 1 root root 14 oct.  15 13:51
> /var/guix/profiles/per-user/root/current-guix -> current-4-link
>
> yields  a link that is indeed missing. What I do have is
> current-guix-4-link, but not a plain current-4-link.

Yes, it’s one of the thinkos I made, fixed in
aa227b3be3d7728331a08dbd139c47c9b271dc23.

If you’re familiar with Dired in Emacs, I’d suggest opening
/var/guix/profiles/per-user/root and fixing the symlink targets from
there (with C-c C-q).

If not I can try and come up with a script to do that.

Apologies for the mess!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Tue, 16 Oct 2018 10:42:02 GMT) Full text and rfc822 format available.

Message #100 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Tue, 16 Oct 2018 12:41:01 +0200
Hi Ludo,

> If you’re familiar with Dired in Emacs, I’d suggest opening
> /var/guix/profiles/per-user/root and fixing the symlink targets from
> there (with C-c C-q).

Done. And after rebooting, guix seems to work fine for root, including
the download phase. Meaning that I consider this bug fixed.

But there still seems to be some collateral damage, since I could not
use "guix pull" any more on my standard user account:

  $ guix pull
  Migrating profile generations to '/var/guix/profiles/per-user/hinsen'...
  guix pull: error: rename-file: Invalid cross-device link

This looks like guix is trying to use a hard link instead of a symbolic
link somewhere. I found a way around which I describe here for the
benefit of others who might find themselves in the same situation:

 - check out a local copy of the Guix repository 
 - configure and make as described in the manual
 - ./pre-inst-env guix pull

That does the profile migration using the very latest code. After that
the standard guix command seems to work fine again.

Konrad.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Wed, 17 Oct 2018 08:45:02 GMT) Full text and rfc822 format available.

Message #103 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
Cc: 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Wed, 17 Oct 2018 10:44:11 +0200
Hello Konrad,

Konrad Hinsen <konrad.hinsen <at> fastmail.net> skribis:

> But there still seems to be some collateral damage, since I could not
> use "guix pull" any more on my standard user account:
>
>   $ guix pull
>   Migrating profile generations to '/var/guix/profiles/per-user/hinsen'...
>   guix pull: error: rename-file: Invalid cross-device link

This was fixed in a subsequent commit:

  https://git.savannah.gnu.org/cgit/guix.git/commit/?id=8036b0942b89022147aaf9cd9940988fdbcc19ef

To work around it, you can pull from an older generation, along these
lines:

  ~/.config/guix/current-42-link/bin/guix pull

(This will work because this older guix won’t attempt to move your
generations to /var/guix/profiles, so it allows you to “jump over” the
bug.)

Let me know how it goes!

It’s terrible that a function like this that looks trivial has been
causing so much trouble.  Sorry about that.  :-/

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Wed, 17 Oct 2018 09:18:01 GMT) Full text and rfc822 format available.

Message #106 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Wed, 17 Oct 2018 11:17:25 +0200
Hi Ludo,

> To work around it, you can pull from an older generation, along these
> lines:
>
>   ~/.config/guix/current-42-link/bin/guix pull
>
> (This will work because this older guix won’t attempt to move your
> generations to /var/guix/profiles, so it allows you to “jump over” the
> bug.)
>
> Let me know how it goes!

I cannot try any more because I already used another workaround, meaning
that my profiles are properly migrated.

> It’s terrible that a function like this that looks trivial has been
> causing so much trouble.  Sorry about that.  :-/

Lesson learned: avoid messing around with mutable state. How about
creating a functional package manager?  ;-)

Konrad.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Wed, 17 Oct 2018 23:08:02 GMT) Full text and rfc822 format available.

Message #109 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
Cc: 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Thu, 18 Oct 2018 01:06:54 +0200
Konrad Hinsen <konrad.hinsen <at> fastmail.net> skribis:

>> To work around it, you can pull from an older generation, along these
>> lines:
>>
>>   ~/.config/guix/current-42-link/bin/guix pull
>>
>> (This will work because this older guix won’t attempt to move your
>> generations to /var/guix/profiles, so it allows you to “jump over” the
>> bug.)
>>
>> Let me know how it goes!
>
> I cannot try any more because I already used another workaround, meaning
> that my profiles are properly migrated.

Good.

>> It’s terrible that a function like this that looks trivial has been
>> causing so much trouble.  Sorry about that.  :-/
>
> Lesson learned: avoid messing around with mutable state. How about
> creating a functional package manager?  ;-)

That’s an idea worth pondering.  :-)

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Fri, 02 Nov 2018 14:33:01 GMT) Full text and rfc822 format available.

Message #112 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: swedebugia <swedebugia <at> riseup.net>
To: Konrad Hinsen <konrad.hinsen <at> fastmail.net>, Ludovic Courtès <ludo <at> gnu.org>
Cc: 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’ /root/.config/current/bin/guix: Permission denied
Date: Fri, 2 Nov 2018 15:38:09 +0100
Hi

On 2018-10-17 11:17, Konrad Hinsen wrote:
>
> Lesson learned: avoid messing around with mutable state. How about
> creating a functional package manager?  ;-)
LOL

This whole update to guix pull was somewhat a breaking change, but 
unfortunately it was very hard to imagine the repercussions (horrible 
bugs) down the line...

Could it have been completely avoided by introducing it as such and 
forced people to reinstall/upgrade by reinstall (overwriting all files 
and invalidating the store etc.)?

-- 
Cheers
Swedebugia





Information forwarded to bug-guix <at> gnu.org:
bug#32183; Package guix. (Sat, 03 Nov 2018 14:14:02 GMT) Full text and rfc822 format available.

Message #115 received at 32183-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: swedebugia <swedebugia <at> riseup.net>
Cc: Konrad Hinsen <konrad.hinsen <at> fastmail.net>, 32183-done <at> debbugs.gnu.org
Subject: Re: bug#32183: New ‘guix pull’
 /root/.config/current/bin/guix: Permission denied
Date: Sat, 03 Nov 2018 15:13:30 +0100
Hello,

swedebugia <swedebugia <at> riseup.net> skribis:

> This whole update to guix pull was somewhat a breaking change, but
> unfortunately it was very hard to imagine the repercussions (horrible
> bugs) down the line...
>
> Could it have been completely avoided by introducing it as such and
> forced people to reinstall/upgrade by reinstall (overwriting all files
> and invalidating the store etc.)?

Fundamentally, it’s just about moving files from ~/.config/guix to
/var/guix/profiles/per-user/$USER, which I thought was fairly harmless.

Also, the bug was around for a few days.  Those who were away during
those days didn’t notice.

That said, I agree this was poorly handled.  One way to improve it would
be to have several people run the code on their machine before it goes
to master (it’s the kind of code for which we can hardly write unit
tests, and it’s single-use code.)

Thanks,
Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 02 Dec 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 145 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.