Hi, I am facing this issue: Git fetch timeout - while checking out from a private repo - PFB the log:
Building in workspace /Users/Shared/Jenkins/Home/workspace/iOS job > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/myRepo <https://github.com/WW-Digital/meg-app.git> # timeout=10 Fetching upstream changes from https://github.com/myRepo <https://github.com/WW-Digital/meg-app.git> > git --version # timeout=10 using GIT_ASKPASS to set credentials > git fetch --tags --progress https://github.com/myRepo <https://github.com/WW-Digital/meg-app.git> +refs/heads/*:refs/remotes/origin/* ERROR: Timeout after 10 minutes ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from https://github.com/myRepo <https://github.com/WW-Digital/meg-app.git> at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:817) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1084) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1115) at hudson.scm.SCM.checkout(SCM.java:495) at hudson.model.AbstractProject.checkout(AbstractProject.java:1212) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:566) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:491) at hudson.model.Run.execute(Run.java:1739) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:419) Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress https://github.com/myRepo <https://github.com/WW-Digital/meg-app.git> +refs/heads/*:refs/remotes/origin/*" returned status code 143: On Monday, 5 June 2017 14:52:53 UTC-4, Mark Waite wrote: > > From the "Global Tool Configuration" page of "Manage Jenkins", configure a > Maven installer that downloads the maven version you need from the apache > distribution locations. Jenkins will then install that tool for you > automatically when you define the job to require that version of maven. > > Mark Waite > > On Mon, Jun 5, 2017 at 11:48 AM Techos <[email protected] > <javascript:>> wrote: > >> Hello, >> >> Thanks for your help, I have the same problem and it's ok now. >> >> but, I have a new problem *Cannot run program "mvn" (in directory >> "/Users/xxx/.jenkins/jobs/myproject/workspace* >> >> Do someone has any idea? >> >> Thanks. >> >> >> Le mercredi 24 mai 2017 05:00:20 UTC+2, Shuguo Yang a écrit : >>> >>> Hey, this is because Jenkins is running as the user jenkins, which is >>> not the current user on your mac. >>> >>> The default path is "/User/Share/Jenkins", install it under >>> "$HOME/.jenkins" to make it work. >>> So: >>> >>> >>> 1. Stop the current Jenkin on your mac. >>> >>> *sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist* >>> The, double check you can't access "localhost:8080" >>> >>> 2. Double click the "jenkins.war" file under "Application/jenkins". You >>> will found jenkins >>> was reinstalled to "$HOME/.jenkins" again. >>> >>> 3. Then re-config the job, git should works well >>> >>> I also encounter this issue, and above steps works well for me. >>> >>> On Monday, September 19, 2016 at 3:35:05 PM UTC+8, Ankit Arora wrote: >>>> >>>> Hi, >>>> >>>> I am also getting Error while Connecting Jenkins from Github. >>>> >>>> *Error : Failed to connect to repository : Error performing command: >>>> git.exe ls-remote -h* >>>> >>>> Please suggest the solution >>>> >>>> *//BR* >>>> >>>> >>>> *Ankit AroraTest Engineer * >>>> *✉ : **[email protected] || [email protected]* >>>> *☎ :* >>>> *+91-9654293205 ,+91-8285678798 * >>>> >>>> >>>> *P please consider the environment before printing any email Please >>>> say "No" to Plastics * >>>> >>>> >>>> >>>> >>>> >>>> On Sat, Sep 17, 2016 at 4:06 AM, Hung <[email protected]> wrote: >>>> >>>>> HI, I am new to setting up Jenkins. I am trying to setup a Jenkins >>>>> server >>>>> on a Mac Mini. I am having trouble with the Jenkins setup because I >>>>> made a >>>>> simple project that is to sync to a github repo and then run a script. >>>>> Unfortunately I can't get this simple project to run correctly. I keep >>>>> getting a timeout error. Here is a Console output. >>>>> >>>>> 15:16:57 Building in workspace >>>>> /Users/Shared/Jenkins/Home/workspace/MacWitchesServers >>>>> 15:16:57 > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 >>>>> 15:16:57 Fetching changes from the remote Git repository >>>>> 15:16:57 > /usr/bin/git config remote.origin.url >>>>> https://github.com/MyAccount/sample # timeout=10 >>>>> 15:16:57 Fetching upstream changes from >>>>> https://github.com/MyAccount/sample >>>>> 15:16:57 > /usr/bin/git --version # timeout=10 >>>>> 15:16:57 using GIT_ASKPASS to set credentials >>>>> 15:16:57 > /usr/bin/git fetch --tags --progress >>>>> https://github.com/MyAccount/sample >>>>> +refs/heads/*:refs/remotes/origin/* >>>>> 15:26:57 ERROR: Timeout after 10 minutes >>>>> 15:26:57 ERROR: Error fetching remote repo 'origin' >>>>> 15:26:57 hudson.plugins.git.GitException: Failed to fetch from >>>>> https://github.com/MyAccount/sample >>>>> 15:26:57 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797) >>>>> 15:26:57 at >>>>> hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051) >>>>> 15:26:57 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082) >>>>> 15:26:57 at hudson.scm.SCM.checkout(SCM.java:495) >>>>> 15:26:57 at >>>>> hudson.model.AbstractProject.checkout(AbstractProject.java:1269) >>>>> 15:26:57 at >>>>> >>>>> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) >>>>> 15:26:57 at >>>>> jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) >>>>> 15:26:57 at >>>>> >>>>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) >>>>> 15:26:57 at hudson.model.Run.execute(Run.java:1741) >>>>> 15:26:57 at >>>>> hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) >>>>> 15:26:57 at >>>>> hudson.model.ResourceController.execute(ResourceController.java:98) >>>>> 15:26:57 at hudson.model.Executor.run(Executor.java:410) >>>>> 15:26:57 Caused by: hudson.plugins.git.GitException: Command >>>>> "/usr/bin/git >>>>> fetch --tags --progress https://github.com/MyAccount/sample >>>>> +refs/heads/*:refs/remotes/origin/*" returned status code 143: >>>>> 15:26:57 stdout: >>>>> 15:26:57 stderr: >>>>> 15:26:57 at >>>>> >>>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752) >>>>> 15:26:57 at >>>>> >>>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495) >>>>> 15:26:57 at >>>>> >>>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64) >>>>> 15:26:57 at >>>>> >>>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315) >>>>> 15:26:57 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795) >>>>> 15:26:57 ... 11 more >>>>> 15:26:57 ERROR: null >>>>> >>>>> I su jenkins and did a manual git fetch and there was no issue. Do >>>>> anyone >>>>> know where I am going wrong. I did a normal installation of jenkins >>>>> and >>>>> selected plugin related to github. >>>>> >>>>> I am running Jenkins ver. 2.7.4 >>>>> >>>>> Thank you for any help, and I stuck at this point. >>>>> >>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://jenkins-ci.361315.n4.nabble.com/Mac-Jenkins-Can-t-Clone-fetch-from-GitHub-tp4842626.html >>>>> Sent from the Jenkins users mailing list archive at Nabble.com. >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Jenkins Users" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/jenkinsci-users/1474065395598-4842626.post%40n4.nabble.com >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/5c192c5c-c313-4dff-9368-6967a35be680%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/5c192c5c-c313-4dff-9368-6967a35be680%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/613d19e5-3d45-430f-a967-6b9362453c64%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
