Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23769

gen drmemory report fail ( dir not exist problem) case 13862

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • drmemory-plugin
    • None
    • windows 2003 server / plugin 1.3 / drmemory 1.7 / Jenkins ver. 1.539

      i'm sure the log folder is exist ,
      but i don't know why still got this error.

      problem log:

      ===========================================================
      (output folder "27"/ log folder "27" are same name )

      23:44:45 Dr Memory Plugin version 1.3
      23:44:45 Executing C:\Project\01.FirstDevDepartment\.\trunk\Applications\JPMorgan_TransliterationTest\bin\Release\JPMorgan_TransliterationTest.exe RPY_LoadWithMemoryMonitor
      23:44:45 Setting log path to C:\Project\01.FirstDevDepartment\drmemory\27

      23:45:42 My workspace is C:\Project\01.FirstDevDepartment
      23:45:43 ERROR: Publisher net.praqma.jenkins.plugin.drmemory.DrMemoryPublisher aborted due to exception
      23:45:43 java.io.FileNotFoundException: C:\Project\01.FirstDevDepartment\drmemory\27\DrMemory-JPMorgan_TransliterationTest.exe.3692.000\results.txt (系統找不到指定的路徑。)
      23:45:43 at java.io.FileInputStream.open(Native Method)
      23:45:43 at java.io.FileInputStream.<init>(Unknown Source)
      23:45:43 at java.io.FileReader.<init>(Unknown Source)
      23:45:43 at net.praqma.drmemory.DrMemoryResult.getTop(DrMemoryResult.java:352)
      23:45:43 at net.praqma.drmemory.DrMemoryResult.parse(DrMemoryResult.java:130)
      23:45:43 at net.praqma.jenkins.plugin.drmemory.DrMemoryPublisher.perform(DrMemoryPublisher.java:117)
      23:45:43 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      23:45:43 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:781)
      23:45:43 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:753)
      23:45:43 at hudson.model.Build$BuildExecution.post2(Build.java:183)
      23:45:43 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706)
      23:45:43 at hudson.model.Run.execute(Run.java:1704)
      23:45:43 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      23:45:43 at hudson.model.ResourceController.execute(ResourceController.java:88)
      23:45:43 at hudson.model.Executor.run(Executor.java:230)
      23:45:43 Finished: FAILURE

      ===========================================================

      (output folder "25"/ log folder "23" are diff name )

      23:30:41
      23:30:41 C:\Project\01.FirstDevDepartment>exit 0
      23:30:41 [01.FirstDevDepartment] $ cmd /c call C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\hudson4969937881033425103.bat
      23:30:41
      23:30:41 C:\Project\01.FirstDevDepartment>if not exist "c:\project\JPM_Tarns_PJ" (mkdir c:\project\JPM_Tarns_PJ )
      23:30:41
      23:30:41 C:\Project\01.FirstDevDepartment>exit 0
      23:30:41 Dr Memory Plugin version 1.3
      23:30:41 Executing C:\Project\01.FirstDevDepartment\.\trunk\Applications\JPMorgan_TransliterationTest\bin\Release\JPMorgan_TransliterationTest.exe RPY_LoadWithMemoryMonitor
      23:30:41 Setting log path to C:\Project\01.FirstDevDepartment\drmemory\25

      23:31:07 My workspace is C:\Project\01.FirstDevDepartment

      23:31:07 ERROR: Publisher net.praqma.jenkins.plugin.drmemory.DrMemoryPublisher aborted due to exception
      23:31:07 java.io.FileNotFoundException: C:\Project\01.FirstDevDepartment\drmemory\23\DrMemory-JPMorgan_TransliterationTest.exe.1472.000\results.txt (系統找不到指定的路徑。)
      23:31:07 at java.io.FileInputStream.open(Native Method)
      23:31:07 at java.io.FileInputStream.<init>(Unknown Source)
      23:31:07 at java.io.FileReader.<init>(Unknown Source)
      23:31:07 at net.praqma.drmemory.DrMemoryResult.getTop(DrMemoryResult.java:352)
      23:31:07 at net.praqma.drmemory.DrMemoryResult.parse(DrMemoryResult.java:130)
      23:31:07 at net.praqma.jenkins.plugin.drmemory.DrMemoryPublisher.perform(DrMemoryPublisher.java:117)
      23:31:07 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      23:31:07 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:781)
      23:31:07 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:753)
      23:31:07 at hudson.model.Build$BuildExecution.post2(Build.java:183)
      23:31:07 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706)
      23:31:07 at hudson.model.Run.execute(Run.java:1704)
      23:31:07 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      23:31:07 at hudson.model.ResourceController.execute(ResourceController.java:88)
      23:31:07 at hudson.model.Executor.run(Executor.java:230)
      23:31:07 Finished: FAILURE

          [JENKINS-23769] gen drmemory report fail ( dir not exist problem) case 13862

          Please provide your drmemory specific job configuration details.

          Praqma Support added a comment - Please provide your drmemory specific job configuration details.

          Hello,

          I've exactly the same issue with drmemory report publisher. My Dr.Memory Plugin settings are:

          -------------------------------------------------------
          Execute with Dr.Memory

          Log Path: Logs/drmemory/

          Dr.Memory report

          Log Path: Logs/drmemory/
          -------------------------------------------------------

          I'm pretty sure that there is report file into the corresponding paths.

          Here is log output:

          ------------------------------------------------------------------------------------------
          Setting log path to <http://myjenkinsserver/job/gc-sdk-desktop-client-win/ws/Logs\drmemory\193>
          Archiving artifacts
          My workspace is <http://myjenkinsserver/job/gc-sdk-desktop-client-win/ws/>
          ERROR: Step �Dr. Memory Report� aborted due to exception:
          java.io.FileNotFoundException: <http://myjenkinsserver/job/gc-sdk-desktop-client-win/ws/Logs\drmemory\193\DrMemory-gc-sdk-clnt-unittest.exe.2340.000\results.txt> (No such file or directory)
          at java.io.FileInputStream.open0(Native Method)
          at java.io.FileInputStream.open(FileInputStream.java:195)
          at java.io.FileInputStream.<init>(FileInputStream.java:138)
          at java.io.FileReader.<init>(FileReader.java:72)
          at net.praqma.drmemory.DrMemoryResult.getTop(DrMemoryResult.java:352)
          at net.praqma.drmemory.DrMemoryResult.parse(DrMemoryResult.java:130)
          at net.praqma.jenkins.plugin.drmemory.DrMemoryPublisher.perform(DrMemoryPublisher.java:117)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
          at hudson.model.Build$BuildExecution.post2(Build.java:185)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
          at hudson.model.Run.execute(Run.java:1766)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          ------------------------------------------------------------------------------------------

          If I click on the link to the results file I can see it into the browser.

          Can you help me resolve this problem?
          Please let me know if you need more information about my jenkins configuration.

          Thanks,
          Dmitry

          Dmitry Gritsay added a comment - Hello, I've exactly the same issue with drmemory report publisher. My Dr.Memory Plugin settings are: ------------------------------------------------------- Execute with Dr.Memory Log Path: Logs/drmemory/ Dr.Memory report Log Path: Logs/drmemory/ ------------------------------------------------------- I'm pretty sure that there is report file into the corresponding paths. Here is log output: ------------------------------------------------------------------------------------------ Setting log path to < http://myjenkinsserver/job/gc-sdk-desktop-client-win/ws/Logs\drmemory\193 > Archiving artifacts My workspace is < http://myjenkinsserver/job/gc-sdk-desktop-client-win/ws/ > ERROR: Step �Dr. Memory Report� aborted due to exception: java.io.FileNotFoundException: < http://myjenkinsserver/job/gc-sdk-desktop-client-win/ws/Logs\drmemory\193\DrMemory-gc-sdk-clnt-unittest.exe.2340.000\results.txt > (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at java.io.FileReader.<init>(FileReader.java:72) at net.praqma.drmemory.DrMemoryResult.getTop(DrMemoryResult.java:352) at net.praqma.drmemory.DrMemoryResult.parse(DrMemoryResult.java:130) at net.praqma.jenkins.plugin.drmemory.DrMemoryPublisher.perform(DrMemoryPublisher.java:117) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) ------------------------------------------------------------------------------------------ If I click on the link to the results file I can see it into the browser. Can you help me resolve this problem? Please let me know if you need more information about my jenkins configuration. Thanks, Dmitry

          Mads Nielsen added a comment -

          Hi Dmitry,

          We've added your issue to in our system.

          Can you download this file?

          http://myjenkinsserver/job/gc-sdk-desktop-client-win/ws/Logs\drmemory\193\DrMemory-gc-sdk-clnt-unittest.exe.2340.000\results.txt

          Best regards,
          Mads

          Mads Nielsen added a comment - Hi Dmitry, We've added your issue to in our system. Can you download this file? http://myjenkinsserver/job/gc-sdk-desktop-client-win/ws/Logs\drmemory\193\DrMemory-gc-sdk-clnt-unittest.exe.2340.000\results.txt Best regards, Mads

          Hi Mads,

          Thanks for quick response! As for your question - yes I can.
          The file exist and can be accessed/downloaded by provided link.

          Also I figured out that I had not the latest version of JavaVM I've just updated to the last one but the issue is still persist.

          Thanks,
          Dmitry

          Dmitry Gritsay added a comment - Hi Mads, Thanks for quick response! As for your question - yes I can. The file exist and can be accessed/downloaded by provided link. Also I figured out that I had not the latest version of JavaVM I've just updated to the last one but the issue is still persist. Thanks, Dmitry

          Kasia Gauza added a comment -

          Hi, I may have a similar issue which is impossible for me to solve. I do have a results folder, I even run Dr. Memory builder and in postbuild I've run Dr. Memory publisher and still got an error:

          Setting log path to D:\jenkins-workspace\workspace\drmemoryGenerateAndProcessLogs-test\results_memcheck\7
          My workspace is D:\jenkins-workspace\workspace\drmemoryGenerateAndProcessLogs-test
          ERROR: Step ‘Dr. Memory Report’ aborted due to exception: 
          java.io.FileNotFoundException: D:\jenkins-workspace\workspace\drmemoryGenerateAndProcessLogs-test\results_memcheck\7\DrMemory-pscp.exe.1772.000\results.txt (No such file or directory)
          	at java.io.FileInputStream.open(Native Method)
          	at java.io.FileInputStream.<init>(FileInputStream.java:146)
          	at java.io.FileReader.<init>(FileReader.java:72)
          	at net.praqma.drmemory.DrMemoryResult.getTop(DrMemoryResult.java:352)
          	at net.praqma.drmemory.DrMemoryResult.parse(DrMemoryResult.java:130)
          	at net.praqma.jenkins.plugin.drmemory.DrMemoryPublisher.perform(DrMemoryPublisher.java:117)
          	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
          	at hudson.model.Build$BuildExecution.post2(Build.java:185)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
          	at hudson.model.Run.execute(Run.java:1745)
          	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          	at hudson.model.ResourceController.execute(ResourceController.java:98)
          	at hudson.model.Executor.run(Executor.java:404)
          

          I have tried to get the logs form the master and from the node and the result is the same, "FileNotFoundException".

          Kasia Gauza added a comment - Hi, I may have a similar issue which is impossible for me to solve. I do have a results folder, I even run Dr. Memory builder and in postbuild I've run Dr. Memory publisher and still got an error: Setting log path to D:\jenkins-workspace\workspace\drmemoryGenerateAndProcessLogs-test\results_memcheck\7 My workspace is D:\jenkins-workspace\workspace\drmemoryGenerateAndProcessLogs-test ERROR: Step ‘Dr. Memory Report’ aborted due to exception: java.io.FileNotFoundException: D:\jenkins-workspace\workspace\drmemoryGenerateAndProcessLogs-test\results_memcheck\7\DrMemory-pscp.exe.1772.000\results.txt (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146) at java.io.FileReader.<init>(FileReader.java:72) at net.praqma.drmemory.DrMemoryResult.getTop(DrMemoryResult.java:352) at net.praqma.drmemory.DrMemoryResult.parse(DrMemoryResult.java:130) at net.praqma.jenkins.plugin.drmemory.DrMemoryPublisher.perform(DrMemoryPublisher.java:117) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665) at hudson.model.Run.execute(Run.java:1745) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) I have tried to get the logs form the master and from the node and the result is the same, "FileNotFoundException".

          Kasia Gauza added a comment - - edited

          Issue is with DrMemoryPublisher.java, part "Read all results": DrMemoryResult dresult = DrMemoryResult.parse(new File(result.toString())) - that "new File" part fails with "file not found" error. But the file exists, it was generated by the dr.memory plugin. Could it be that it tries to get the file not from the node but from the master?

          Kasia Gauza added a comment - - edited Issue is with DrMemoryPublisher.java, part "Read all results": DrMemoryResult dresult = DrMemoryResult.parse(new File(result.toString())) - that "new File" part fails with "file not found" error. But the file exists, it was generated by the dr.memory plugin. Could it be that it tries to get the file not from the node but from the master?

          Kasia Gauza added a comment -

          A bit of investigation later: The issue is that the log cannot reside on a build/slave node, because the drmemory publisher searches for the results files on the Jenkins master node. I have tried to copy the log to the master and run publisher there and it crashed the Jenkins with a following text:

          Could not create logger. Quitting!
          Jan 19, 2017 4:30:12 PM winstone.Logger logInternal
          INFO: JVM is terminating. Shutting down Winstone

          Kasia Gauza added a comment - A bit of investigation later: The issue is that the log cannot reside on a build/slave node , because the drmemory publisher searches for the results files on the Jenkins master node. I have tried to copy the log to the master and run publisher there and it crashed the Jenkins with a following text: Could not create logger . Quitting! Jan 19, 2017 4:30:12 PM winstone.Logger logInternal INFO: JVM is terminating. Shutting down Winstone

            praqma Praqma Support
            rick0518 Kun Yu Hsieh
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: