ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34633] New: - ReplaceRegExp periodically errors out with "Couldn't rename temporary file"
Date Tue, 26 Apr 2005 18:20:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34633>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34633

           Summary: ReplaceRegExp periodically errors out with "Couldn't
                    rename temporary file"
           Product: Ant
           Version: 1.5.3
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: nlitt@wilytech.com


Recently I encountered an specific laptop on which the replaceregexp task 
intermittently fails with errors like: 
 
 - Couldn't rename temporary file C:\<builddir>\rep1253479585.tmp
 - Couldn't rename temporary file C:\<builddir>\replace690408058.txt

I see that this error message is generated by line 431 of the ReplaceRegExp 
task. The task creates a temp file, manipulates it, then overwrites the 
original file with the temp file. The "Couldn't rename temp file" error 
signifies a failure to mv the tempfile to the original.  

The user is running as root, so it's not a permissions issue. And replaceregexp 
works most of the time, but certain calls always seem to crash with this error. 
So a single target might call replaceregexp successfully four or five times, 
then error out.  

Googling the error, I found one other person who has encountered it and was 
also stumped:
http://64.233.161.104/search?q=cache:SyAlUcJaA7cJ:www.mail-archive.com/user%
40ant.apache.org/msg01075.html+Ant+%22Couldn%27t+rename+temporary+file%22&hl=en

Searching through ASF Bugzilla, I could not find any bug that appears to be 
related.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message