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

Can't read file: Can't access the file

    Details

    • Similar Issues:

      Description

      Hello
      I have:
      Jenkins ver. 2.138.2 for NAT.
      Cppcheck 1.85
      Cppcheck Plugin 1.24

      When I try to view a detailed scan result (example: https://wiki.jenkins.io/download/attachments/37749668/1.15_code.png?version=1&modificationDate=1395260940000&api=v2) I get the error "Can't read file: Can ' t access the file: file: ".
      Inside the local network everything is allowed.
      Connection to the node via SSH.
      Jenkins on Linux, node on Linux.

      What should I do?

        Attachments

          Activity

          mamoamo Amo Mamo created issue -
          Hide
          mikescholze Mike Scholze added a comment - - edited

          Same here after update from jenkins 2.107.3 to 2.138.2 and cppcheck plugin update from 1.21 to 1.24!

          • jenkins 2.138.2
          • cppcheck plugin 1.24
          • cppcheck 1.85

          Report not located in subdirectory.

          Downgrade the cppcheck plugin to 1.21 is not a solution, because the plugin can't render the diff html file.

          We urgently need feedback as our qa pipeline is affected.

          Show
          mikescholze Mike Scholze added a comment - - edited Same here after update from jenkins 2.107.3 to 2.138.2 and cppcheck plugin update from 1.21 to 1.24! jenkins 2.138.2 cppcheck plugin 1.24 cppcheck 1.85 Report not located in subdirectory. Downgrade the cppcheck plugin to 1.21 is not a solution, because the plugin can't render the diff html file. We urgently need feedback as our qa pipeline is affected.
          Hide
          mamoamo Amo Mamo added a comment -

          Something tells me that it's time to fork the plugin.

          Show
          mamoamo Amo Mamo added a comment - Something tells me that it's time to fork the plugin.
          Hide
          floatice ice zeng added a comment -

          please tell me what is your plan that fixed it

          Show
          floatice ice zeng added a comment - please tell me what is your plan that fixed it
          Hide
          floatice ice zeng added a comment -

          The bug is up at jenkins 2.150.1, cppcheck plugin: 1.24, cppcheck: 1.82

          Show
          floatice ice zeng added a comment - The bug is up at jenkins 2.150.1, cppcheck plugin: 1.24, cppcheck: 1.82
          Hide
          powerlands Yan Liang added a comment -

          In my case, I updated the cppcheck from 1.21 to 1.24, then this issue happens. Jenkins 2.162.

          Show
          powerlands Yan Liang added a comment - In my case, I updated the cppcheck from 1.21 to 1.24, then this issue happens. Jenkins 2.162.
          Hide
          smuppala Supraja Muppala added a comment -

          Workaround I have achieved is by using custom workspace. With this I was able to access files

          Show
          smuppala Supraja Muppala added a comment - Workaround I have achieved is by using custom workspace. With this I was able to access files
          Hide
          yyllssm li hechao added a comment -

          i use custom workspace, but it can not work Supraja Muppala, just only do that? 

          Show
          yyllssm li hechao added a comment - i use custom workspace, but it can not work Supraja Muppala , just only do that? 
          Hide
          smuppala Supraja Muppala added a comment -

          hi hechao, 

                    I applied a fix (https://github.com/jenkinsci/cppcheck-plugin/pull/46) for the plugin and it worked. I followed below steps

           

          Cppcheck 1.24 version had an issue and the fix was available online but the code was never pushed. Followed the below steps and it picked up the new code.

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

          Steps to have new plugin on your jenkins Instance.

          login to jenkins server

          cd to /var/lib/jenkins/plugins

          rename cppcheck.jpi cppcheck.jpi.orig.v1.24

          cppcheck cppcheck.orig.v1.24

          download cppcheck.hpi file from https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fcppcheck-plugin/detail/PR-46/2/artifacts/

          Copy to /var/lib/jenkins/plugins dir

          and restart the jenkins service

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

          Show
          smuppala Supraja Muppala added a comment - hi hechao,            I applied a fix ( https://github.com/jenkinsci/cppcheck-plugin/pull/46 ) for the plugin and it worked. I followed below steps   Cppcheck 1.24 version had an issue and the fix was available online but the code was never pushed. Followed the below steps and it picked up the new code. ============================ Steps to have new plugin on your jenkins Instance. login to jenkins server cd to /var/lib/jenkins/plugins rename cppcheck.jpi cppcheck.jpi.orig.v1.24 cppcheck cppcheck.orig.v1.24 download cppcheck.hpi file from https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fcppcheck-plugin/detail/PR-46/2/artifacts/ Copy to /var/lib/jenkins/plugins dir and restart the jenkins service ==============================
          Hide
          floatice ice zeng added a comment -
          Show
          floatice ice zeng added a comment - it doesn't work by using custom workspace and install   https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fcppcheck-plugin/detail/PR-46/2/artifacts/
          Hide
          c000l unkown unkown added a comment -

          I got the same error. Is there any chance to get a working fix for this problem? Without the view for the detailed results, the plugin is not really useful for me.

          Show
          c000l unkown unkown added a comment - I got the same error. Is there any chance to get a working fix for this problem? Without the view for the detailed results, the plugin is not really useful for me.
          Hide
          mikescholze Mike Scholze added a comment - - edited

          I think cppcheck plugin project is more or less dead. But you can use the new warnings next generation plugin. It contains cppcheck and visualize issues perfectly.

          https://wiki.jenkins.io/display/JENKINS/Warnings+Next+Generation+Plugin

          Show
          mikescholze Mike Scholze added a comment - - edited I think cppcheck plugin project is more or less dead. But you can use the new warnings next generation plugin. It contains cppcheck and visualize issues perfectly. https://wiki.jenkins.io/display/JENKINS/Warnings+Next+Generation+Plugin
          Hide
          c000l unkown unkown added a comment -

          Thank you for that information. Now  i'm using the warnings next generation plugin.

          Show
          c000l unkown unkown added a comment - Thank you for that information. Now  i'm using the warnings next generation plugin.
          Hide
          uday22 uday kumar added a comment -

          Thanks Mike Scholze, warnings next generation plugin is able to read the file. 

          Show
          uday22 uday kumar added a comment - Thanks Mike Scholze , warnings next generation plugin is able to read the file. 

            People

            • Assignee:
              marcosteffan Marco Steffan
              Reporter:
              mamoamo Amo Mamo
            • Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated: