java.io.FileNotFoundException: /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address)

Atlassian JIRA | Minan Tan [Atlassian] | 4 years ago
  1. 0

    We have a build that specified a directory as an artifact. In this case, the target directory of the build. The build failed for legitimate reasons, however the directory was not transferred. In the server logs: {code} build 05-Sep-2012 03:20:33 [INFO] ------------------------------------------------------------------------ build 05-Sep-2012 03:20:33 [INFO] Total time: 14 minutes 31 seconds build 05-Sep-2012 03:20:33 [INFO] Finished at: Wed Sep 05 03:20:33 CDT 2012 build 05-Sep-2012 03:20:34 [INFO] Final Memory: 87M/424M build 05-Sep-2012 03:20:34 [INFO] ------------------------------------------------------------------------ simple 05-Sep-2012 03:20:39 Failing task since return code was 1 while expected 0 simple 05-Sep-2012 03:20:39 Parsing test results... simple 05-Sep-2012 03:20:54 Finished task 'Maven 2.x' simple 05-Sep-2012 03:20:54 Running post build plugin 'JMeter Aggregator Build Processor' simple 05-Sep-2012 03:20:54 Running post build plugin 'Artifact Copier' simple 05-Sep-2012 03:20:54 Publishing an artifact: Integration Test Output Dir error 05-Sep-2012 03:22:04 Failed to execute plugin 'Artifact Copier' with error: java.io.IOException: Exception occurred when posting message com.atlassian.bamboo.v2.build.agent.messages.ArtifactPublishMessage@10a86e. /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address) simple 05-Sep-2012 03:22:04 Running post build plugin 'Post Command Agent Runner' simple 05-Sep-2012 03:22:04 running post command on agent simple 05-Sep-2012 03:22:04 build failed, running fail command simple 05-Sep-2012 03:22:04 command is: simple 05-Sep-2012 03:22:04 Running post build plugin 'Sandbox Environment cleanup' simple 05-Sep-2012 03:22:04 Running post build plugin 'NCover Results Collector' simple 05-Sep-2012 03:22:04 Running post build plugin 'Clover Results Collector' simple 05-Sep-2012 03:22:04 Running post build plugin 'FindBugs Build Processor' simple 05-Sep-2012 03:22:04 Running post build plugin 'Cleanup Build Processor' {code} On the agent side: {code} 2012-09-05 03:20:57,402 INFO [1-BAM::bamboo-agent-2131.private.atlassian.com::Agent:pool-3-thread-1] [AbstractArtifactManager] Publishing [Integration Test Output Dir] for INTSYS-HAMSINTTEST0-JOB1-19: 909 file(s) matching [**/*.*] in directory /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target 2012-09-05 03:21:03,297 ERROR [1-BAM::bamboo-agent-2131.private.atlassian.com::Agent:pool-3-thread-1] [HttpMessageSender] Exception occurred when posting message com.atlassian.bamboo.v2.build.agent.messages.ArtifactPublishMessage@10a86e. /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address) java.io.FileNotFoundException: /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:120) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.writeObject(ArtifactTransferPayload.java:70) at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:940) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender$1.writeRequest(HttpMessageSender.java:59) at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:87) at com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler.publish(BambooRemoteArtifactHandler.java:32) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publishFileSet(AbstractArtifactManager.java:215) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:126) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:79) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:162) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:88) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:204) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:109) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52) at java.lang.Thread.run(Thread.java:662) {code} Googling found that the file in question was a postgres lock file, that likely disappeared between figuring out files to copy and actually copying. This exception should not prevent the rest of the files from being transferred, but it does. No other files in that directory were sent.

    Atlassian JIRA | 4 years ago | Minan Tan [Atlassian]
    java.io.FileNotFoundException: /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address)
  2. 0

    We have a build that specified a directory as an artifact. In this case, the target directory of the build. The build failed for legitimate reasons, however the directory was not transferred. In the server logs: {code} build 05-Sep-2012 03:20:33 [INFO] ------------------------------------------------------------------------ build 05-Sep-2012 03:20:33 [INFO] Total time: 14 minutes 31 seconds build 05-Sep-2012 03:20:33 [INFO] Finished at: Wed Sep 05 03:20:33 CDT 2012 build 05-Sep-2012 03:20:34 [INFO] Final Memory: 87M/424M build 05-Sep-2012 03:20:34 [INFO] ------------------------------------------------------------------------ simple 05-Sep-2012 03:20:39 Failing task since return code was 1 while expected 0 simple 05-Sep-2012 03:20:39 Parsing test results... simple 05-Sep-2012 03:20:54 Finished task 'Maven 2.x' simple 05-Sep-2012 03:20:54 Running post build plugin 'JMeter Aggregator Build Processor' simple 05-Sep-2012 03:20:54 Running post build plugin 'Artifact Copier' simple 05-Sep-2012 03:20:54 Publishing an artifact: Integration Test Output Dir error 05-Sep-2012 03:22:04 Failed to execute plugin 'Artifact Copier' with error: java.io.IOException: Exception occurred when posting message com.atlassian.bamboo.v2.build.agent.messages.ArtifactPublishMessage@10a86e. /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address) simple 05-Sep-2012 03:22:04 Running post build plugin 'Post Command Agent Runner' simple 05-Sep-2012 03:22:04 running post command on agent simple 05-Sep-2012 03:22:04 build failed, running fail command simple 05-Sep-2012 03:22:04 command is: simple 05-Sep-2012 03:22:04 Running post build plugin 'Sandbox Environment cleanup' simple 05-Sep-2012 03:22:04 Running post build plugin 'NCover Results Collector' simple 05-Sep-2012 03:22:04 Running post build plugin 'Clover Results Collector' simple 05-Sep-2012 03:22:04 Running post build plugin 'FindBugs Build Processor' simple 05-Sep-2012 03:22:04 Running post build plugin 'Cleanup Build Processor' {code} On the agent side: {code} 2012-09-05 03:20:57,402 INFO [1-BAM::bamboo-agent-2131.private.atlassian.com::Agent:pool-3-thread-1] [AbstractArtifactManager] Publishing [Integration Test Output Dir] for INTSYS-HAMSINTTEST0-JOB1-19: 909 file(s) matching [**/*.*] in directory /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target 2012-09-05 03:21:03,297 ERROR [1-BAM::bamboo-agent-2131.private.atlassian.com::Agent:pool-3-thread-1] [HttpMessageSender] Exception occurred when posting message com.atlassian.bamboo.v2.build.agent.messages.ArtifactPublishMessage@10a86e. /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address) java.io.FileNotFoundException: /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:120) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.writeObject(ArtifactTransferPayload.java:70) at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:940) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender$1.writeRequest(HttpMessageSender.java:59) at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:87) at com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler.publish(BambooRemoteArtifactHandler.java:32) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publishFileSet(AbstractArtifactManager.java:215) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:126) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:79) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:162) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:88) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:204) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:109) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52) at java.lang.Thread.run(Thread.java:662) {code} Googling found that the file in question was a postgres lock file, that likely disappeared between figuring out files to copy and actually copying. This exception should not prevent the rest of the files from being transferred, but it does. No other files in that directory were sent.

    Atlassian JIRA | 4 years ago | Minan Tan [Atlassian]
    java.io.FileNotFoundException: /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address)
  3. 0

    ArcGISCompactCacheTest fails in path with spaces

    GitHub | 3 years ago | bencaradocdavies
    java.io.FileNotFoundException: /home/car605/geoserver/src%20with%20spaces/geowebcache/geowebcache/arcgiscache/target/test-classes/compactcache/_alllayers/L05/R0000C0000.bundlx (No such file or directory)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RFE: sbt should not try to parse every file that ends with .sbt

    GitHub | 4 years ago | harrah
    java.io.FileNotFoundException: /<snip>/.#props.sbt (No such file or directory)
  6. 0

    New index fails with java.lang.NullPointerException

    GitHub | 4 years ago | fluential
    java.io.FileNotFoundException: /data/zookeeper/data/version-2/exhibitor-1361546755727 (Is a directory)

  1. gehel 2 times, last 1 week ago
  2. Kialandei 100 times, last 1 week ago
  3. Reich 1 times, last 2 weeks ago
  4. bluebunnty 1 times, last 2 weeks ago
  5. Aria Pahlavan 1 times, last 2 weeks ago
43 more registered users
52 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    /opt/bamboo-agent/xml-data/build-dir/INTSYS-HAMSINTTEST0-JOB1/inttest/target/psql/.s.PGSQL.1999 (No such device or address)

    at java.io.FileInputStream.open()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open(Native Method)
    2. java.io.FileInputStream.<init>(FileInputStream.java:120)
    2 frames
  3. com.atlassian.bamboo
    ArtifactTransferPayload.writeObject
    1. com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.writeObject(ArtifactTransferPayload.java:70)
    1 frame
  4. Java RT
    ObjectOutputStream.writeObject
    1. sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    4. java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:940)
    5. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
    6. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    7. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    8. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    9. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    10. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    11. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    12. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
    12 frames
  5. com.atlassian.bamboo
    HttpMessageSender$1.writeRequest
    1. com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender$1.writeRequest(HttpMessageSender.java:59)
    1 frame
  6. HttpClient
    HttpClient.executeMethod
    1. org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
    2. org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
    3. org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
    4. org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
    5. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
    6. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
    7. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
    7 frames
  7. com.atlassian.bamboo
    NamedThreadFactory$2.run
    1. com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:87)
    2. com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler.publish(BambooRemoteArtifactHandler.java:32)
    3. com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publishFileSet(AbstractArtifactManager.java:215)
    4. com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:126)
    5. com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:79)
    6. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:162)
    7. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:88)
    8. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:204)
    9. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)
    10. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:109)
    11. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
    11 frames
  8. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:662)
    1 frame