darcs

Issue 2323 Darcs should support resuming from transient access denied errors

Title Darcs should support resuming from transient access denied errors
Priority Status unknown
Milestone Resolved in
Superseder Nosy List jasongross9
Assigned To
Topics

Created on 2013-05-14.18:32:19 by jasongross9, last changed 2013-05-15.18:38:37 by jasongross9.

Files
File name Uploaded Type Edit Remove
unnamed jasongross9, 2013-05-15.18:38:35 text/html
Messages
msg16813 (view) Author: jasongross9 Date: 2013-05-14.18:32:17
I keep getting

darcs: C:\Users\Jason
Gross\AppData\Roaming\darcs/cache/pristine.hashed/a05ae6f57358230f5721cea8e3ff36ad46822e5f5d9d1f4464006a34664864c5-new_b8fd9a7d09dd710a22fb87db5f8bd471:
MoveFileEx "C:\\Users\\Jason
Gross\\AppData\\Roaming\\darcs/cache/pristine.hashed/a05ae6f57358230f5721cea8e3ff36ad46822e5f5d9d1f4464006a34664864c5-new_b8fd9a7d09dd710a22fb87db5f8bd471"
"C:\\Users\\Jason
Gross\\AppData\\Roaming\\darcs/cache/pristine.hashed/a05ae6f57358230f5721cea8e3ff36ad46822e5f5d9d1f4464006a34664864c5":
permission denied (Access is denied.)

when I try to darcs get --lazy http://code.haskell.org/Agda.  It will
then just sit there (rather than updating the "copying pristine"
number done), until I kill darcs.  I can then restart the command, and
it will get a bit further, but it's annoying to have to keep doing
this.  It would be nice if darcs tried again (up to, e.g., 3 times,
after waiting a second or two or so each time).

This is on windows 7, with darcs from the haskell platform, installed
via cabal-dev.

-Jason
msg16814 (view) Author: kowey Date: 2013-05-15.09:07:30
Hi Jason,

On 14 May 2013, at 20:32, Jason Gross wrote:
> 
> darcs: C:\Users\Jason
> Gross\AppData\Roaming\darcs/cache/pristine.hashed/a05ae6f57358230f5721cea8e3ff36ad46822e5f5d9d1f4464006a34664864c5-new_b8fd9a7d09dd710a22fb87db5f8bd471:
> MoveFileEx "C:\\Users\\Jason
> Gross\\AppData\\Roaming\\darcs/cache/pristine.hashed/a05ae6f57358230f5721cea8e3ff36ad46822e5f5d9d1f4464006a34664864c5-new_b8fd9a7d09dd710a22fb87db5f8bd471"
> "C:\\Users\\Jason
> Gross\\AppData\\Roaming\\darcs/cache/pristine.hashed/a05ae6f57358230f5721cea8e3ff36ad46822e5f5d9d1f4464006a34664864c5":
> permission denied (Access is denied.)


Sorry Darcs is being annoying to use on Windows. :-(

Some sort of retry mechanism I think has also been suggested for HTTP fetch errors.
But (BTS readers) what's with the access denied errors in the first place?


-- 
Eric Kow <http://erickow.com>
msg16815 (view) Author: jasongross9 Date: 2013-05-15.18:38:35
That's a very good question.  I get the same problem occasionally when I
tell agda to typecheck a file, so I suspect the problem has something to do
with how Haskell implements I/O on windows.  Perhaps it uses some kind-of
non-blocking/no-wait call, and windows takes longer to respond than linux,
and so a permission denied error looks the same as a "I was waiting for the
harddisk to spin to the right position" on windows?  (This is a wild guess;
I haven't actually looked at the source code at all.)

-Jason


On Wed, May 15, 2013 at 5:07 AM, Eric Kow <bugs@darcs.net> wrote:

>
> Eric Kow <kowey@darcs.net> added the comment:
>
> Hi Jason,
>
> On 14 May 2013, at 20:32, Jason Gross wrote:
> >
> > darcs: C:\Users\Jason
> >
> Gross\AppData\Roaming\darcs/cache/pristine.hashed/a05ae6f57358230f5721cea8e3ff36ad46822e5f5d9d1f4464006a34664864c5-new_b8fd9a7d09dd710a22fb87db5f8bd471:
> > MoveFileEx "C:\\Users\\Jason
> >
> Gross\\AppData\\Roaming\\darcs/cache/pristine.hashed/a05ae6f57358230f5721cea8e3ff36ad46822e5f5d9d1f4464006a34664864c5-new_b8fd9a7d09dd710a22fb87db5f8bd471"
> > "C:\\Users\\Jason
> >
> Gross\\AppData\\Roaming\\darcs/cache/pristine.hashed/a05ae6f57358230f5721cea8e3ff36ad46822e5f5d9d1f4464006a34664864c5":
> > permission denied (Access is denied.)
>
>
> Sorry Darcs is being annoying to use on Windows. :-(
>
> Some sort of retry mechanism I think has also been suggested for HTTP
> fetch errors.
> But (BTS readers) what's with the access denied errors in the first place?
>
>
> --
> Eric Kow <http://erickow.com>
>
> ----------
> title: Darcs should support resuming from transient access denied errors
> -> Darcs should support resuming from transient access denied errors
>
> __________________________________
> Darcs bug tracker <bugs@darcs.net>
> <http://bugs.darcs.net/issue2323>
> __________________________________
>
Attachments
History
Date User Action Args
2013-05-14 18:32:19jasongross9create
2013-05-15 09:07:33koweysetmessages: + msg16814
title: Darcs should support resuming from transient access denied errors -> Darcs should support resuming from transient access denied errors
2013-05-15 18:38:37jasongross9setfiles: + unnamed
messages: + msg16815
title: Darcs should support resuming from transient access denied errors -> Darcs should support resuming from transient access denied errors