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

Unable to fetch Private repository in GitHub

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Not A Defect
    • Component/s: core, github-plugin
    • Environment:
      apache-tomcat-7.0.75,jenkins-2.49 and tried on later versions also,windows (7,8.1,10,server 2012 R2),jdk-8u121-windows-x64,google chrome and edge browser,The error is same in both deployment in tomcat and also running the jar file from command line
    • Similar Issues:
    • Epic Link:
    • Sprint:
      1.0

      Description

      today I am getting error with private repositories while building the job.WIth public it is successful.

      I am getting the below error.

       

      The error is same in both deployment in tomcat and also running the jar file from command line.

      ------------------

      Started by user admin
      Building in workspace C:\Windows\system32\config\systemprofile\.jenkins\workspace\InstallCreation
      Cloning the remote Git repository
      Cloning repository https://github.com/erwin-inc/BuildAutomation_DailyInstallCreation.git
      > git.exe init C:\Windows\system32\config\systemprofile\.jenkins\workspace\InstallCreation # timeout=10
      Fetching upstream changes from https://github.com/erwin-inc/BuildAutomation_DailyInstallCreation.git
      > git.exe --version # timeout=10
      using GIT_ASKPASS to set credentials github
      > git.exe fetch --tags --progress https://github.com/erwin-inc/BuildAutomation_DailyInstallCreation.git +refs/heads/:refs/remotes/origin/
      ERROR: Timeout after 10 minutes
      ERROR: Error cloning remote repo 'origin'

      ------------

        Attachments

          Activity

          ur00361883 uday kiran reddy created issue -
          ur00361883 uday kiran reddy made changes -
          Field Original Value New Value
          Epic Link JENKINS-32387 [ 167497 ]
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Please provide Jenkins system log

          Show
          oleg_nenashev Oleg Nenashev added a comment - Please provide Jenkins system log
          ur00361883 uday kiran reddy made changes -
          Attachment console output.txt [ 36402 ]
          ur00361883 uday kiran reddy made changes -
          Attachment System log.txt [ 36403 ]
          Hide
          ur00361883 uday kiran reddy added a comment -

          console output.txt

          THe above is the console output of the job where the fetching of repo is failing from private repo of github..

           

          And the system log is below.

          System log.txt

          Show
          ur00361883 uday kiran reddy added a comment - console output.txt THe above is the console output of the job where the fetching of repo is failing from private repo of github..   And the system log is below. System log.txt
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Seems the provided log does not contain the timeframe of the build

          Show
          oleg_nenashev Oleg Nenashev added a comment - Seems the provided log does not contain the timeframe of the build
          Hide
          ur00361883 uday kiran reddy added a comment -

           I am new to this product, so I didn't understand what you are asking exactly.

          I will explain you what I have done till now.

           

          1. Installed java 8 and Jenkins (tried with Tomcat and also through command line (java -jar jenkinswarfile)).And Git application.
          2. Installed GitHub plugin
          3. Created a freestyle job with a public repository along with the jenkins credentials for github.It is building.
          4. Created a similar job for private repository and the github fetching is failing.
          5. I am able to clone same repo from git application but not through jenkins.

          When you asked for system log, I went to the jenkins configure section and selected "All logs" in the sytem logs and shared the content to you along with the command line output of the job.

           

          I don't know about timeline you are asking for.

           

          Show
          ur00361883 uday kiran reddy added a comment -  I am new to this product, so I didn't understand what you are asking exactly. I will explain you what I have done till now.   Installed java 8 and Jenkins (tried with Tomcat and also through command line (java -jar jenkinswarfile)).And Git application. Installed GitHub plugin Created a freestyle job with a public repository along with the jenkins credentials for github.It is building. Created a similar job for private repository and the github fetching is failing. I am able to clone same repo from git application but not through jenkins. When you asked for system log, I went to the jenkins configure section and selected "All logs" in the sytem logs and shared the content to you along with the command line output of the job.   I don't know about timeline you are asking for.  
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          For newbie users I would recommend generating a support bundle via https://wiki.jenkins-ci.org/display/JENKINS/Support+Core+Plugin

          Show
          oleg_nenashev Oleg Nenashev added a comment - For newbie users I would recommend generating a support bundle via https://wiki.jenkins-ci.org/display/JENKINS/Support+Core+Plugin
          Hide
          ur00361883 uday kiran reddy added a comment -

          I didn't find option to raise a ticket there.could you please help

          Show
          ur00361883 uday kiran reddy added a comment - I didn't find option to raise a ticket there.could you please help
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          You need to generate the support bundle and to attach it to this ticket

          Show
          oleg_nenashev Oleg Nenashev added a comment - You need to generate the support bundle and to attach it to this ticket
          ur00361883 uday kiran reddy made changes -
          Attachment support_2017-03-12_11.17.45.zip [ 36406 ]
          Show
          ur00361883 uday kiran reddy added a comment - support_2017-03-12_11.17.45.zip
          Show
          ur00361883 uday kiran reddy added a comment - support_2017-03-12_11.17.45.zip
          Hide
          paulerickson Paul Erickson added a comment -

          Your console output looks different from mine, like you're not using credentials or something, but I learned that when using a personal access key, you need to include the username. Without it, the organization scan goes fine, but the fetch fails.

          Show
          paulerickson Paul Erickson added a comment - Your console output looks different from mine, like you're not using credentials or something, but I learned that when using a personal access key, you need to include the username. Without it, the organization scan goes fine, but the fetch fails.
          Hide
          integer Kanstantsin Shautsou added a comment -

          Looks like you didn't configure gitscm with keys for accessing your private repo. I see nothing related to github plugin.

          Show
          integer Kanstantsin Shautsou added a comment - Looks like you didn't configure gitscm with keys for accessing your private repo. I see nothing related to github plugin.
          integer Kanstantsin Shautsou made changes -
          Assignee Kirill Merkushev [ lanwen ]
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Resolved [ 5 ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ur00361883 uday kiran reddy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: