https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362009-08-26T21:34:13ZEcoinformatics RedmineKepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=145392009-08-26T21:34:13ZMatt Jonesjones@nceas.ucsb.edu
<ul></ul><p>This happens on any platform when SVN doesn't complete an operation successfully and leaves the working copy in a locked state. Its not just windows. It is easily fixed by running 'svn cleanup' (not 'ant cleanup as indicated in the earlier comment). It should be rare and easily fixable, so I am lowering priority and retargeting unless it can be demonstrated that this is a common problem. Probably can close this bug.</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=145402010-01-08T03:52:08ZDavid Welkerwelker4kepler@gmail.com
<ul></ul><p>I agree that this bug should be closed. "ant update" is a convenience method which allows one to avoid having to run many individual svn update commands. There is no good way to interrupt it to allow user input to resolve the many issues that could cause the command to not complete. The solution if an error occurs (whether it is a lock or a conflict) when running "ant update" is to resolve the problem with standard svn commands before running "ant update" again.</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=145412010-01-15T01:30:34ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>Actually, running "svn cleanup" does not fix this under Windows Server 2003.</p>
<p>To create a svn repository, what I did was run<br />cd kepler/ptolemy<br />svn update &<br />kill -9 %1</p>
<p>This resulted in the ptolemy svn repository being locked.</p>
<p>Running <br />cd ../build-area<br />ant update</p>
<p>produced:</p>
<p>[update-modules] Updating ptolemy...<br />[update-modules] Using the stable version of ptolemy. Use 'ant update-ptolemy -D<br />rev=head' to work from the head.<br />[update-modules] svn -r 56907 update c:\tmp\cxh\src\kepler\ptolemy<br />[update-modules] svn: Working copy 'c:\tmp\cxh\src\kepler\ptolemy' locked<br />[update-modules] svn: run 'svn cleanup' to remove locks (type 'svn help cleanup'<br /> for details)<br />[update-modules]</p>
<p>This is fine. I went back to kepler/ptolemy and ran "svn cleanup".</p>
<p>Then, when I ran "ant update" in build-area, I got:</p>
<p>[update-modules] Updating build-area...<br />[update-modules] svn -r head update c:\tmp\cxh\src\kepler\build-area<br />[update-modules] svn: Working copy 'c:\tmp\cxh\src\kepler\build-area' locked<br />[update-modules] svn: run 'svn cleanup' to remove locks (type 'svn help cleanup'<br /> for details)<br />[update-modules]</p>
<p>This is odd, why is build-area needing a cleanup.</p>
<p>While in build-area/, I ran "svn cleanup", but still got</p>
<p>[update-modules] Updating build-area...<br />[update-modules] svn -r head update c:\tmp\cxh\src\kepler\build-area<br />[update-modules] svn: Working copy 'c:\tmp\cxh\src\kepler\build-area' locked<br />[update-modules] svn: run 'svn cleanup' to remove locks (type 'svn help cleanup'<br /> for details)<br />[update-modules]</p>
<p>So, at this point, the I can't update this tree.</p>
<p>Obviously, making the ptII svn repository need "svn cleanup" is a bit contrived,<br />but it does seem that if there is a repository in need of "svn cleanup", then<br />there are problems (at least under Windows Server 2003.)</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=145422010-02-11T13:22:12ZDavid Welkerwelker4kepler@gmail.com
<ul></ul><p>Christopher,</p>
<p>I was wondering if you could reproduce this problem still. I just tried to reproduce it using your commands:</p>
<p>cd kepler.modules/ptolemy/src<br />svn update &<br />kill -9 %1</p>
<p>As expected, the first time "ant update" failed, telling me that I had to do a clean up. I went ahead and did "svn update" on kepler.modules/ptolemy/src and ran "ant update" again and it worked fine.</p>
<p>It really is bizarre that the actions you took affected the build-area! That is pretty interesting.</p>
<p>Anyway, the "ant update" command has been changed since you ran this test. I was wondering if this problem is still reproducible on Windows? I certainly can't get this error to occur on Mac.</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=145432010-03-25T01:54:24ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>It looks like ant update fails under Windows 2003 in a clean tree.</p>
<p>The error is:</p>
<p>[update-modules] At revision 57481.<br />[update-modules] svn: warning: cannot set LC_CTYPE locale<br />[update-modules] svn: warning: environment variable LANG is ENU<br />[update-modules] svn: warning: please check that your locale name is correct<br />[update-modules] <br />[update-modules] Updating build-area...<br />[update-modules] svn -r head update --accept postpone C:\tmp\cxh\src\kepler\build-area <br />[update-modules] svn: warning: cannot set LC_CTYPE locale<br />[update-modules] svn: warning: environment variable LANG is ENU<br />[update-modules] svn: warning: please check that your locale name is correct<br />[update-modules] svn: Working copy 'C:\tmp\cxh\src\kepler\build-area' locked<br />[update-modules] svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)<br />[update-modules]</p>
<p>BUILD FAILED<br />C:\tmp\cxh\src\kepler\build-area\build.xml:165: ERROR: It appears that the command did not execute properly and exited with an exit code of: 1</p>
<p>To reproduce this under Windows, run:</p>
<p>mkdir kepler<br />cd kepler<br />svn co <a class="external" href="https://code.kepler-project.org/code/kepler/trunk/modules/build-area">https://code.kepler-project.org/code/kepler/trunk/modules/build-area</a><br />cd build-area<br />ant change-to -Dsuite=kepler<br />ant run<br />ant update</p>
<p>I suspect the problem is that Windows is braindead about modifying open<br />files. Probably there is an open file when svn is being run. The problem<br />does not appear under Mac OS X. Can someone try the above steps under Windows?</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=145442010-05-08T03:03:18ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>I was just bitten by this bug again.<br />The problem is that under Windows, if build-area gets updated by someone<br />else, then "ant update" fails with:</p>
<p>[update-modules] Updating build-area...<br />[update-modules] svn -r head update --accept postpone C:\tmp\cxh\src\kepler-2.0\build-area<br />[update-modules] svn: Working copy 'C:\tmp\cxh\src\kepler-2.0\build-area' locked<br />[update-modules] svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)<br />[update-modules]</p>
<p>running "svn cleanup" does not do it, one will get the same message again.</p>
<p>One has to run "svn update".</p>
<p>I'm bumping this up from P3 to P2 because Windows users will be bitten<br />by this bug and it will generate support email.</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=145452010-05-19T20:28:27ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>This bug is now affecting me under Mac OS X. I've also seen it under<br />Windows Server 2003.</p>
<p>svn update yields:</p>
<p>[update-modules] Updating ptolemy...<br />[update-modules] svn -r head update --accept postpone /Users/cxh/src/kepler/ptolemy <br />[update-modules] At revision 24512.<br />[update-modules] <br />[update-modules] Using the stable version of ptolemy. Use 'ant update-ptolemy -Drev=head' to work from the head.<br />[update-modules] svn -r 57769 update --accept postpone /Users/cxh/src/kepler/ptolemy/src <br />[update-modules] svn: Working copy '/Users/cxh/src/kepler/ptolemy/src' locked<br />[update-modules] svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)<br />[update-modules]</p>
<p>I've tried running "svn cleanup" in both the ptolemy and build-source<br />directory</p>
<p>What I did was<br />mkdir kepler<br />cd kepler<br />svn co <a class="external" href="https://code.kepler-project.org/code/kepler/trunk/modules/build-area">https://code.kepler-project.org/code/kepler/trunk/modules/build-area</a><br />cd build-area<br />ant change-to -Dsuite=kepler</p>
<p>Then, during the download, my connection failed.</p>
<p>I ran<br />ant change-to -Dsuite=kepler<br />ant update</p>
<p>and got the cleanup message above.</p>
<p>I then tried<br />cd ../ptolemy<br />svn cleanup<br />cd ../build-area<br />ant update<br />svn cleanup<br />ant update</p>
<p>The workaround was:<br />rm -rf ../ptolemy<br />atn change-to -Dsuite=kepler<br />ant update</p>
<p>The fix would be to have the error message state that "ant cleanup" <br />is not always sufficient.</p>
<p>I'm moving this up in importance because it affects multiple platforms<br />and losing a connection during a 10 minute download is somewhat common.</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=145462010-11-02T20:34:05ZJonathan Borightjboright@gmail.com
<ul></ul><p>I am also experiencing this bug with Windows 7 64-bit</p>
<p>when I run:</p>
<p>ant update</p>
<p>I get the same message:<br />"[update-modules] Updating build-area...<br />[update-modules] svn -r head update --accept postpone C:\kepler\svn\build-area<br />[update-modules] svn: Working copy 'C:\kepler\svn\build-area' locked<br />[update-modules] svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)<br />[update-modules]"</p>
<p>I've tried: <br />svn cleanup <br />svn update<br />ant clean-cache</p>
<p>I've re-built the build area: <br />(cd to buid-area<br />rm -rf *<br />svn co <a class="external" href="https://code.kepler-project.org/code/kepler/trunk/modules/build-area">https://code.kepler-project.org/code/kepler/trunk/modules/build-area</a> .<br />ant change-to -Dsuite=isciences)</p>
<p>I have not yet found the work-around. Ant update works fine until the build-area... then it fails...</p>
<p>Question: Is the build-area the last to update with ant update? If not, what comes after it?</p>
<p>Jon Boright</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=145472010-12-18T22:40:18ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>The problem with "ant update" failing under Windows continues.</p>
<p>After recent changes to build-area, I ran "svn update" sucessfully.</p>
<p>Then, when I ran "ant update", I got:<br />--start--<br />[update-modules] Updating build-area...<br />[update-modules] svn -r head update --accept postpone C:\tmp\cxh\src\kepler\build-area<br />[update-modules] svn: Working copy 'C:\tmp\cxh\src\kepler\build-area' locked<br />[update-modules] svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)<br />[update-modules]</p>
<p>BUILD FAILED<br />C:\tmp\cxh\src\kepler\build-area\build.xml:168: ERROR: It appears that the command did not execute properly and exited with an exit code of: 1<br />--end--</p>
<p>Running "svn cleanup" in build-area and then running "ant update" results in the same<br />error.</p>
<p>What is probably happening here is that the ant process is modifying the build-area<br />directory, which is causing the svn update to think that the svn update process was interrupted.<br />My conjecture is that changes to build-area such as updating target/kepler-tasks.jar<br />will cause this problem under Windows.</p>
<p>One workaround is to remove the build-area directory, do a new checkout and change-to:</p>
<p>cd ..<br />rm -rf build-area<br />svn co <a class="external" href="https://code.kepler-project.org/code/kepler/trunk/modules/build-area">https://code.kepler-project.org/code/kepler/trunk/modules/build-area</a><br />cd build-area<br />ant change-to -Dsuite=kepler</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=145482012-06-17T23:05:31ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>The problem where "ant update" fails under Windows continues to occur.<br />Under Windows Server 2008 R2, I got</p>
<p>[update-modules] Updating build-area...<br />[update-modules] svn -r head update --accept postpone C:\Users\Administrator\src\kepler\build-area<br />[update-modules] svn: Working copy 'C:\Users\Administrator\src\kepler\build-area' locked<br />[update-modules] svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)<br />[update-modules]</p>
<p>Running svn cleanup does not help, the only thing that works is removing<br />build-area and starting over.</p>
<p>I changed this target to 2.4.0 for consideration.</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=145492012-08-06T19:37:05ZIlkay Altintasaltintas@sdsc.edu
<ul></ul><p>This is a bug for developers. A potential fix is a two stage update that copies the file and writes on the copy. Later copies the new file on the old one once they are closed.</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=145502013-03-27T21:26:18ZRedmine Admin
<ul></ul><p>Original Bugzilla ID was 4281</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=222292015-08-12T23:03:26ZDaniel Crawldanielcrawl@gmail.com
<ul><li><strong>Assignee</strong> changed from <i>Ilkay Altintas</i> to <i>Christopher Brooks</i></li></ul><p>This problem will happen every time "ant update" is run on Windows and build-area/kepler-tasks.jar is updated. What if "ant update" skips build-area/ on Windows, and instead prints a message to run "svn update" manually?</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=222312015-08-12T23:40:32ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>Blocked by Bug <a class="issue tracker-1 status-5 priority-1 priority-lowest closed" title="Bug: ant change-to fails under Windows Server 2012 R2 with Cygwin (Closed)" href="https://projects.ecoinformatics.org/ecoinfo/issues/6829">#6829</a>: ant change-to fails under Windows Server 2012 R2 with Cygwin</p> Kepler - Bug #4281: ant update produces message about running svn cleanuphttps://projects.ecoinformatics.org/ecoinfo/issues/4281?journal_id=223112015-08-30T23:13:16ZDaniel Crawldanielcrawl@gmail.com
<ul><li><strong>Target version</strong> changed from <i>2.5.0</i> to <i>2.X.Y</i></li></ul>