Deleting Fisheye temporary files
Asked by Richard Lawn:

The folder var/tmp (which according to the documentation contains temporary files) has 1.4million files in it, most of which are zero length with a name like svn123456789012345678. Can any or all these be deleted ? I am using FishEye 3.3.1

Some repositories are still being re-indexed, but giving errors which seem to relate to problems naming or saving files.


Answers:
author: Richard Lawn
body: Deleting all the temporary files has resolved the other errors (E135003), and indexing is running a lot more smoothly.


author: sbirgisson
body: For anyone hitting this now and finding this answers thread, the issue with temporary files sticking around in /var/tmp/svn has been resolved and released. ([](https://jira.atlassian.com/browse/FE-5162)<https://jira.atlassian.com/browse/FE-5162>) .

To avoid this problem, please upgrade to version 3.4.4 or above.

comments: author: Scott Cowan
body: Hi Sigge, I'm having this problem with F/C v3.9. I've done all the workarounds described here, <https://jira.atlassian.com/browse/FE-5162>. The workarounds have kickstarted a few repos, but there are still a couple that are stuck indexing 0%.


author: Piotr Swiecicki
body: Hi Richard,

Yet it is safe to delete FISHEYE_INST/var/tmp filder, just ensure you stop the server first, delete those files and start it again.

Let us know if the problem persist, no temporary files should be left behind unless there is something wrong with your instance.

By the way you mentioned errors relating to problems with file naming or saving those files. Could you attach those errors please? Full stack traces should be reported in the log files located in FISHEYE_INST/var/log

Kind regards,  
Piotr

comments: author: Richard Lawn
body: I have attached 2 extracts from the FishEye log file. One relating to error "E135003 Could not save file", and one relating to error "E135003: Unable to make name for 'D:\\FISHEYE_Data\\var\\tmp\\svn'" Note: I tried to upload the log file, but cannot see that it worked, so I have pasted the extracts into separate comments.


author: Richard Lawn
body: 2014-04-02 00:20:12,904 ERROR \[InitPing2 DWS DWS\] fisheye BaseRepositoryScanner-handleSlurpException - Problem processing revisions from repo DWS due to class com.cenqua.fisheye.rep.RepositoryClientException - org.apache.subversion.javahl.ClientException: svn: E135003: Unable to make name for 'D:\\FISHEYE_Data\\var\\tmp\\svn'  
com.cenqua.fisheye.rep.RepositoryClientException: org.apache.subversion.javahl.ClientException: svn: E135003: Unable to make name for 'D:\\FISHEYE_Data\\var\\tmp\\svn'  
at com.cenqua.fisheye.svn.SvnThrottledClient.executeNoThrottle(SvnThrottledClient.java:176)  
at com.cenqua.fisheye.svn.SvnThrottledClient.execute(SvnThrottledClient.java:145)  
at com.cenqua.fisheye.svn.SvnThrottledClient.diff(SvnThrottledClient.java:201)  
at com.atlassian.fisheye.svn.Svn2Infill2Processor.processDiffPaths(Svn2Infill2Processor.java:739)  
...  
Caused by: org.apache.subversion.javahl.ClientException: svn: E135003: Unable to make name for 'D:\\FISHEYE_Data\\var\\tmp\\svn'  
at org.apache.subversion.javahl.ClientException.fromException(ClientException.java:68)  
at org.tmatesoft.svn.core.javahl17.SVNClientImpl.getClientException(SVNClientImpl.java:1294)  
...  
Caused by: org.tmatesoft.svn.core.SVNException: svn: E135003: Unable to make name for 'D:\\FISHEYE_Data\\var\\tmp\\svn'  
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)  
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)  
...  
Caused by: org.tmatesoft.svn.core.SVNException: svn: E135003: Unable to make name for 'D:\\FISHEYE_Data\\var\\tmp\\svn'  
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)  
at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.createUniqueFile(SVNFileUtil.java:544)


author: Richard Lawn
body: 2014-04-02 09:03:42,494 ERROR \[InitPing1 DimensionsWeb DimensionsWeb\] fisheye BaseRepositoryScanner-handleSlurpException - Problem processing revisions from repo DimensionsWeb due to class com.cenqua.fisheye.rep.RepositoryClientException - org.apache.subversion.javahl.ClientException: svn: E135003: Could not save file  
com.cenqua.fisheye.rep.RepositoryClientException: org.apache.subversion.javahl.ClientException: svn: E135003: Could not save file  
at com.cenqua.fisheye.svn.SvnThrottledClient.executeNoThrottle(SvnThrottledClient.java:176)  
at com.cenqua.fisheye.svn.SvnThrottledClient.execute(SvnThrottledClient.java:145)  
at com.cenqua.fisheye.svn.SvnThrottledClient.diff(SvnThrottledClient.java:201)  
...  
Caused by: org.apache.subversion.javahl.ClientException: svn: E135003: Could not save file  
at org.apache.subversion.javahl.ClientException.fromException(ClientException.java:68)  
at org.tmatesoft.svn.core.javahl17.SVNClientImpl.getClientException(SVNClientImpl.java:1294)  
...  
Caused by: org.tmatesoft.svn.core.SVNException: svn: E135003: Could not save file  
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)  
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)  
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:755)


author: Cezary Zawadka
body: Hi Richard,

Have you tried to apply Piotr's tip? var/tmp folder should be recreated on startup with permissions of user who runs Fisheye.

If it doesn't help please try approach suggested in [](http://stackoverflow.com/a/5572813)<http://stackoverflow.com/a/5572813>

BTW: which Fisheye version are you using?

Cheers,

Czarek


author: Tini Good
body: Anyone run into a problem getting files to delete from ..\\Fisheye_Inst\\var\\tmp because there's too many of them? Even from DOS command line?