unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* scm_lreadr error on guix pull
@ 2021-08-23 11:52 Phil Beadling
  2021-08-23 12:44 ` Ricardo Wurmus
  0 siblings, 1 reply; 9+ messages in thread
From: Phil Beadling @ 2021-08-23 11:52 UTC (permalink / raw)
  To: help-guix

Hi all,

I'm seeing this error doing a guix pull from a single linux account.  All
other linux accounts are operating fine on guix pull on the same machine.

I tried removing ~/.config/guix for this account, but this made no
difference.

The error is comming (I think) from invoke/quiet receiving a non-zero
return code.

Any ideas?

In procedure scm_lreadr:
/gnu/store/av5gc90fyivafhr54c49519ldxbrrfr0-module-import/guix/build/utils.scm:715:1:
illegal character in escape sequence: #\return

Thanks,
Phil.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: scm_lreadr error on guix pull
  2021-08-23 11:52 scm_lreadr error on guix pull Phil Beadling
@ 2021-08-23 12:44 ` Ricardo Wurmus
  2021-08-23 13:01   ` Phil Beadling
  0 siblings, 1 reply; 9+ messages in thread
From: Ricardo Wurmus @ 2021-08-23 12:44 UTC (permalink / raw)
  To: Phil Beadling; +Cc: help-guix


Hi Phil,

> I'm seeing this error doing a guix pull from a single linux 
> account. […]
> In procedure scm_lreadr:
> /gnu/store/av5gc90fyivafhr54c49519ldxbrrfr0-module-import/guix/build/utils.scm:715:1:
> illegal character in escape sequence: #\return

I cannot reproduce this.

Could you please provide the output of “guix describe”?  What Guix 
are you using after deleting ~/.config/guix?

-- 
Ricardo


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: scm_lreadr error on guix pull
  2021-08-23 12:44 ` Ricardo Wurmus
@ 2021-08-23 13:01   ` Phil Beadling
  2021-08-23 13:21     ` Phil Beadling
  0 siblings, 1 reply; 9+ messages in thread
From: Phil Beadling @ 2021-08-23 13:01 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

Thanks for your help Ricardo - see inline.

On Mon, 23 Aug 2021 at 13:45, Ricardo Wurmus <rekado@elephly.net> wrote:

>
>
> I cannot reproduce this.
>
> Could you please provide the output of “guix describe”?  What Guix
> are you using after deleting ~/.config/guix?
>
>   guix 6755408
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 675540892719387e1e4e76f097ff8e4ee4b559f7

I also have a local guix channel but have no reason to think that is the
issue at the moment.

I can only reproduce this issue on a single user account.  All the other
accounts I've tried (on the same server) , report exactly the same commit
from guix describe yet do not show the issue.

When deleting the current profile, I end up using the same version anyway.
Note I do have the guix repo anchored at
675540892719387e1e4e76f097ff8e4ee4b559f7 in the channel setup.

/usr/local/bin/guix --version
guix (GNU Guix) 675540892719387e1e4e76f097ff8e4ee4b559f7
Copyright (C) 2021 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: scm_lreadr error on guix pull
  2021-08-23 13:01   ` Phil Beadling
@ 2021-08-23 13:21     ` Phil Beadling
  2021-08-23 13:59       ` zimoun
  0 siblings, 1 reply; 9+ messages in thread
From: Phil Beadling @ 2021-08-23 13:21 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

Some more info from me - I've removed my local channel and reproduced using
only 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   6755408
building
/gnu/store/9g3qj7yicd7sc8312pmvbw6adyv8y877-module-import-compiled.drv...
|builder for
`/gnu/store/9g3qj7yicd7sc8312pmvbw6adyv8y877-module-import-compiled.drv'
failed with exit code 1
build of
/gnu/store/9g3qj7yicd7sc8312pmvbw6adyv8y877-module-import-compiled.drv
failed
View build log at
'/var/log/guix/drvs/9g/3qj7yicd7sc8312pmvbw6adyv8y877-module-import-compiled.drv.bz2'.
cannot build derivation
`/gnu/store/hp8l72b5pxfwys4x806pkl0apkzg9s4g-compute-guix-derivation.drv':
1 dependencies couldn't be built
guix pull: error: build of
`/gnu/store/hp8l72b5pxfwys4x806pkl0apkzg9s4g-compute-guix-derivation.drv'
failed

There's also a bit more info I forgot to include in the stdout.

I have tried to do a "guix pull --rollback" - that didn't seem to help.


On Mon, 23 Aug 2021 at 14:01, Phil Beadling <phil@beadling.co.uk> wrote:

> Thanks for your help Ricardo - see inline.
>
> On Mon, 23 Aug 2021 at 13:45, Ricardo Wurmus <rekado@elephly.net> wrote:
>
>>
>>
>> I cannot reproduce this.
>>
>> Could you please provide the output of “guix describe”?  What Guix
>> are you using after deleting ~/.config/guix?
>>
>>   guix 6755408
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: 675540892719387e1e4e76f097ff8e4ee4b559f7
>
> I also have a local guix channel but have no reason to think that is the
> issue at the moment.
>
> I can only reproduce this issue on a single user account.  All the other
> accounts I've tried (on the same server) , report exactly the same commit
> from guix describe yet do not show the issue.
>
> When deleting the current profile, I end up using the same version
> anyway.  Note I do have the guix repo anchored at
> 675540892719387e1e4e76f097ff8e4ee4b559f7 in the channel setup.
>
> /usr/local/bin/guix --version
> guix (GNU Guix) 675540892719387e1e4e76f097ff8e4ee4b559f7
> Copyright (C) 2021 the Guix authors
> License GPLv3+: GNU GPL version 3 or later <
> http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: scm_lreadr error on guix pull
  2021-08-23 13:21     ` Phil Beadling
@ 2021-08-23 13:59       ` zimoun
  2021-08-23 14:15         ` Phil Beadling
  0 siblings, 1 reply; 9+ messages in thread
From: zimoun @ 2021-08-23 13:59 UTC (permalink / raw)
  To: Phil Beadling; +Cc: help-guix

Hi,

On Mon, 23 Aug 2021 at 15:21, Phil Beadling <phil@beadling.co.uk> wrote:

> Some more info from me - I've removed my local channel and reproduced using
> only 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   6755408

This commit is from May 2021.  So it is weird that you pull this commit.

All the best,
simon


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: scm_lreadr error on guix pull
  2021-08-23 13:59       ` zimoun
@ 2021-08-23 14:15         ` Phil Beadling
       [not found]           ` <CAOvsyQu+vogcL=gbeiCjJC8LZX2WNLpq42U6CEN681Yu0gQK-w@mail.gmail.com>
  0 siblings, 1 reply; 9+ messages in thread
From: Phil Beadling @ 2021-08-23 14:15 UTC (permalink / raw)
  To: zimoun; +Cc: help-guix

On Mon, 23 Aug 2021 at 14:59, zimoun <zimon.toutoune@gmail.com> wrote:

>
> This commit is from May 2021.  So it is weird that you pull this commit.
>

Yep - I keep all my accounts in lockstep and move them every few months -
it has been a while since I've done this, but the commit id shouldn't
matter - I should be able to set that to any commit id and have it work.
The other accounts are locked to the same commit id and they have no issue.

Also if I force to current head it still errors (see below).

I've also tried clearing the ~/.cache/guix directory and deleting the
/var/guix/profiles/per-user/<USERNAME> directory - no luck, alas.

Is there anyway to obliterate Guix setup for this one user account and then
start from scratch.  Given that all other users on the same server don't
see this problem, that's probably the nuclear option?  There's nothing
precious in terms of rollbacks that I couldn't afford to lose - espically
given the rollbacks seem to be broken too.


$ guix pull --commit=f04883d0ba8ddd3977b18ccfc281a5de64bd2e1e
Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
Authenticating channel 'guix', commits 9edb3f6 to f04883d (4,030 new
commits)...
Building from this channel:
  guix      https://git.savannah.gnu.org/git/guix.git   f04883d
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
building /gnu/store/pq4rnyd4bnal3hpqihzgl5f78rxjh364-module-import.drv...
building /gnu/store/xvnwq3i51ifnz8w02a6zai3k0p8ak7ka-module-import.drv...
building
/gnu/store/8yyhppqch35nshc4svgn8kmf06sawazd-module-import-compiled.drv...
|builder for
`/gnu/store/8yyhppqch35nshc4svgn8kmf06sawazd-module-import-compiled.drv'
failed with exit code 1
build of
/gnu/store/8yyhppqch35nshc4svgn8kmf06sawazd-module-import-compiled.drv
failed
View build log at
'/var/log/guix/drvs/8y/yhppqch35nshc4svgn8kmf06sawazd-module-import-compiled.drv.bz2'.
cannot build derivation
`/gnu/store/lfxvnnmbcdwr4si80hmmr8bryz6qk2d9-compute-guix-derivation.drv':
1 dependencies couldn't be built
guix pull: error: build of
`/gnu/store/lfxvnnmbcdwr4si80hmmr8bryz6qk2d9-compute-guix-derivation.drv'
failed
$

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: scm_lreadr error on guix pull
       [not found]           ` <CAOvsyQu+vogcL=gbeiCjJC8LZX2WNLpq42U6CEN681Yu0gQK-w@mail.gmail.com>
@ 2021-08-23 17:18             ` zimoun
  2021-08-23 17:52               ` Phil Beadling
  0 siblings, 1 reply; 9+ messages in thread
From: zimoun @ 2021-08-23 17:18 UTC (permalink / raw)
  To: Phil Beadling; +Cc: help-guix

Hi,

On Mon, 23 Aug 2021 at 18:11, Phil Beadling <phil@beadling.co.uk> wrote:

Could you provide for both cases (broken and healthy) the results of
the commands:

  guix describe
  which guix
  readlink $(which guix)

before pulling?

> So the broken account did this:

Could you try with the broken account this:

  /usr/bin/guix pull -p /tmp/test
  /usr/bin/guix pull -p ~/.config/guix/current
  hash guix
  which guix
  guix pull

?

All the best,
simon



?


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: scm_lreadr error on guix pull
  2021-08-23 17:18             ` zimoun
@ 2021-08-23 17:52               ` Phil Beadling
  2021-08-24 10:12                 ` zimoun
  0 siblings, 1 reply; 9+ messages in thread
From: Phil Beadling @ 2021-08-23 17:52 UTC (permalink / raw)
  To: zimoun; +Cc: help-guix

On Mon, 23 Aug 2021 at 18:18, zimoun <zimon.toutoune@gmail.com> wrote:

>
> Could you try with the broken account this:
>
>   /usr/bin/guix pull -p /tmp/test
>   /usr/bin/guix pull -p ~/.config/guix/current
>   hash guix
>   which guix
>   guix pull
>
>
Thanks for the suggestion - I think I did a similar test which has solved
the initial problem, but there is an underlying problem I'm still perplexed
by.  I will try your suggestion too, but below is my progress so far.

Say we have 2 users:
good-account
bad-account

One bad account I did:
cd
mkdir vault
mv * vault/
mv .* vault

logout/login

Then with a bare account I did a guix pull and it worked!

I thought I'd solved the problem - presumably some stale setting somewhere
in bad-account's config/env/etc - but then I tried a 'guix environment'
command and noticed that the bad-account was still trying to build things
the good-account would take from the local gnu store.

I isolated an example below - the 2 accounts retrieve the same
channels/branches/commit id.  The good-account picks up the version
previously built in the store, but the bad account (presumably) comes up
with a fingerprint that disagrees with the other account and decides to
build from scratch.

___________________________


good-account@app-server:~$ guix build myproject

updating checkout of 'ssh://git@git:81/proj/myproject.git'...

retrieved commit *422427c60ebeb9dc725e13892876bf64476509eb <- commit id is
identical*

*/gnu/store/0z1aax8g3r3bxjfnbf2p4rffkvzy3bz8-myproject-7.7.1  <- Take the
version in the store*


good-account@app-server:~$ guix describe

*Generation 40 **Aug 23 2021 15:09:52*    (current)

  my-packages 99af600

    repository URL:  ssh://git@git:81/proj/myproject.git

    branch: master

    commit: *99af600245d284dcb4b53cc5000b98ec35432c6f <- CHANNEL COMMIT IDs
match below *

  guix 6755408

    repository URL: https://git.savannah.gnu.org/git/guix.git

    branch: master

    commit: *675540892719387e1e4e76f097ff8e4ee4b559f7 <- CHANNEL COMMIT IDs
match below *




____________________________


bad-account@app-server:~$ guix build myproject

updating checkout of 'ssh://git@git:81/proj/myproject.git'...

retrieved commit *422427c60ebeb9dc725e13892876bf64476509eb <- commit id is
identical *

The following derivation will be built:

   /gnu/store/a25k61g9c4p6cvjzfppzg1wn5ppra9qv-myproject-7.7.1.drv

<SNIPPED OUT BUILD LOG FOR BREVITY>

successfully built
/gnu/store/318cq2099mgxjsikrrsxrzn6y5nzp24q-lchsmartpy-7.7.1.drv

*/gnu/store/6cnf47k37ng9zwlg8m63dprziwg2p1gh-myproject-7.7.1   <- Ignores
the version in the store and rebuilds *



bad-account@app-server:~$  guix describe

*Generation 5*    *Aug 23 2021 15:09:52*    (current)

  my-packages 99af600

    repository URL:  ssh://git@git:81/proj/myproject.git

    branch: master

    commit: *99af600245d284dcb4b53cc5000b98ec35432c6f <- CHANNEL COMMIT IDs
match above*

  guix 6755408

    repository URL: https://git.savannah.gnu.org/git/guix.git

    branch: master

    commit: *675540892719387e1e4e76f097ff8e4ee4b559f7 <- CHANNEL COMMIT IDs
match  above *




There is probably is still some rogue config operating on behalf of the
bad-account that produces the different fingerprint - but no idea what this
could be?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: scm_lreadr error on guix pull
  2021-08-23 17:52               ` Phil Beadling
