Hello Michael,

"Brantley, Michael" <[email protected]> skribis:

> As this is my debut posting I just wanted to start by thanking the GUIX 
> community for all your hard work!  :-)

Thank you!

> $ sudo -u guixuser guix environment
> [guixuser@guixbuild03 guix]$ bash -c "nohup guile --listen=37146 0<&- 
> &>/dev/null"
>
> ... and then from another shell on this same host:
>
> $ telnet localhost 37146
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> GNU Guile 2.2.2
> Copyright (C) 1995-2017 Free Software Foundation, Inc.
>
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
>
> Enter `,help' for help.
> scheme@(guile-user)> (begin
>                        (use-modules (guix))
>                        (with-store store
>                          (add-text-to-store store "test"
>                                             "Hello, build machine!")))
> acquiring global GC lock `/var/guix/gc.lock'
> acquiring read lock on `/var/guix/temproots/17043'
> acquiring write lock on `/var/guix/temproots/17043'
> downgrading to read lock on `/var/guix/temproots/17043'
> $1 = "/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test"
> scheme@(guile-user)> ,q
> Connection closed by foreign host.
> $
> $ telnet localhost 37146
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> GNU Guile 2.2.2
> Copyright (C) 1995-2017 Free Software Foundation, Inc.
>
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
>
> Enter `,help' for help.
> scheme@(guile-user)> (begin
>                        (use-modules (guix))
>                        (with-store store
>                          (add-text-to-store store "test"
>                                             "Hello, build machine!")))
> ERROR: In procedure display:
> ERROR: In procedure display: Wrong type argument in position 2: #<closed: 
> file c98f50>
>
> Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
> scheme@(guile-user) [1]>

Could you try “,bt” here to show the stack trace?  I wonder where that
exception comes from.

Are you sure guix-daemon is running on this machine, and listening to
the right socket file?

Thanks for the helpful debugging info!

Ludo’.

Reply via email to