Description
Not sure how close it relates, but it would seem we get a lot of
java.io.IOException: Too many open files
which consequently cause the build to fail 10 times then disable itself. Happened in version 0.7 as well, not in 0.3 and 0.5. Only happens on our linux box, not the two windows machines (different error has occurred on windows, logged separately)
So the latest error in the logs would be
2006-12-27 14:16:22,908 INFO [BAM::BuildChangeDetector] [DefaultBuildChangeDetector] Detected that build "XXX" needs building.
2006-12-27 14:16:22,926 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Starting to build 'XXX'
<br /> ... running command line: [ant loc] -f build.xml continuous-build
<br /> ... in : [location]
<br /> ... using java: [location]
<br /> ... using environment variables:
2006-12-27 14:16:22,932 WARN [BAM::BuildPipeline::BuildExecutor] [Command] Failed to execute command
java.io.IOException: java.io.IOException: Too many open files
at java.lang.UNIXProcess.<init>(UNIXProcess.java:143)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at sun.reflect.GeneratedMethodAccessor486.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at com.atlassian.bamboo.command.Command.executeCommand(Command.java:53)
at com.atlassian.bamboo.builder.AbstractBuilder.build(AbstractBuilder.java:191)
at com.atlassian.bamboo.builder.DefaultBuildExecutor.build(DefaultBuildExecutor.java:187)
at com.atlassian.bamboo.builder.DefaultBuildExecutor.doTask(DefaultBuildExecutor.java:103)
at com.atlassian.bamboo.container.BambooTask.run(BambooTask.java:33)
at java.lang.Thread.run(Thread.java:534)
2006-12-27 14:16:22,933 INFO [BAM::BuildPipeline::BuildExecutor] [Command] err>java.io.IOException: Too many open files
2006-12-27 14:16:22,933 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Completed building build "XXX" return code = -1
clean build with no checked out files throws same error after checking out all files:
[all other files checked out]
2006-12-27 14:13:53,656 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] AU build.xml
2006-12-27 14:13:53,668 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] AU continuous-build.properties
2006-12-27 14:13:53,703 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] U
2006-12-27 14:13:53,706 INFO [BAM::BuildChangeDetector] [UpdateEventHandler] At revision 13524
2006-12-27 14:13:55,129 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Starting to build 'XXX'
<br /> ... running command line: [ant loc] -f build.xml continuous-build
<br /> ... in : [checkout dir]
<br /> ... using java: [java loc]
<br /> ... using environment variables:
2006-12-27 14:13:55,134 WARN [BAM::BuildPipeline::BuildExecutor] [Command] Failed to execute command
java.io.IOException: java.io.IOException: Too many open files
at java.lang.UNIXProcess.<init>(UNIXProcess.java:143)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at sun.reflect.GeneratedMethodAccessor486.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at com.atlassian.bamboo.command.Command.executeCommand(Command.java:53)
at com.atlassian.bamboo.builder.AbstractBuilder.build(AbstractBuilder.java:191)
at com.atlassian.bamboo.builder.DefaultBuildExecutor.build(DefaultBuildExecutor.java:187)
at com.atlassian.bamboo.builder.DefaultBuildExecutor.doTask(DefaultBuildExecutor.java:103)
at com.atlassian.bamboo.container.BambooTask.run(BambooTask.java:33)
at java.lang.Thread.run(Thread.java:534)
2006-12-27 14:13:55,135 INFO [BAM::BuildPipeline::BuildExecutor] [Command] err>java.io.IOException: Too many open files
2006-12-27 14:13:55,135 INFO [BAM::BuildPipeline::BuildExecutor] [AbstractBuilder] Completed building build "XXX" return code = -1
Admittedly the checkout folder is /apps/WebSphere/Portal/bamboo-data/xml-data/build-dir/XXX which it may be having issues with, so I'll try a shorter address and see if that helps, but file length isn't the error here...