all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* guix package -i error on another account after system reconfigure
@ 2019-01-21  7:13 Yoshinori Arai
  2019-01-21  8:17 ` Ricardo Wurmus
  0 siblings, 1 reply; 9+ messages in thread
From: Yoshinori Arai @ 2019-01-21  7:13 UTC (permalink / raw)
  To: help-guix

Hello,

After system reconfigure, I loged in new account to confirm installed programs
and set up keyboard, font etc.

I got error from guix package -i setxkbmap as follows,

---------------- error log -------------------
Backtrace:
          10 (primitive-load "/gnu/store/x7nhlcnw6c0mdc1k75sy5pbjvqk?")
In ice-9/eval.scm:
   721:20  9 (primitive-eval (begin (use-modules (guix build #) ?) ?))
In ice-9/psyntax.scm:
  1235:36  8 (expand-top-sequence ((begin (use-modules (# # ?) ?) ?)) ?)
  1182:24  7 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?)
  1182:24  6 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?)
   285:10  5 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) ?)
In ice-9/boot-9.scm:
  3377:20  4 (process-use-modules _)
   222:17  3 (map1 (((guix build utils)) ((srfi srfi-1)) ((srfi ?)) ?))
  3378:31  2 (_ ((guix build utils)))
   2803:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ ?)
In unknown file:
           0 (scm-error misc-error #f "~A ~S" ("no code for modu?" ?) ?)

ERROR: In procedure scm-error:
no code for module (guix build utils)
----------------------------------------------

And next, guix package -i font-dejavu. I got same error,

---------------- error log -------------------
Backtrace:
          10 (primitive-load "/gnu/store/dfnm0a68nny1ncj4nw6mj5r48x3?")
In ice-9/eval.scm:
   721:20  9 (primitive-eval (begin (use-modules (guix build #) ?) ?))
In ice-9/psyntax.scm:
  1235:36  8 (expand-top-sequence ((begin (use-modules (# # ?) ?) ?)) ?)
  1182:24  7 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?)
  1182:24  6 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?)
   285:10  5 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) ?)
In ice-9/boot-9.scm:
  3377:20  4 (process-use-modules _)
   222:17  3 (map1 (((guix build utils)) ((srfi srfi-1)) ((srfi ?)) ?))
  3378:31  2 (_ ((guix build utils)))
   2803:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ ?)
In unknown file:
           0 (scm-error misc-error #f "~A ~S" ("no code for modu?" ?) ?)

ERROR: In procedure scm-error:
no code for module (guix build utils)
----------------------------------------------
I got same error when I did guix pull.
Then I loged in old account and tried install package. But I got no error. 

What's happen?

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

* Re: guix package -i error on another account after system reconfigure
  2019-01-21  7:13 guix package -i error on another account after system reconfigure Yoshinori Arai
@ 2019-01-21  8:17 ` Ricardo Wurmus
  2019-01-22  2:17   ` Yoshinori Arai
  0 siblings, 1 reply; 9+ messages in thread
From: Ricardo Wurmus @ 2019-01-21  8:17 UTC (permalink / raw)
  To: Yoshinori Arai; +Cc: help-guix


Hi,

> After system reconfigure, I loged in new account to confirm installed programs
> and set up keyboard, font etc.
>
> I got error from guix package -i setxkbmap as follows, […]

The backtrace isn’t very useful because you snipped off the lines that
led to it.  I’m assuming that this is bug 28144:

    https://issues.guix.info/issue/28144

This is a bug in Guile, which results in miscompilation.  There is no
good way to recover from that.  You may need to use an older variant of
Guix to run “guix pull”, e.g. ~/.config/guix/current-1-link/bin/guix.

--
Ricardo

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

* Re: guix package -i error on another account after system reconfigure
  2019-01-21  8:17 ` Ricardo Wurmus
@ 2019-01-22  2:17   ` Yoshinori Arai
  2019-01-22  6:49     ` Ricardo Wurmus
  0 siblings, 1 reply; 9+ messages in thread
From: Yoshinori Arai @ 2019-01-22  2:17 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

On Mon, Jan 21, 2019 at 09:17:43AM +0100, Ricardo Wurmus wrote:
> 
> Hi,
> 
> > After system reconfigure, I loged in new account to confirm installed programs
> > and set up keyboard, font etc.
> >
> > I got error from guix package -i setxkbmap as follows, […]
> 
> The backtrace isn’t very useful because you snipped off the lines that
> led to it.  I’m assuming that this is bug 28144:
> 
>     https://issues.guix.info/issue/28144
> 
> This is a bug in Guile, which results in miscompilation.  There is no
> good way to recover from that.  You may need to use an older variant of
> Guix to run “guix pull”, e.g. ~/.config/guix/current-1-link/bin/guix.
> 
> --
> Ricardo
> 

Hello,

I tried to recover but I can't.
I can't find ~/.config/guix/current-?-link but find
/var/guix/profiles/system-?-link.

I tried /var/guix/profiles/system-?-link/profile/bin/guix pull. But I got same
error.

Of cource, I tried guix system recofigure again after guix pull by root.

I don't know what's difference of behaivor between system wide guix and per-user
guix.

I think the problem is guile compiled libraries of current profile. But I don't
know how could recompile the libraries or rebuild the profile of new account
that produce by system reconfigure.

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

* Re: guix package -i error on another account after system reconfigure
  2019-01-22  2:17   ` Yoshinori Arai
@ 2019-01-22  6:49     ` Ricardo Wurmus
  2019-01-22  7:20       ` Yoshinori Arai
  0 siblings, 1 reply; 9+ messages in thread
From: Ricardo Wurmus @ 2019-01-22  6:49 UTC (permalink / raw)
  To: Yoshinori Arai; +Cc: help-guix


Yoshinori Arai <kumagusu08@gmail.com> writes:

> I don't know what's difference of behaivor between system wide guix and per-user
> guix.

They are all possibly different versions of Guix.  My hope was that you
find at least one version that is not affected by the miscompilation.

> I think the problem is guile compiled libraries of current profile. But I don't
> know how could recompile the libraries or rebuild the profile of new account
> that produce by system reconfigure.

You cannot recompile anything in the store.  The store is read-only.
This is why I was suggesting using a different version from which to run
“guix pull”.

--
Ricardo

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

* Re: guix package -i error on another account after system reconfigure
  2019-01-22  6:49     ` Ricardo Wurmus
@ 2019-01-22  7:20       ` Yoshinori Arai
  2019-01-22  7:48         ` Ricardo Wurmus
  0 siblings, 1 reply; 9+ messages in thread
From: Yoshinori Arai @ 2019-01-22  7:20 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

On Tue, Jan 22, 2019 at 07:49:32AM +0100, Ricardo Wurmus wrote:
> 
> Yoshinori Arai <kumagusu08@gmail.com> writes:
> 
> > I don't know what's difference of behaivor between system wide guix and per-user
> > guix.
> 
> They are all possibly different versions of Guix.  My hope was that you
> find at least one version that is not affected by the miscompilation.
> 
> > I think the problem is guile compiled libraries of current profile. But I don't
> > know how could recompile the libraries or rebuild the profile of new account
> > that produce by system reconfigure.
> 
> You cannot recompile anything in the store.  The store is read-only.
> This is why I was suggesting using a different version from which to run
> “guix pull”.
> 
> --
> Ricardo
> 

Hello,

I don't know how to find different version of guix which belong to new account.
Because I don't do guix pull yet on new account.

OK, There are no problem on old account. I will do full reinstall of guixsd with new configuration.

Thank you.

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

* Re: guix package -i error on another account after system reconfigure
  2019-01-22  7:20       ` Yoshinori Arai
@ 2019-01-22  7:48         ` Ricardo Wurmus
  2019-01-22 11:20           ` Yoshinori Arai
  0 siblings, 1 reply; 9+ messages in thread
From: Ricardo Wurmus @ 2019-01-22  7:48 UTC (permalink / raw)
  To: Yoshinori Arai; +Cc: help-guix


Yoshinori Arai <kumagusu08@gmail.com> writes:

> I don't know how to find different version of guix which belong to new account.
> Because I don't do guix pull yet on new account.
>
> OK, There are no problem on old account.

The new account could use the old account’s version of Guix to run “guix
pull”, no?

> I will do full reinstall of guixsd with new configuration.

Reinstallation is rarely a useful thing to do.

-- 
Ricardo

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

* Re: guix package -i error on another account after system reconfigure
  2019-01-22  7:48         ` Ricardo Wurmus
@ 2019-01-22 11:20           ` Yoshinori Arai
  2019-01-22 12:25             ` Ricardo Wurmus
  0 siblings, 1 reply; 9+ messages in thread
From: Yoshinori Arai @ 2019-01-22 11:20 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

On Tue, Jan 22, 2019 at 08:48:27AM +0100, Ricardo Wurmus wrote:
> 
> Yoshinori Arai <kumagusu08@gmail.com> writes:
> 
> > I don't know how to find different version of guix which belong to new account.
> > Because I don't do guix pull yet on new account.
> >
> > OK, There are no problem on old account.
> 
> The new account could use the old account’s version of Guix to run “guix
> pull”, no?
> 
> > I will do full reinstall of guixsd with new configuration.
> 
> Reinstallation is rarely a useful thing to do.
> 
> -- 
> Ricardo
> 

Hello, Ricardo.

I mean New Account is new user account that is added by last system
reconfiguration.

user1 --- old account is made at first installation

user1@hostname ~$ which guix
/home/user1/.config/guix/current/bin/guix

user1@hostname ~$ ls -l /var/guix/profiles/per-user/user1/current-guix
/var/guix/profiles/per-user/user1/current-guix -> current-guix-5-link

user1@hostname ~$ ls -l /var/guix/profiles/per-user/yoshi/current-guix-5-link
/var/guix/profiles/per-user/yoshi/current-guix-5-link ->
                 /gnu/store/xh71xqfcbbwsaqakvf6787pdwclkqv6w-profile

user2, user3 are new users.
after su user2 ...

user2@hostname ~$ which guix
/run/current-system/profile/bin/guix

user2@hostname ~$ ls -l /var/guix/profiles/per-user/user2/
current-guix -> current-guix-1-link
current-guix-1-link -> /gnu/store/1qwy6c7b4axjaz8fyy1plg29p47slina-profile

This status is after guix pull but finished on error.

su user3 ...

user3@hostname ~$ which guix
/run/current-system/profile/bin/guix

user3@hostname ~$ ls -l /var/guix/profiles/per-user/user3/
     current-guix -> current-guix-0-link

ls -l /var/guix/profiles/per-user/user3/current-guix-0-link
ls: '/var/guix/profiles/per-user/user3/current-guix-0-link' にアクセスできません:
そのようなファイルやディレクトリはありません --- can't access. no file or
directory.

This status is before guix pull.

I will delete new users by userdell command and also delete
/var/guix/profile/per-user/user2,user3 then do system reconfigure again before
full reinstallation.

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

* Re: guix package -i error on another account after system reconfigure
  2019-01-22 11:20           ` Yoshinori Arai
@ 2019-01-22 12:25             ` Ricardo Wurmus
  2019-01-23  1:16               ` Yoshinori Arai
  0 siblings, 1 reply; 9+ messages in thread
From: Ricardo Wurmus @ 2019-01-22 12:25 UTC (permalink / raw)
  To: Yoshinori Arai; +Cc: help-guix


Yoshinori Arai <kumagusu08@gmail.com> writes:

> I mean New Account is new user account that is added by last system
> reconfiguration.
>
> user1 --- old account is made at first installation
>
> user1@hostname ~$ which guix
> /home/user1/.config/guix/current/bin/guix
>
> user1@hostname ~$ ls -l /var/guix/profiles/per-user/user1/current-guix
> /var/guix/profiles/per-user/user1/current-guix -> current-guix-5-link
>
> user1@hostname ~$ ls -l /var/guix/profiles/per-user/yoshi/current-guix-5-link
> /var/guix/profiles/per-user/yoshi/current-guix-5-link ->
>                  /gnu/store/xh71xqfcbbwsaqakvf6787pdwclkqv6w-profile
>
> user2, user3 are new users.
> after su user2 ...
>
> user2@hostname ~$ which guix
> /run/current-system/profile/bin/guix
>
> user2@hostname ~$ ls -l /var/guix/profiles/per-user/user2/
> current-guix -> current-guix-1-link
> current-guix-1-link -> /gnu/store/1qwy6c7b4axjaz8fyy1plg29p47slina-profile
>
> This status is after guix pull but finished on error.
>
> su user3 ...
>
> user3@hostname ~$ which guix
> /run/current-system/profile/bin/guix
>
> user3@hostname ~$ ls -l /var/guix/profiles/per-user/user3/
>      current-guix -> current-guix-0-link
>
> ls -l /var/guix/profiles/per-user/user3/current-guix-0-link
> ls: '/var/guix/profiles/per-user/user3/current-guix-0-link' にアクセスできません:
> そのようなファイルやディレクトリはありません --- can't access. no file or
> directory.
>
> This status is before guix pull.
>
> I will delete new users by userdell command and also delete
> /var/guix/profile/per-user/user2,user3 then do system reconfigure again before
> full reinstallation.

You don’t need to delete those user accounts.

The new users are using the system-wide Guix at
/run/current-system/profile/bin/guix, which appears to be broken.  So
you could let user2 and user3 use user1’s Guix, which you said is
working fine.

as user2 just run

    /var/guix/profiles/per-user/user1/current-guix/bin/guix pull

and you should then get a new Guix that works fine.

Same with reconfigure.  Run that with the working Guix to get a new Guix
for the whole system which doesn’t suffer from this problem.

-- 
Ricardo

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

* Re: guix package -i error on another account after system reconfigure
  2019-01-22 12:25             ` Ricardo Wurmus
@ 2019-01-23  1:16               ` Yoshinori Arai
  0 siblings, 0 replies; 9+ messages in thread
From: Yoshinori Arai @ 2019-01-23  1:16 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

On Tue, Jan 22, 2019 at 01:25:59PM +0100, Ricardo Wurmus wrote:
 
> You don’t need to delete those user accounts.
> 
> The new users are using the system-wide Guix at
> /run/current-system/profile/bin/guix, which appears to be broken.  So
> you could let user2 and user3 use user1’s Guix, which you said is
> working fine.
> 
> as user2 just run
> 
>     /var/guix/profiles/per-user/user1/current-guix/bin/guix pull
> 
> and you should then get a new Guix that works fine.
> 
> Same with reconfigure.  Run that with the working Guix to get a new Guix
> for the whole system which doesn’t suffer from this problem.
> 

I have recovered.
Thank you very much.

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

end of thread, other threads:[~2019-01-23  1:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-21  7:13 guix package -i error on another account after system reconfigure Yoshinori Arai
2019-01-21  8:17 ` Ricardo Wurmus
2019-01-22  2:17   ` Yoshinori Arai
2019-01-22  6:49     ` Ricardo Wurmus
2019-01-22  7:20       ` Yoshinori Arai
2019-01-22  7:48         ` Ricardo Wurmus
2019-01-22 11:20           ` Yoshinori Arai
2019-01-22 12:25             ` Ricardo Wurmus
2019-01-23  1:16               ` Yoshinori Arai

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.