darcs

Issue 1831 MoveFileEx: permission denied (2.3.x to 2.4.x)

Title MoveFileEx: permission denied (2.3.x to 2.4.x)
Priority urgent Status given-up
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, eivuokko, galbolle, jaredj, kirby, kowey, mornfall, shcheklein, tux_rocker, twb, volothamp, wglozer
Assigned To
Topics Hashed, Regression

Created on 2010-04-27.10:05:35 by kowey, last changed 2016-04-04.17:04:59 by gh.

Messages
msg10742 (view) Author: shcheklein Date: 2010-04-16.20:05:41
Darcs 2.4 release. Doesn't work at all. To reproduce clean cache and run:

C:\Projects>darcs get http://modis.ispras.ru/src/sedna
darcs: C:\Documents and Settings\admin\Application
Data\darcs\cache/pristine.has
hed/0000001393-45b2ef897392615593d4af1a7cd02c9fb51fd789dfa291ed99fd15a7e72b30d8-
new_ff1d776eae193da59b9891ab1b03e9c0: MoveFileEx: permission denied
(▲B:070=> 2
4>ABC?5.)
Copying pristine 35 done, 16 queued. QuickStart

... hangs here and hangs if run it again (cache is not empty).
msg10747 (view) Author: kowey Date: 2010-04-17.12:19:16
Thanks. How about the darcs-2.4.1 release?
msg10779 (view) Author: shcheklein Date: 2010-04-20.19:19:37
It was 2.4.1 (I thought that build version number is not important). 
Now I have to use 2.2.0.
msg10845 (view) Author: kowey Date: 2010-04-27.10:05:25
I'm creating a new bug to split issue1759, copying over msg10742
msg10747 and msg10779
msg10847 (view) Author: kowey Date: 2010-04-27.10:16:53
Thanks for your continued patience with this, Ivan.  Note that I've
split this bug because

1. it affects the user's global cache (and not the index)
2. it does not involve network file systems

Salvatore, is there any chance that this just another variant of the
rename or delete file errors you fixed (file handle leaks?).  Also,
could you determine if it's reasonable for us to try to fix this for
Darcs 2.4.2?  Why is the error message 'MoveFileEx' this time?

I'll note that the long term solution you suggested was in issue1675 to
move deleted files to some sort of attic.  Thanks!
msg10963 (view) Author: kowey Date: 2010-05-05.22:10:54
We don't know what to do about this and in any case, it looks like a
solution is going to happen till Darcs 2.5 at the earliest.  Sorry! :-(
msg11604 (view) Author: tux_rocker Date: 2010-06-27.18:14:24
Bumping to 2.6.

Has anyone actually managed to reproduce this bug?

What cache does one have to clean to reproduce it?
msg11605 (view) Author: tux_rocker Date: 2010-06-27.18:18:14
I just reproduced it. On Linux. We've been to quick calling this a
Windows issue because there's a "C:\" in the command line there.

On Linux it looks like this:

reinier@adim:~/Sources/issue1831-test$ darcs get
http://modis.ispras.ru/src/sedna
Copying patches, to get lazy repository hit ctrl-C...             
Finished getting.                                
darcs:
/home/reinier/.darcs/cache/patches/0000007354-c5fafcdd83859d7929499c0d9631877bd64ddb9f4424a5413ed5884d80b0b4c3-new_7ad05211739fb1e63a4cd6f128db18f9:
renameFile: does not exist (No such file or directory)
reinier@adim:~/Sources/issue1831-test$ darcs --version
2.4.4 (unknown)
msg12698 (view) Author: tux_rocker Date: 2010-10-15.13:27:24
I am bumping this to darcs 2.8 because the issue appears to be very
rare. Possibly, it happens only with this repository. There is also a
workaround: you can interrupt the hanging command and get all the
patches by doing a 'darcs changes --summary'.
msg13405 (view) Author: hoijarvi Date: 2010-12-23.00:57:01
This is not a rare occurrence. To reproduce without network drives:

"darcs get http://webapps.datafed.net/nest/DVoy2R"

Result:

darcs: C:\Documents and Settings\Kari\Application
Data\darcs\cache/pristine.hashed/35a3eb4e8cd48b2bddf4b10758c4f25845ca473237c69b4a40e84901f486bf70-new_4f921aa8d6cc290ec4acbd885d0f7bd4:
MoveFileEx "C:\\Documents and Settings\\Kari\\Application
Data\\darcs\\cache/pristine.hashed/35a3eb4e8cd48b2bddf4b10758c4f25845ca473237c69b4a40e84901f486bf70-new_4f921aa8d6cc290ec4acbd885d0f7bd4"
"C:\\Documents and
 Settings\\Kari\\Application
Data\\darcs\\cache/pristine.hashed/35a3eb4e8cd48b2bddf4b10758c4f25845ca473237c69b4a40e84901f486bf70":
permission denied (Access is denied.)
Copying pristine 1700 done, 221 queued. profiles

And I repeated it, with more errors. To get job done I had to do darcs
init and darcs pull, took a long time but it finished. The darcs get job
is still running, taking 5% of the cpu. I have an old XP laptop with
"only" 500 MB memory.
msg14466 (view) Author: galbolle Date: 2011-05-26.14:10:15
I can't reproduce this with 2.7 (current HEAD) on linux.
msg14467 (view) Author: galbolle Date: 2011-05-26.14:21:59
Actually, I can only reproduce with "darcs get
http://modis.ispras.ru/src/sedna" but not with "darcs get
http://webapps.datafed.net/nest/DVoy2R"
msg14468 (view) Author: galbolle Date: 2011-05-26.15:21:38
I do get the error message, but the repository is then actually usable.
msg14751 (view) Author: markstos Date: 2011-10-13.12:49:39
This is a rare, hard-to-reproduce issue. Bumping to 2.10.
msg19138 (view) Author: gh Date: 2016-04-04.17:02:43
The cache and cloning modules have changed quite a lot since 2010, and I
don't see the bug happening right now, so I suggest we close this ticket.
History
Date User Action Args
2010-04-27 10:05:35koweycreate
2010-04-27 10:07:51adminsetnosy: + twb, volothamp, mornfall, shcheklein
messages: + msg10742, msg10747, msg10779
2010-04-27 10:16:58koweysetstatus: unknown -> needs-reproduction
topic: + Target-2.4, - Target-2.5
messages: + msg10847
assignedto: kirby
2010-05-05 22:10:58koweysettopic: + Target-2.5, - Target-2.4
messages: + msg10963
2010-06-15 20:52:13adminsetmilestone: 2.5.0
2010-06-15 20:59:59adminsettopic: - Target-2.5
2010-06-27 18:14:25tux_rockersetnosy: + tux_rocker
messages: + msg11604
milestone: 2.5.0 -> 2.8.0
2010-06-27 18:18:15tux_rockersettopic: - Windows
assignedto: kirby ->
messages: + msg11605
2010-06-27 18:19:31tux_rockersetmilestone: 2.8.0 -> 2.5.0
2010-10-15 13:27:25tux_rockersetmessages: + msg12698
2010-10-15 13:27:31tux_rockersetmilestone: 2.5.0 -> 2.8.0
2010-12-23 00:57:02hoijarvisetmessages: + msg13405
2011-05-26 14:10:16galbollesetmessages: + msg14466
2011-05-26 14:21:59galbollesetmessages: + msg14467
2011-05-26 15:21:39galbollesetnosy: + galbolle
messages: + msg14468
2011-10-13 12:49:40markstossetmessages: + msg14751
milestone: 2.8.0 -> 2.10.0
2015-04-18 17:39:38ghsetmilestone: 2.10.0 -> 2.12.0
2016-04-04 17:02:45ghsetstatus: needs-reproduction -> given-up
messages: + msg19138
2016-04-04 17:04:59ghsetmilestone: 2.12.0 ->