guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New ‘guix pull’ /root/.config/current/bin/guix: Permission denied


From: Pjotr Prins
Subject: Re: New ‘guix pull’ /root/.config/current/bin/guix: Permission denied
Date: Fri, 13 Jul 2018 10:39:02 +0200
User-agent: NeoMutt/20170113 (1.7.2)

There are still some rough edges and I am stuck again. Running daemon:

  /root/.config/current/bin/guix-daemon --build-users-group=guixbuild --version
  guix-daemon (GNU Guix) 0.15.0-1.4876bc8

Running client as normal user

  ~/.config/guix/current/bin/guix --version
  guix (GNU Guix) ecba50bb79a49b317c4b1e718f4732b36438227f

(which is the latest pull) 

and

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

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

This is a blocker since I can't build from source either. 
/root/.config/current/bin/guix exists and gives

     guix (GNU Guix) ecba50bb79a49b317c4b1e718f4732b36438227f

Apparently the user client need to access /root. What to do? 

Note my environment is pretty bare.

Pj.


guile: warning: failed to install locale
hint: Consider installing the `glibc-utf8-locales' or `glibc-locales' package 
and defining `GUIX_LOCPATH', along these lines:

     guix package -i glibc-utf8-locales
     export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"

See the "Application Setup" section in the manual, for more info.


substitute: 
/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash: 
warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)
substitute: guile: warning: failed to install locale
substitute: hint: Consider installing the `glibc-utf8-locales' or 
`glibc-locales' package and
substitute: defining `GUIX_LOCPATH', along these lines:
substitute:
substitute:      guix package -i glibc-utf8-locales
substitute:      export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
substitute:
substitute: See the "Application Setup" section in the manual, for more info.
substitute:
substitute:
Updating from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Building from Git commit 9286c2950494b110e12d58d4ebd693d614120afe...
guile: warning: failed to install locale
Computing Guix derivation for 'x86_64-linux'... 
|/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash: 
warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)
/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/j3swd19y4wzv6nrr13bv73ipndwmd0wb-curl-7.61.0.tar.xz.drv' failed 
with exit code 126
cannot build derivation 
`/gnu/store/6wvy70rjjmn2w8pfzq7hyylvh88rx3rw-curl-7.61.0.drv': 1 dependencies 
couldn't be built
Backtrace:
          18 (primitive-load "/gnu/store/gc99a43pkmx9c47naa667n0yin3?")
In ice-9/eval.scm:
    155:9 17 (_ _)
    159:9 16 (_ #(#(#(#(#(#(#(#(#(#(#(?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
In ./guix/store.scm:
  1455:24 15 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
In ./guix/gexp.scm:
    670:2 14 (_ _)
In ./guix/monads.scm:
    485:9 13 (_ _)
In ./guix/gexp.scm:
   542:22 12 (_ _)
    670:2 11 (_ _)
In ./guix/monads.scm:
    485:9 10 (_ _)
In ./guix/gexp.scm:
   542:22  9 (_ _)
    670:2  8 (_ _)
In ./guix/monads.scm:
    485:9  7 (_ _)
In ./guix/gexp.scm:
   542:22  6 (_ _)
In ./guix/store.scm:
  1354:38  5 (_ #<build-daemon 256.97 1f27fa0>)
In ./guix/packages.scm:
   878:14  4 (cache! #<weak-table 447/883> #<package address@hidden> ?)
In unknown file:
           3 (_ #<procedure thunk ()> #<procedure list _> #<undefined>)
In ./guix/packages.scm:
  1202:22  2 (thunk)
  1135:25  1 (bag->derivation #<build-daemon 256.97 1f27fa0> #<<bag?> ?)
In srfi/srfi-1.scm:
   592:17  0 (map1 (("source" #<origin #<<git-reference> url: "?>) ?))

srfi/srfi-1.scm:592:17: In procedure map1:
Throw to key `srfi-34' with args `(#<condition &nix-protocol-error [message: 
"build of `/gnu/store/6wvy70rjjmn2w8pfzq7hyylvh88rx3rw-curl-7.61.0.drv' failed" 
status: 1] 4917540>)'.
Backtrace:
           9 (primitive-load "/home/pjotr/.config/guix/current/bin/g?")
In guix/ui.scm:
  1579:12  8 (run-guix-command _ . _)
In ice-9/boot-9.scm:
    829:9  7 (catch _ _ #<procedure 7f05d5f5f9b8 at guix/ui.scm:611?> ?)
    829:9  6 (catch _ _ #<procedure 7f05d5f5f9d0 at guix/ui.scm:729?> ?)
    829:9  5 (catch _ _ #<procedure 7f05d2bcb7a0 at guix/scripts/pu?> ?)
In guix/scripts/pull.scm:
   391:22  4 (_)
In guix/store.scm:
  1455:24  3 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
In guix/scripts/pull.scm:
    239:2  2 (_ _)
In ice-9/eval.scm:
   191:27  1 (_ #(#(#<directory (build-self) 2c03820> #<procedu?>) ?))
In unknown file:
           0 (scm-error misc-error #f "~A ~S" ("invalid build re?" ?) ?)

ERROR: In procedure scm-error:
invalid build result (#<derivation 
/gnu/store/cdvhkxf9vrk4k2rdxhjmwv0250m88s0x-compute-guix-derivation.drv => 
/gnu/store/gc99a43pkmx9c47naa667n0yin3r0f7h-compute-guix-derivation 364a550> "")


On Thu, Jul 12, 2018 at 06:44:56PM +0200, Pjotr Prins wrote:
> On Thu, Jul 12, 2018 at 04:29:02PM +0200, Ricardo Wurmus wrote:
> > 
> > Pjotr Prins <address@hidden> writes:
> > 
> > > On Thu, Jul 12, 2018 at 04:17:32PM +0200, Ricardo Wurmus wrote:
> > >> “guix pull” updates its own profile only.  It updates
> > >> ~/.config/guix/current, so you need to use Guix from
> > >> ~/.config/guix/current/bin.
> > >
> > > And it says so after guix pull. It is easy to forget however.
> > >
> > > Why don't we (also) add it to the default guix profile? To most users
> > > this would make sense. No point in running guix pull if you don't want
> > > to update guix itself - right?
> > 
> > It does update Guix itself.  The “guix” package, however, should
> > generally not be installed into a user profile, because it is always
> > necessarily *older* than the version of Guix that you are using to
> > install it (unless you’re using “--with-source” to use a more recent
> > tarball).
> 
> Hmmm. I don't understand. I would think it the other way round: the
> guix package you install is newer than the running daemon. But, no
> matter. Maybe we should just accentuate that guix gets its own independent
> profile. That I can understand ;). So it should *never* be in the user
> profile. Not even by accident.
> 
> Pj.
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]