Re: system vm fails (reprise)

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

> On Tue, 20 Mar 2018 11:54:54 +0100
> l...@gnu.org (Ludovic Courtès) wrote:
>
> > Catonano  skribis:
> >
> > > 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(['
> >
> > [...]
> >
> > >> guix gc
> > >> -d /gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv
> > >>
> > >> And then start again with your `guix system vm ...`
> > >>
> > >>
> > >> Björn
> > >>
> > >
> > >
> > > After "guix gc" it works !!
> >
> > Looks like you had corrupt files, which is a bad sign.
>
>
> Marius opened a bug for this one:
>
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30875
>
> Björn
>


Yes Björn, thank you, I saw it


Re: system vm fails (reprise)

2018-03-20 Thread Björn Höfling
On Tue, 20 Mar 2018 11:54:54 +0100
l...@gnu.org (Ludovic Courtès) wrote:

> Catonano  skribis:
> 
> > 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(['  
> 
> [...]
> 
> >> guix gc
> >> -d /gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv
> >>
> >> And then start again with your `guix system vm ...`
> >>
> >>
> >> Björn
> >>  
> >
> >
> > After "guix gc" it works !!  
> 
> Looks like you had corrupt files, which is a bad sign.


Marius opened a bug for this one:

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30875

Björn



Re: system vm fails (reprise)

2018-03-20 Thread Ludovic Courtès
Catonano  skribis:

> 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(['

[...]

>> guix gc -d /gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv
>>
>> And then start again with your `guix system vm ...`
>>
>>
>> Björn
>>
>
>
> After "guix gc" it works !!

Looks like you had corrupt files, which is a bad sign.

Ludo’.



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: system vm fails

2018-03-15 Thread Catonano
I tried with a checked out guix and I got what follows


...
validating RUNPATH of 1 binaries in
"/gnu/store/kydnvbnz4vy4b7j2j595jjkc678lvn03-xdg-user-dirs-0.17/bin"...
phase `validate-runpath' succeeded after 0.0 seconds
starting phase `validate-documentation-location'
phase `validate-documentation-location' succeeded after 0.0 seconds
starting phase `delete-info-dir-file'
phase `delete-info-dir-file' succeeded after 0.0 seconds
starting phase `patch-dot-desktop-files'
phase `patch-dot-desktop-files' succeeded after 0.0 seconds
starting phase `install-license-files'
installing 1 license files
phase `install-license-files' succeeded after 0.0 seconds
starting phase `reset-gzip-timestamps'
phase `reset-gzip-timestamps' succeeded after 0.0 seconds
starting phase `compress-documentation'
compressing documentation in
'/gnu/store/kydnvbnz4vy4b7j2j595jjkc678lvn03-xdg-user-dirs-0.17/share/man'
with "gzip" and flags ("--best" "--no-name")
phase `compress-documentation' succeeded after 0.0 seconds
guix system: error: build failed: error parsing derivation
`/gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv': expected
string `Derive(['


the file /gnu/store/dp8ywhh22n8ixikqdvsb6w6qbn4iw899-environment.drv' seems
to be empty. I opened it with nano


system vm fails

2018-03-15 Thread Catonano
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:
In srfi/srfi-1.scm:
   592:29 19 (map1 (#< path: "/gnu/store/1w63bv…> …))
   592:29 18 (map1 (#< path: "/gnu/store/29lkk2…> …))
   592:29 17 (map1 (#< path: "/gnu/store/2b2d0d…> …))
   592:29 16 (map1 (#< path: "/gnu/store/2r3bal…> …))
   592:29 15 (map1 (#< path: "/gnu/store/3a8fqh…> …))
   592:29 14 (map1 (#< path: "/gnu/store/4clx1c…> …))
   592:29 13 (map1 (#< path: "/gnu/store/4xvb3r…> …))
   592:29 12 (map1 (#< path: "/gnu/store/6m75lp…> …))
   592:29 11 (map1 (#< path: "/gnu/store/6zy8h2…> …))
   592:29 10 (map1 (#< path: "/gnu/store/72n0a3…> …))
   592:29  9 (map1 (#< path: "/gnu/store/75z1k3…> …))
   592:29  8 (map1 (#< path: "/gnu/store/7fb2pw…> …))
   592:29  7 (map1 (#< path: "/gnu/store/998x1z…> …))
   592:17  6 (map1 (#< path: "/gnu/store/ajqj00…> …))
In guix/derivations.scm:
   644:39  5 (_ _)
In guix/memoization.scm:
100:0  4 (_ # "/gnu/store/ajqj00q…" …)
In guix/derivations.scm:
   634:22  3 (_)
   494:17  2 (read-derivation-from-file "/gnu/store/ajqj00qwkah0hgvs…")
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 # ()