@ 2021-08-24 10:12                 ` zimoun
  0 siblings, 0 replies; 9+ messages in thread
From: zimoun @ 2021-08-24 10:12 UTC (permalink / raw)
  To: Phil Beadling; +Cc: help-guix

Hi Phil,

On Mon, 23 Aug 2021 at 18:52, Phil Beadling <phil@beadling.co.uk> wrote:
> ___________________________
>
> good-account@app-server:~$ guix describe
> *Generation 40 **Aug 23 2021 15:09:52*    (current)
>   my-packages 99af600
>     repository URL:  ssh://git@git:81/proj/myproject.git
>     branch: master
>     commit: *99af600245d284dcb4b53cc5000b98ec35432c6f <- CHANNEL COMMIT IDs
> match below *
>   guix 6755408
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: *675540892719387e1e4e76f097ff8e4ee4b559f7 <- CHANNEL COMMIT IDs
> match below *
> ____________________________
>
> bad-account@app-server:~$  guix describe
> *Generation 5*    *Aug 23 2021 15:09:52*    (current)
>   my-packages 99af600
>     repository URL:  ssh://git@git:81/proj/myproject.git
>     branch: master
>     commit: *99af600245d284dcb4b53cc5000b98ec35432c6f <- CHANNEL COMMIT IDs
> match above*
>   guix 6755408
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: *675540892719387e1e4e76f097ff8e4ee4b559f7 <- CHANNEL COMMIT IDs
> match  above *
> ____________________________
>
> There is probably is still some rogue config operating on behalf of the
> bad-account that produces the different fingerprint - but no idea what this
> could be?

Did you run “./pre-inst-env guix pull“ once with the bad account?
Because for instance ’localstatedir’ or ’sysdir’ could be different; or
something else.  That’s why I am asking ’which guix’ and ‘readlink
$(which guix)’ because then the derivations can be checked to find the
differences. :-)

All the best,
simon


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-08-24 10:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23 11:52 scm_lreadr error on guix pull Phil Beadling
2021-08-23 12:44 ` Ricardo Wurmus
2021-08-23 13:01   ` Phil Beadling
2021-08-23 13:21     ` Phil Beadling
2021-08-23 13:59       ` zimoun
2021-08-23 14:15         ` Phil Beadling
     [not found]           ` <CAOvsyQu+vogcL=gbeiCjJC8LZX2WNLpq42U6CEN681Yu0gQK-w@mail.gmail.com>
2021-08-23 17:18             ` zimoun
2021-08-23 17:52               ` Phil Beadling
2021-08-24 10:12                 ` zimoun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).