TeamCity Build Failing: Cannot delete file....
One of our builds get the Cannot delete file and only way to fix it is by going onto the buildAgent box and deleting the directory it mentions.
[16:21:18]: [Updating sources] Repository sources transferred: 3413.52Mb total
[16:21:18]: [Updating sources] Average transfer speed: 8.28Mb per second
[16:21:21]: [Updating sources] Removing /opt/choicestream/apps/buildAgent/work/b641db99760b3607
[16:21:22]: [Updating sources] Error while applying patch: Cannot delete file /opt/choicestream/apps/buildAgent/work/b641db99760b3607
Have tried changing the directory to have 777 permissions and the build still fails. Any ideas?
[16:21:18]: [Updating sources] Repository sources transferred: 3413.52Mb total
[16:21:18]: [Updating sources] Average transfer speed: 8.28Mb per second
[16:21:21]: [Updating sources] Removing /opt/choicestream/apps/buildAgent/work/b641db99760b3607
[16:21:22]: [Updating sources] Error while applying patch: Cannot delete file /opt/choicestream/apps/buildAgent/work/b641db99760b3607
Have tried changing the directory to have 777 permissions and the build still fails. Any ideas?
Please sign in to leave a comment.
Here is an example of the ls -bl :
DST_data/sn:
total 8
-rw-r
r1 bbslave bbslave 59 2009-10-02 18:52mdc5aldil3dfjntut79ggsk4.\244m
-rw-r
r1 bbslave bbslave 5 2009-10-02 18:52mdc5aldil3dfjntut79ggsk4.\244o
Does it sound right ?
I'll see how to add a locale call in the tests, I keep you informed.
Gérald
This code does not seems to be correct utf-8 symbol code (this should be 4 byte char code).
Please check the tool that generates those files to use either UTF8 encoding or right byte sequence for file names.
Thanks!
Le 13/10/2009 13:13, Eugene Petrenko a ecrit :
Ok, I've seen with developper in charge of this, it's not UTF8, but some
Windows 1252 smthg...
Using UTF8 has been planned, but it's not a quick task.
Is there nothing that can be done on TeamCity to delete those files?
Maybe call a system rm that seems to work?
For the moment, I've added some cleaning after the tests, so temporary I
don't have the problem anymore.
Gérald
The fix is to call:
export LC_ALL=us_US.windows1252
before starting build agent.
This command will switch everyting to windows1252 locale. By defalt utf-8 is used in new linux OS.
Thanks!