java.nio.file.NoSuchFileException: /var/Emails_log/GSWvalidSentAddresses.txt

Coderanch | Farakh khan | 1 year ago
  1. 0

    java.nio.file.NoSuchFileException:

    Coderanch | 1 year ago | Farakh khan
    java.nio.file.NoSuchFileException: /var/Emails_log/GSWvalidSentAddresses.txt
  2. 0

    java.nio.file.NoSuchFileException: why nio not creating file

    Stack Overflow | 1 year ago | Raakh
    java.nio.file.NoSuchFileException: /var/Emails_log/GSWvalidSentAddresses.txt
  3. 0

    GitHub comment 13#171743630

    GitHub | 11 months ago | cjr8020
    java.lang.RuntimeException: Was unable to read key
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h3. Summary # Issue # How to replicate # Investigation Done # Workaround h3. 1. Issue Not able to transfer artifacts and the following gets thrown: {code:title=<bamboo-install>/logs/catalina.out} 2016-01-20 11:37:39,464 ERROR [http-nio-8085-exec-20] [ArtifactServlet] Exception when storing the artifact java.nio.file.NoSuchFileException: /var/data/bamboo-home/artifacts/tmp/com.atlassian.bamboo.agent.messaging.ArtifactServlet7812808729203581451 at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) at java.nio.file.Files.createDirectory(Files.java:674) at java.nio.file.TempFileHelper.create(TempFileHelper.java:136) at java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:173) at java.nio.file.Files.createTempDirectory(Files.java:950) at com.atlassian.bamboo.agent.messaging.ArtifactServlet.getDeserialisationPath(ArtifactServlet.java:201) at com.atlassian.bamboo.agent.messaging.ArtifactServlet.storeArtifact(ArtifactServlet.java:116) at com.atlassian.bamboo.agent.messaging.ArtifactServlet.doPost(ArtifactServlet.java:107) {code} h3. 2. How to Replicate # install Bamboo v5.10.0 # install Bamboo remote agent # create a Project - Plan (_i.e.: PRO-PLAN_) # add a {{Script}} task to plan {code:title=Script task} echo "Hello World" > "${bamboo.planKey}-${bamboo.buildNumber}.txt" {code} # create an "{{Artifact Definition}}" ||Name|Text| ||Localtion|&nbsp;| ||Path|*.txt| |Shared|\[x\]| # run build against Remote agent h3. 3. Investigation Done # copied "{{log4j.properties}}" from Bamboo server and pasted to "{{<bamboo-agent-home>}}" directory {code:title=<bamboo-agent-home>/conf/wrapper.conf} wrapper.java.additional.3=-Dlog4j.configuration=/opt/atlassian/agent/atlassian-bamboo-5.10.0/log4j.properties {code} # ran a new build against Bamboo remote agent {code:title=<bamboo-remote-agent/logs/atlassian-bamboo.log>} 2016-01-20 17:15:22,109 INFO [3-BAM::broker.client.url::Agent:pool-6-thread-1] [BuildArtifactPostProcessor] Copying the build artifacts for build: PROJ-PLAN-JOB1-3 2016-01-20 17:15:22,359 DEBUG [3-BAM::broker.client.url::Agent:pool-6-thread-1] [AbstractArtifactManager] Adding reference: ant.PropertyHelper 2016-01-20 17:15:22,361 DEBUG [3-BAM::broker.client.url::Agent:pool-6-thread-1] [AbstractArtifactManager] Adding reference: ant.ComponentHelper 2016-01-20 17:15:22,362 DEBUG [3-BAM::broker.client.url::Agent:pool-6-thread-1] [AbstractArtifactManager] FileSet: Setup scanner in dir /opt/atlassian/agent/atlassian-bamboo-5.10.0/xml-data/build-dir/PROJ-PLAN-JOB1 with patternSet{ includes: [*.txt] excludes: [] } 2016-01-20 17:15:22,400 INFO [3-BAM::broker.client.url::Agent:pool-6-thread-1] [AbstractArtifactManager] Publishing [Text] for PROJ-PLAN-JOB1-3: 1 file(s) matching [*.txt] in directory /opt/atlassian/agent/atlassian-bamboo-5.10.0/xml-data/build-dir/PROJ-PLAN-JOB1 2016-01-20 17:15:22,529 INFO [3-BAM::broker.client.url::Agent:pool-6-thread-1] [AbstractArtifactManager] Trying to publish the artifact with handler: com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler 2016-01-20 17:15:22,712 DEBUG [3-BAM::broker.client.url::Agent:pool-6-thread-1] [RequestAddCookies] CookieSpec selected: best-match 2016-01-20 17:15:22,712 DEBUG [3-BAM::broker.client.url::Agent:pool-6-thread-1] [RequestAuthCache] Auth cache not set in the context 2016-01-20 17:15:22,717 DEBUG [3-BAM::broker.client.url::Agent:pool-6-thread-1] [BambooArtifactHttpTransport] Started writing the artifact to the output stream. 2016-01-20 17:15:22,833 INFO [3-BAM::broker.client.url::Agent:pool-6-thread-1] [BambooArtifactHttpTransport] Finished writing the artifact to the output stream, time elapsed: 110.4 ms 2016-01-20 17:15:23,080 DEBUG [3-BAM::broker.client.url::Agent:pool-6-thread-1] [BambooArtifactHttpTransport] Entity in HTTP response: [<html> <head> <title>Internal server error</title> <meta name="decorator" content="install" /> </head> <body> <h1>Internal server error</h1> <h4>Go to...</h4> <ul> <li><a href="/">Site homepage</a></li> </ul> A system error has occurred - our apologies! <p> Please create a problem report on our <b>support system</b> at <a href="https://support.atlassian.com/secure/CreateIssue.jspa?pid=10060&issuetype=1">http://support.atlassian.com</a> with the following information: <ol class="standard"> <li>a description of your problem and what you were doing at the time it occurred <li>cut &amp; paste the error and system information found below <li>attach the <strong>atlassian-bamboo.log</strong> log file found in your application home. </ol> We will respond as promptly as possible.<br/>Thank you! </p> <p> <b>Version:</b> 5.10.0<br> <b>Build:</b> 51017<br> <b>Build Date:</b> 15 Jan 2016 </p> <h4>Request information:</h4> <ul class="standard"> <li>Request URL: http://webserver.bamboo/500.action</li> <li>Scheme: http</li> <li>Server: webserver.bamboo</li> <li>Port: 80</li> <li>URI: /500.action</li> <li>Context path: </li> <li>Servlet path: /500.action</li> <li>Path info: </li> <li>Query string: fingerprint=-5662227328481913159&amp;planResultKey=PROJ-PLAN-JOB1-3</li> </ul> <p> <b>Stack Trace:</b> <pre> java.nio.file.NoSuchFileException: /opt/atlassian/home/atlassian-bamboo-5.10.0/artifacts/tmp/com.atlassian.bamboo.agent.messaging.ArtifactServlet4593917311442710816 at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) {code} # in the "{{<bamboo-install>/logs/catalina.out}}" {code:title=<bamboo-install/logs/catalina.out>} 2016-01-20 17:15:22,537 INFO [http-nio-8085-exec-11] [AccessLogFilter] admin GET http://webserver.bamboo/rest/pref/latest/user/?expand=preferences.preference 40457kb 2016-01-20 17:15:22,840 INFO [http-nio-8085-exec-20] [ArtifactServlet] Receiving Artifact [Text] for PROJ-PLAN-JOB1-3 2016-01-20 17:15:22,885 ERROR [http-nio-8085-exec-20] [ArtifactServlet] Exception when storing the artifact java.nio.file.NoSuchFileException: /opt/atlassian/home/atlassian-bamboo-5.10.0/artifacts/tmp/com.atlassian.bamboo.agent.messaging.ArtifactServlet4593917311442710816 at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) {code} # in the build log {code:title=PROJ-PLAN-JOB1-3.log} simple 20-Jan-2016 17:15:22 Running post build plugin 'Artifact Copier' simple 20-Jan-2016 17:15:22 Publishing an artifact: Text error 20-Jan-2016 17:15:23 Unable to publish artifact [Text]: simple 20-Jan-2016 17:15:23 The artifact hasn't been successfully published after 0s simple 20-Jan-2016 17:15:23 Finalising the build... simple 20-Jan-2016 17:15:23 Stopping timer. simple 20-Jan-2016 17:15:23 Build PROJ-PLAN-JOB1-3 completed. {code} h3. 4. Workaround When running the following command we can observe the directory "{{/opt/atlassian/home/atlassian-bamboo-5.10.0/artifacts/tmp}}" does not exist: {code} $ ls -l /opt/atlassian/home/atlassian-bamboo-5.10.0/artifacts {code} # create the directory manually {code} mkdir /opt/atlassian/home/atlassian-bamboo-5.10.0/artifacts/tmp {code} # run a new build {code:title=PROJ-PLAN-JOB1-4.log} simple 20-Jan-2016 17:33:29 Running post build plugin 'Artifact Copier' simple 20-Jan-2016 17:33:29 Publishing an artifact: Text simple 20-Jan-2016 17:33:30 Finished publishing of artifact Shared artifact: [Text], pattern: [*.txt] in 1s simple 20-Jan-2016 17:33:30 Finalising the build... simple 20-Jan-2016 17:33:30 Stopping timer. simple 20-Jan-2016 17:33:30 Build PROJ-PLAN-JOB1-4 completed. {code}

    Atlassian JIRA | 10 months ago | Rafael Sperafico [Atlassian]
    java.nio.file.NoSuchFileException: /var/data/bamboo-home/artifacts/tmp/com.atlassian.bamboo.agent.messaging.ArtifactServlet7812808729203581451
  6. 0

    Elasticsearch won't start on Mac OS 10.10.5

    GitHub | 10 months ago | th3m4ri0
    java.nio.file.NoSuchFileException: /usr/local/var/lib/elasticsearch/plugins/analysis-icu/plugin-descriptor.properties

    1 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.nio.file.NoSuchFileException

      /var/Emails_log/GSWvalidSentAddresses.txt

      at sun.nio.fs.UnixException.translateToIOException()
    2. Java RT
      Files.newBufferedWriter
      1. sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
      2. sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      3. sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      4. sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
      5. java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:430)
      6. java.nio.file.Files.newOutputStream(Files.java:170)
      7. java.nio.file.Files.newBufferedWriter(Files.java:2720)
      7 frames
    3. Unknown
      SendEmail.printReport
      1. SendEmail.printReport(SendEmail.java:114)
      1 frame