XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I am using gerrit as my SCM and have generated ssh keys for ca_nss_jenkins user and added same in gerrit and created jenkins credentials for the same with username and private key. Earlier it was working fine but after restart of the Jenkins server I am getting the issue.

       

      I have tried running the same commands in jenkins server directly and it works fine. But, in Jenkins it is showing the below errors.

       

      Failed to connect to repository : Command "git ls-remote -h ssh://ca_nss_jenkins@gerritrepo HEAD" returned status code 128:
      stdout: 
      stderr: /tmp/ssh7910025167466427456.sh: line 6: ssh: command not found
      fatal: Could not read from remote repository.

      Please make sure you have the correct access rights
      and the repository exists.

       

       

      SSH PLUGIN-2.6.1

      GIT PLUGIN-3.9.1

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment -

          This is an infrastructure issue that is specific to your environment, not something related to the git plugin or the git client plugin.

          The message that ssh cannot be found could be an indication that:

          • ssh is not on the PATH of the agent process
          • ssh on the PATH of the agent process can't be executed
          • other infrastructure issue
          Show
          markewaite Mark Waite added a comment - This is an infrastructure issue that is specific to your environment, not something related to the git plugin or the git client plugin. The message that ssh cannot be found could be an indication that: ssh is not on the PATH of the agent process ssh on the PATH of the agent process can't be executed other infrastructure issue
          Hide
          markewaite Mark Waite added a comment -

          Please use chat or the mailing lists for additional help on configuration issues. There are many more people available to assist with those types of issues than are reading bug reports for specific plugins.

          Show
          markewaite Mark Waite added a comment - Please use chat or the mailing lists for additional help on configuration issues. There are many more people available to assist with those types of issues than are reading bug reports for specific plugins.
          Hide
          rajdeepbs29 Rajdeep Bose added a comment -

          Hi Mark,

          As I said earlier it was working fine and post reboot the issue came. I am able to execute ssh directly from the console and PATH variable also seems to be fine. Please suggest any workaround for finding the issue.

           

          Show
          rajdeepbs29 Rajdeep Bose added a comment - Hi Mark, As I said earlier it was working fine and post reboot the issue came. I am able to execute ssh directly from the console and PATH variable also seems to be fine. Please suggest any workaround for finding the issue.  
          Hide
          markewaite Mark Waite added a comment -

          Since there was no software change between the "working" and "non-working" states, I'm confident the issue is not related to the software. Thus it is best resolved in other places, not in the bug tracker.

          I really don't want to encourage people to use the very few maintainers of the git plugin as primary source for answers on questions. When I spend time answering questions that others could answer, I'm reducing the time I spend on the plugin source code and reducing the amount that others can help.

          Please use chat or the mailing lists.

          Show
          markewaite Mark Waite added a comment - Since there was no software change between the "working" and "non-working" states, I'm confident the issue is not related to the software. Thus it is best resolved in other places, not in the bug tracker. I really don't want to encourage people to use the very few maintainers of the git plugin as primary source for answers on questions. When I spend time answering questions that others could answer, I'm reducing the time I spend on the plugin source code and reducing the amount that others can help. Please use chat or the mailing lists.

            People

            • Assignee:
              Unassigned
              Reporter:
              rajdeepbs29 Rajdeep Bose
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: