"Error moving directory: Access to path denied" on adding new project #1062

Closed
tylkomat opened this Issue Nov 14, 2012 · 13 comments

Projects

None yet

2 participants

@tylkomat

I have a repository on my private server that share with different people. This repository had a conflict once and was not updating anymore. The message for this conflict was also only popping up, when I shut down my PC. I'm using Windows 7 64bit. I deleted the folder from the SparkleShare folder and tried to add it again.

Are any informatiion about the installed repositories kept in another place than config.xml?

The whole repository is fetched in .tmp folder but then fails to be moved to the SparkleShare folder, with the following message in debug.log:

Controller | Error moving directory: Access to the path 'C:\Users\Matthias\SparkleShare\.tmp\sparkle_catchthis' is denied.

The client window itself just stays with a fully filled progess bar and an active cancel button. Cancelling successfully removes the downloaded files in the .tmp folder. I tried other repositories on the same server and they work fine. The failing repository is the largest one with about 300 mb.

Might that be a problem?

The other people that access the repository don't seem to have any problems. Copying it manually also doesn't help, as it is not recognized on restart of SparkleShare.

@tylkomat

adding the repository manually to the config.xml seems to be a work around

@hbons
Owner

which version?

@tylkomat

I had before 0.9.5, but now with 0.9.7 it was the same behaviour.

@hbons
Owner

what if you remove the /.tmp/ folder manually, does it work then?

@tylkomat

It is just created again and it is still not able to move the downloaded folder to the right place. When I then cancel I get the following fetcher error,

10:27:40 | Controller | Error moving directory: Access to the path 'C:\Users\Matthias\SparkleShare\.tmp\sparkle_catchthis' is denied.
10:28:16 | Fetcher | Failed to dispose properly: No process is associated with this object.
10:28:16 | Controller | Deleted C:\Users\Matthias\SparkleShare\.tmp\sparkle_catchthis
@hbons
Owner

can you post the permission settings of C:\Users\Matthias\SparkleShare\.tmp\ and C:\Users\Matthias\SparkleShare\.tmp\sparkle_catchthis?

@tylkomat

My User is the owner of .tmp and has full control, same for sparkle_catchthis folder.

drwx------+ 1 Matthias None     0 15. Nov 10:45 .tmp
drwx------+ 1 Matthias None     0 14. Nov 15:34 test
drwx------+ 1 Matthias None 0 15. Nov 10:25 Pixmaps
drwx------+ 1 Matthias None 0 15. Nov 10:47 sparkle_catchthis
@hbons
Owner

that's really weird. it should be able to move the folder without a problem. i have no idea why this doesn't work...

@tylkomat

Thanks for your efforts anyway. My workaround works fine. Maybe later someone will find it out.

@hbons
Owner

i've changed some of the moving logic and added some more debug info in 80c4b25. you can see if that works for you (either by compiling or waiting for the next release).

@hbons
Owner

the 0.9.8 Windows installer has now been uploaded. can you see if that works any better?

@tylkomat

Still not working.

09:11:02 | Cmd | sparkle_catchthis.git | git config core.quotepath false
09:11:02 | Cmd | sparkle_catchthis.git | git config core.ignorecase false
09:11:02 | Cmd | sparkle_catchthis.git | git config core.filemode false
09:11:02 | Cmd | sparkle_catchthis.git | git config core.autocrlf false
09:11:02 | Cmd | sparkle_catchthis.git | git config core.precomposeunicode true
09:11:02 | Cmd | sparkle_catchthis.git | git config core.safecrlf false
09:11:02 | Cmd | sparkle_catchthis.git | git config core.packedGitLimit 128m
09:11:03 | Cmd | sparkle_catchthis.git | git config core.packedGitWindowSize 128m
09:11:03 | Cmd | sparkle_catchthis.git | git config pack.deltaCacheSize 128m
09:11:03 | Cmd | sparkle_catchthis.git | git config pack.packSizeLimit 128m
09:11:03 | Cmd | sparkle_catchthis.git | git config pack.windowMemory 128m
09:11:03 | Cmd | sparkle_catchthis.git | git config push.default matching
09:11:03 | Cmd | sparkle_catchthis.git | git config --global core.excludesfile
09:11:03 | Fetcher | Finished
09:11:03 | Cmd | sparkle_catchthis.git | git rev-parse HEAD
09:11:03 | Cmd | sparkle_catchthis.git | git rev-parse HEAD
09:11:03 | Cmd | sparkle_catchthis.git | git checkout --quiet HEAD
09:11:05 | Controller | Error moving directory: "Access to the path 'C:\Users\Matthias\SparkleShare   \.tmp\sparkle_catchthis.git' is denied.", trying again...
09:11:05 | Controller | Error moving directory: Access to the path 'C:\Users\Matthias\SparkleShare\.tmp\sparkle_catchthis.git' is denied.
@hbons
Owner

i've added some more debug info. it would be great if you could give it a go if you haven't already removed SparkleShare from your system. for now i'm going to close this issue, as i can't reproduce this and i haven't seen anyone else report this, it looks like something going on with your system and/or repo.

@hbons hbons closed this Mar 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment