Can't run guix from external drive.

  • Open
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Jan
Owner
unassigned
Submitted by
Jan
Severity
normal
J
(address . bug-guix@gnu.org)
20191230203119.6eca44c1@interia.pl
Hi,
I tried running "guix install" from my USB hard drive and that's what I
got:

user@machine /media/user/Backup$
Backtrace:
4 (apply-smob/1 #<catch-closure 7f9a0f679340>)
In ice-9/boot-9.scm:
705:2 3 (call-with-prompt ("prompt") #<procedure 7f9a0f6902e0 …> …)
In ice-9/eval.scm:
619:8 2 (_ #(#(#<directory (guile-user) 7f9a0f309140>)))
In ice-9/command-line.scm:
189:23 1 (load/lang "/home/lain/.config/guix/current/bin/guix")
In unknown file:
0 (getcwd)

ERROR: In procedure getcwd:
In procedure getcwd: There's no such a file or directory


Jan Wielkiewicz
L
L
Ludovic Courtès wrote on 2 Jan 2020 19:37
(name . Jan)(address . tona_kosmicznego_smiecia@interia.pl)(address . 38821@debbugs.gnu.org)
877e29u2ko.fsf@gnu.org
Hi,

Jan <tona_kosmicznego_smiecia@interia.pl> skribis:

Toggle quote (18 lines)
> I tried running "guix install" from my USB hard drive and that's what I
> got:
>
> user@machine /media/user/Backup$
> Backtrace:
> 4 (apply-smob/1 #<catch-closure 7f9a0f679340>)
> In ice-9/boot-9.scm:
> 705:2 3 (call-with-prompt ("prompt") #<procedure 7f9a0f6902e0 …> …)
> In ice-9/eval.scm:
> 619:8 2 (_ #(#(#<directory (guile-user) 7f9a0f309140>)))
> In ice-9/command-line.scm:
> 189:23 1 (load/lang "/home/lain/.config/guix/current/bin/guix")
> In unknown file:
> 0 (getcwd)
>
> ERROR: In procedure getcwd:
> In procedure getcwd: There's no such a file or directory

It most likely means that the current working directory,
/media/user/Backup, was unmounted or somehow disappeared in the
meantime.

Can you confirm that this is the case?

Thanks,
Ludo’.
J
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 38821@debbugs.gnu.org)
20200107193531.66c5936e@kompiuter
On Thu, 02 Jan 2020 19:37:43 +0100
Ludovic Courtès <ludo@gnu.org> wrote:

Toggle quote (10 lines)
>
> It most likely means that the current working directory,
> /media/user/Backup, was unmounted or somehow disappeared in the
> meantime.
>
> Can you confirm that this is the case?
>
> Thanks,
> Ludo’.

Yes, it only happens, if the disk is unmounted. Is that normal? If it
is, then a message telling what's wrong would be helpful.


Jan Wielkiewicz
L
L
Ludovic Courtès wrote on 8 Jan 2020 10:58
(name . Jan)(address . tona_kosmicznego_smiecia@interia.pl)(address . 38821@debbugs.gnu.org)
87imlmfevz.fsf@gnu.org
Hi,

Jan <tona_kosmicznego_smiecia@interia.pl> skribis:

Toggle quote (16 lines)
> On Thu, 02 Jan 2020 19:37:43 +0100
> Ludovic Courtès <ludo@gnu.org> wrote:
>
>>
>> It most likely means that the current working directory,
>> /media/user/Backup, was unmounted or somehow disappeared in the
>> meantime.
>>
>> Can you confirm that this is the case?
>>
>> Thanks,
>> Ludo’.
>
> Yes, it only happens, if the disk is unmounted. Is that normal? If it
> is, then a message telling what's wrong would be helpful.

This issue is not specific to Guix: the ‘getcwd’ function fails if the
current working directory has been unmounted behind the back of the
calling process. IOW, another program would fail similar in these
circumstances. I don’t think there’s much that can be done.

Thanks,
Ludo’.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 38821@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 38821
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch