Constant errors when checking out and pulling [message #1767932] |
Wed, 12 July 2017 08:40 |
Michael Moser Messages: 66 Registered: October 2012 Location: Zürich, Switzerland |
Member |
|
|
Practically every time when I do a checkout, a pull or (since the previous messed up my local copy) a reset I keep getting errors like the following:
Could not rename file W:\git\rcs\ch.sbb.alea\jars\._ch.sbb.alea.jar8814896191113171081.tmp to W:\git\rcs\ch.sbb.alea\jars\ch.sbb.alea.jar
Afterwards my EGit typically shows dozens or even hundreds of unstaged changes on files that I never touched. It seems as if "something" is keeping a lock onto temporary files while git is working on them and then the renaming of these temporary files to their final names fails (and then EGit completely derails...).
Any idea what could be causing this and how to make this more reliable? Right now EGit is practically unusable!
I found a similar bug described in 2015 guessing that this might be due to a race condition between the egit client and the .jar indexer. Could that still be the case here? Can one tame the indexer to wait or not lock these files?
This is using EGit 4.6.1.201703071140-r on Neon (M20161124) on Windows 7 (x64).
[Updated on: Wed, 12 July 2017 08:45] Report message to a moderator
|
|
|
|
Re: Constant errors when checking out and pulling [message #1768007 is a reply to message #1767943] |
Wed, 12 July 2017 19:08 |
Michael Moser Messages: 66 Registered: October 2012 Location: Zürich, Switzerland |
Member |
|
|
I am using NTFS.
Re. the monitoring: I consider that practically impossible since those temporary files have "randomized" names (here e.g. "_ch.sbb.alea.jar8814896191113171081.tmp") which can not be guessed in advance and are spread over all the .lib or .jar directories over 100+ projects in our case.
How would one tell any tool to monitor these files? I'll try to figure out which process holds that file when it happens again, but I have very little hope that the file is still locked by the time I manage to copy-paste that filename into a command line or some entry field.
[Updated on: Wed, 12 July 2017 19:09] Report message to a moderator
|
|
|
|
|
Re: Constant errors when checking out and pulling [message #1770514 is a reply to message #1768026] |
Sun, 13 August 2017 17:16 |
Michael Moser Messages: 66 Registered: October 2012 Location: Zürich, Switzerland |
Member |
|
|
Just wanted to thank again for the hint re. the virus scanner holding a lock on temp. files. I meanwhile excluded the relevant folder from being scanned and that indeed seems to have fixed the issue! I finally can reliably switch different branches without randomly ending up with a completely corrupted egit status.
Highly appreciated your help!
[Updated on: Sun, 13 August 2017 17:17] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Constant errors when checking out and pulling [message #1776033 is a reply to message #1774526] |
Thu, 09 November 2017 13:56 |
Bjorn-Willy Arntzen Messages: 8 Registered: August 2017 |
Junior Member |
|
|
Well, this is VERY annoying. Have turned off all virus checks, using only eclipse, but it's almost impossible to pull files from out git server with eclipse. Using commandline git works fine, so I really thing it's a eclipse issue. Have tried to monitor files, but the files only exists for a fractional of a second, so it's not possible decide who's holding the file.
As I recall this never happened before egit v4.8.0 (isch)
[Updated on: Thu, 09 November 2017 13:57] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04224 seconds