Re: system vm fails (reprise)

2018-03-16 Thread Catonano
2018-03-16 23:20 GMT+01:00 Björn Höfling 
:

> On Fri, 16 Mar 2018 21:54:24 +0100
> Catonano  wrote:
>
> > 2018-03-16 21:38 GMT+01:00 Marius Bakke :
> >
> > > Catonano  writes:
> > >
> > > > ~$ guix system vm ~/configs/vm-config-desktop.scm \
> > > >>--image-size=10GB \
> > > >>--share=$HOME/transit=/transit
> > > > guix system: error: build failed: error parsing derivation
> > > > `/gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv':
> > > > expected string `Derive(['
> > >
> > > This is very odd.  Can you paste the output of:
> > >
> > > cat /gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv ?
> > >
> > > Does it make any difference if you drop --image-size (which is now
> > > autodetected) and/or --share?
> > >
> >
> >
> > catonano@xps ~/projects/guix$ cat
> > /gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv
> > catonano@xps ~/projects/guix$
> >
> > also
> >
> > catonano@xps ~/projects/guix$ ls -lha
> > /gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv
> > -r--r--r-- 2 root root 0  1 gen  1970
> >
> > catonano@xps ~/projects/guix$
> >
> >
> > it's an empty file !
>
> Just a blind guess, not sure if that thing is alive or dead:
>
> Can you try:
>
> guix gc -d /gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv
>
> And then start again with your `guix system vm ...`
>
>
> Björn
>


After "guix gc" it works !!

Thanks !!


Re: system vm fails (reprise)

2018-03-16 Thread Marius Bakke
Catonano  writes:

> ~$ guix system vm ~/configs/vm-config-desktop.scm \
>>--image-size=10GB \
>>--share=$HOME/transit=/transit
> guix system: error: build failed: error parsing derivation
> `/gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv': expected
> string `Derive(['

This is very odd.  Can you paste the output of:

cat /gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv ?

Does it make any difference if you drop --image-size (which is now
autodetected) and/or --share?


signature.asc
Description: PGP signature


Re: system vm fails (reprise)

2018-03-16 Thread Catonano
2018-03-16 21:38 GMT+01:00 Marius Bakke :

> Catonano  writes:
>
> > ~$ guix system vm ~/configs/vm-config-desktop.scm \
> >>--image-size=10GB \
> >>--share=$HOME/transit=/transit
> > guix system: error: build failed: error parsing derivation
> > `/gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv': expected
> > string `Derive(['
>
> This is very odd.  Can you paste the output of:
>
> cat /gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv ?
>
> Does it make any difference if you drop --image-size (which is now
> autodetected) and/or --share?
>


catonano@xps ~/projects/guix$ cat
/gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv
catonano@xps ~/projects/guix$

also

catonano@xps ~/projects/guix$ ls -lha
/gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv
-r--r--r-- 2 root root 0  1 gen  1970
/gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv
catonano@xps ~/projects/guix$


it's an empty file !

This is without the --share thing

catonano@xps ~/projects/guix$ guix system vm
~/configs/vm-config-desktop.scm \
>--image-size=10GB
Backtrace:
In guix/gexp.scm:
637:2 19 (_ _)
In guix/monads.scm:
485:9 18 (_ _)
In guix/gexp.scm:
   519:22 17 (_ _)
In guix/store.scm:
  1362:38 16 (_ #)
In guix/derivations.scm:
   718:24 15 (derivation # "etc" _ _ # _ …)
   674:39 14 (derivation-hash #  855daa0>)
   642:19 13 (derivation/masked-inputs _)
In srfi/srfi-1.scm:
   592:29 12 (map1 (#< path: "/gnu/store/2qpk1f…> …))
   592:29 11 (map1 (#< path: "/gnu/store/2xg333…> …))
   592:29 10 (map1 (#< path: "/gnu/store/57car5…> …))
   592:29  9 (map1 (#< path: "/gnu/store/75a9hf…> …))
   592:29  8 (map1 (#< path: "/gnu/store/7fb2pw…> …))
   592:29  7 (map1 (#< path: "/gnu/store/bw12nm…> …))
   592:17  6 (map1 (#< path: "/gnu/store/dp8ywh…> …))
In guix/derivations.scm:
   644:39  5 (_ _)
In guix/memoization.scm:
100:0  4 (_ # "/gnu/store/dp8ywhh…" …)
In guix/derivations.scm:
   634:22  3 (_)
   494:17  2 (read-derivation-from-file "/gnu/store/dp8ywhh22n8ixikq…")
In ice-9/ports.scm:
   444:17  1 (call-with-input-file _ _ #:binary _ #:encoding _ # _)
In unknown file:
   0 (scm-error misc-error #f "~A ~S ~S" ("failed to par…" …) …)

ERROR: In procedure scm-error:
failed to parse derivation # ()
catonano@xps ~/projects/guix$ guix system vm
~/configs/vm-config-desktop.scm


and this is without the image size thing

catonano@xps ~/projects/guix$ guix system vm
~/configs/vm-config-desktop.scm \
>--share=$HOME/transit=/transit
guix system: error: build failed: error parsing derivation
`/gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv': expected
string `Derive(['
catonano@xps ~/projects/guix$


Re: system vm fails (reprise)

2018-03-16 Thread Marius Bakke
Catonano  writes:

> Ok, so in running
>
> sudo -E guix ...
>
> I had messed up my installation, so guix pull didn't work anymore
>
> I think I fixed it now
>
> guix pull ust worked, I reconfigured my system
>
> but this still happens
>
> $ ./pre-inst-env guix system vm ~/configs/vm-config-desktop.scm \
>>--image-size=10GB \
>>--share=$HOME/transit=/transit
> guix system: error: build failed: error parsing derivation
> `/gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv': expected
> string `Derive(['

Do you get the same error if you don't use "./pre-inst-env"?

What does 'git describe' output in your repository?


signature.asc
Description: PGP signature


system vm fails (reprise)

2018-03-16 Thread Catonano
Ok, so in running

sudo -E guix ...

I had messed up my installation, so guix pull didn't work anymore

I think I fixed it now

guix pull ust worked, I reconfigured my system

but this still happens

$ ./pre-inst-env guix system vm ~/configs/vm-config-desktop.scm \
>--image-size=10GB \
>--share=$HOME/transit=/transit
guix system: error: build failed: error parsing derivation
`/gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv': expected
string `Derive(['
catonano@xps ~/projects/guix$


Re: system vm fails

2018-03-16 Thread Catonano
2018-03-16 18:35 GMT+01:00 Catonano :

>
>
> 2018-03-16 18:14 GMT+01:00 Marius Bakke :
>
>> Catonano  writes:
>>
>> > and from a checked out gix I get
>> >
>> > ~/projects/guix$ sudo ./pre-inst-env guix pull
>> > guix pull: error: Guile-Git is missing but it is now required by 'guix
>> > pull'.
>> > Install it by running:
>> >
>> >   guix package -i guile-git
>> >   export
>> > GUILE_LOAD_PATH=$HOME/.guix-profile/share/guile/site/2.2:$GU
>> ILE_LOAD_PATH
>> >   export
>> > GUILE_LOAD_COMPILED_PATH=$HOME/.guix-profile/lib/guile/2.2/
>> site-ccache:$GUILE_LOAD_COMPILED_PATH
>>
>> When using a git checkout, you must run "./configure [...]" again every
>> time you wish to add new libraries to the environment.
>>
>
>
> thank you
>
> that didn't help :-/
>




Ok

Chris Webber saved my day

I hhad messed p the permissions on ~/.cache/guix somehow

He suggested me to restore them and al of a sudden everything worked again !


Re: system vm fails

2018-03-16 Thread Catonano
2018-03-16 18:14 GMT+01:00 Marius Bakke :

> Catonano  writes:
>
> > and from a checked out gix I get
> >
> > ~/projects/guix$ sudo ./pre-inst-env guix pull
> > guix pull: error: Guile-Git is missing but it is now required by 'guix
> > pull'.
> > Install it by running:
> >
> >   guix package -i guile-git
> >   export
> > GUILE_LOAD_PATH=$HOME/.guix-profile/share/guile/site/2.2:$
> GUILE_LOAD_PATH
> >   export
> > GUILE_LOAD_COMPILED_PATH=$HOME/.guix-profile/lib/guile/
> 2.2/site-ccache:$GUILE_LOAD_COMPILED_PATH
>
> When using a git checkout, you must run "./configure [...]" again every
> time you wish to add new libraries to the environment.
>


thank you

that didn't help :-/


Re: system vm fails

2018-03-16 Thread Catonano
and from a checked out gix I get

~/projects/guix$ sudo ./pre-inst-env guix pull
guix pull: error: Guile-Git is missing but it is now required by 'guix
pull'.
Install it by running:

  guix package -i guile-git
  export
GUILE_LOAD_PATH=$HOME/.guix-profile/share/guile/site/2.2:$GUILE_LOAD_PATH
  export
GUILE_LOAD_COMPILED_PATH=$HOME/.guix-profile/lib/guile/2.2/site-ccache:$GUILE_LOAD_COMPILED_PATH


2018-03-16 16:36 GMT+01:00 Catonano :

>
>
> 2018-03-16 16:12 GMT+01:00 Catonano :
>
>>
>>
>> 2018-03-16 15:57 GMT+01:00 Leo Famulari :
>>
>>> On Thu, Mar 15, 2018 at 10:02:02PM +0100, Catonano wrote:
>>> > after some time that I didn't try, I issued this command
>>> >
>>> > ~$ guix system vm ~/configs/vm-config-desktop.scm \
>>> > >--image-size=10GB \
>>> > >--share=$HOME/transit=/transit
>>> >
>>> >
>>> > and I got
>>> >
>>> >
>>> > Backtrace:
>>>
>>> What is the output of `guix --version`?
>>>
>>
>>
>> catonano@xps ~$ guix --version
>> guix (GNU Guix) 1b5905fe689716e73ad7defc1bf8c6a13966f3c1
>> Copyright (C) 2018 the Guix authors
>> License GPLv3+: GNU GPL version 3 or later > tml>
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.
>> catonano@xps ~$
>>
>>
>
> I just realized that
>
> sudo guix pull
>
> gives me
>
> guix pull: error: could not find bootstrap binary 'guile-2.0.9.tar.xz' for
> system 'x86_64-linux'
>
> last time I used
>
> sudo -E guix pull
>


Re: system vm fails

2018-03-16 Thread Catonano
2018-03-16 16:12 GMT+01:00 Catonano :

>
>
> 2018-03-16 15:57 GMT+01:00 Leo Famulari :
>
>> On Thu, Mar 15, 2018 at 10:02:02PM +0100, Catonano wrote:
>> > after some time that I didn't try, I issued this command
>> >
>> > ~$ guix system vm ~/configs/vm-config-desktop.scm \
>> > >--image-size=10GB \
>> > >--share=$HOME/transit=/transit
>> >
>> >
>> > and I got
>> >
>> >
>> > Backtrace:
>>
>> What is the output of `guix --version`?
>>
>
>
> catonano@xps ~$ guix --version
> guix (GNU Guix) 1b5905fe689716e73ad7defc1bf8c6a13966f3c1
> Copyright (C) 2018 the Guix authors
> License GPLv3+: GNU GPL version 3 or later  html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> catonano@xps ~$
>
>

I just realized that

sudo guix pull

gives me

guix pull: error: could not find bootstrap binary 'guile-2.0.9.tar.xz' for
system 'x86_64-linux'

last time I used

sudo -E guix pull


Re: system vm fails

2018-03-16 Thread Catonano
2018-03-16 15:57 GMT+01:00 Leo Famulari :

> On Thu, Mar 15, 2018 at 10:02:02PM +0100, Catonano wrote:
> > after some time that I didn't try, I issued this command
> >
> > ~$ guix system vm ~/configs/vm-config-desktop.scm \
> > >--image-size=10GB \
> > >--share=$HOME/transit=/transit
> >
> >
> > and I got
> >
> >
> > Backtrace:
>
> What is the output of `guix --version`?
>


catonano@xps ~$ guix --version
guix (GNU Guix) 1b5905fe689716e73ad7defc1bf8c6a13966f3c1
Copyright (C) 2018 the Guix authors
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
catonano@xps ~$


Re: system vm fails

2018-03-16 Thread Leo Famulari
On Thu, Mar 15, 2018 at 10:02:02PM +0100, Catonano wrote:
> after some time that I didn't try, I issued this command
> 
> ~$ guix system vm ~/configs/vm-config-desktop.scm \
> >--image-size=10GB \
> >--share=$HOME/transit=/transit
> 
> 
> and I got
> 
> 
> Backtrace:

What is the output of `guix --version`?


signature.asc
Description: PGP signature


Re: Failed to connect to `/var/guix/daemon-socket/socket': Connection refused

2018-03-16 Thread Catonano
2018-03-16 7:27 GMT+01:00 :

> Hello, Eric,
>
> The Guix daemon was active and enabled when I checked systemctl, and a
> daemon reload didn't work, either.
> A reboot seemed to do the trick, at least I was able to successfully run
> 'guix build guix' after that.
>
> But now when I try to run 'guix pull' to update my packages, I get:
>
> Updating from Git repository at 'https://git.savannah.gnu.org/
> git/guix.git'...
> guix pull: error: mkdir: Permission denied
>
> guix pull works as the root user (or at least it runs, I'm still waiting
> to see if it exits with no errors), but not as 'sudo' from my non-root
> account (that one just spits out a somewhat lengthy error that I cannot
> remember by heart)
>
> -Muto
>
>
this is more difficult, for me at least

I know it´ s past midnight where you live

Go to sleep now, tomorrow you'll find some answers !


Re: Failed to connect to `/var/guix/daemon-socket/socket': Connection refused

2018-03-16 Thread Catonano
2018-03-15 21:47 GMT+01:00 Muto :

> Hello,
>
> I am running the Guix package manager on Ubuntu (17.10), but whenever I
> try to do anything as a non-root user, I get an error:
>
> failed to connect to `/var/guix/daemon-socket/socket': Connection
> refused
>
> I've tried this for every command listed in 'guix -h'
> I can 'chmod -R 777 /var' or 'chmod -R 777 /gnu' but these seem to do
> nothing.
>
>
> I get the same "Connection refused" error both on using 'sudo' and with
> using Guix as the root account. I can still run all of the programs I
> installed via Guix, I just cannot use the package management utility
> anymore.
>
> I'm sorry to be a bother, but I've been a little frustrated with Guix
> lately and I could not find a viable solution online.
>

that's why the help liist exists, no bother :-)

Sounds like your daemon is not running

Wold you mind to paste the otput of

ps -e | grep guix

In case it's not running, thhere's an excerpt in the manual about how to
make it run

It's the step no. 5 in the "Binaty Installation" chapter

It's strange that your daemon is not running

Maybe you used the experimental script in order to install your guix ?

Anyway, paste te output of that line, then we'll see how to procede

Hope this hepls !
Ciao :-)



> --
> Thank you in advance. -Muto
> https://muto.ca/
>
>


Re: Failed to connect to `/var/guix/daemon-socket/socket': Connection refused

2018-03-16 Thread shack
Hello, Eric,

The Guix daemon was active and enabled when I checked systemctl, and a
daemon reload didn't work, either.
A reboot seemed to do the trick, at least I was able to successfully run 'guix 
build guix' after that.

But now when I try to run 'guix pull' to update my packages, I get:

Updating from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
guix pull: error: mkdir: Permission denied

guix pull works as the root user (or at least it runs, I'm still waiting
to see if it exits with no errors), but not as 'sudo' from my non-root
account (that one just spits out a somewhat lengthy error that I cannot
remember by heart)

-Muto