Git Error Status Code 128
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
Returned Status Code 128 Jenkins Git
workings and policies of this site About Us Learn more about Stack jenkins git failed to connect to repository returned status code 128 Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Returned Status Code 128 Stdout
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join +refs/heads/*:refs/remotes/origin/*" returned status code 128: them; it only takes a minute: Sign up Jenkins Git Plugin: Failed to connect to repository, returned status code 128 up vote 1 down vote favorite I'm attempting to clone a remote GitHub enterprise repository and am running into the following error after adding my remote repo's URL to the Git Plugin in my Jenkins configuration: hudson.plugins.git.GitException: Command "/usr/bin/git jenkins git failed to connect to repository 128 -c askpass=true fetch --tags --progress https://github.com/myUsername/myProject.git refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: fatal: unable to access https://github.myOrg.com/myUsername/myProject.git/': Failed to connect to github.com port 443: Operation timed out at... Configuration details & things I have tried: Jenkins URL is at default of http://localhost:8080/ (Getting the warning: "Please set a valid host name, instead of localhost") All dependencies listed have been installed for the Git Plugin I have added git credentials for authorization to my organization's remote repo I tried to add my personal (non-enterprise git account) credentials & repo to the plugin with the same result I have set my "Path to Git executable" to both 'git' and '/usr/bin/git' I can connect to Git both through the command line and in the browser Questions: Am I somehow supposed to provide authentication (ssh keys) just for Jenkins to use/clone my remote repo? Why does Jenkins throw a warning for leaving the default URL? Does this mean I need to 'put' Jenkins somewhere other than my local machine? I have been troubleshooting this for a few days now
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn
Returned Status Code 128 Permission Denied (publickey)
more about Stack Overflow the company Business Learn more about hiring developers or returned status code 128 stdout stderr fatal authentication failed posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community
Git Status Code
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Git / Bower Errors: Exit Code # 128 & http://stackoverflow.com/questions/32189765/jenkins-git-plugin-failed-to-connect-to-repository-returned-status-code-128 Failed connect up vote 78 down vote favorite 22 I am using Bower to install several libraries. For demonstration purposes here, I am installing bootstrap. Regardless of the package, I receive the following errors: C:\Scott>bower install bootstrap bower not-cached git://github.com/twbs/bootstrap.git#* bower resolve git://github.com/twbs/bootstrap.git#* bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github .com/twbs/bootstrap.git", exit code of #128 Additional error details: fatal: unable to access 'https://github.com/twbs/bootstrap.git/': Failed connect http://stackoverflow.com/questions/21544803/git-bower-errors-exit-code-128-failed-connect to github.com:443; No error I have tried using the following solution to remove the first error - which I found from this search: git config --global url."https://".insteadOf git:// However, this does not work nor do any of the other solutions found on that page. Searching for a solution for the 2nd error, it seems that setting a username/pwd for a proxy server will resolve the issue if you are on a corporate network/behind a firewall. However, I am not using a proxy server as I am on my home pc/network (windows 7 x64). Thanks! EDIT: Command window with errors: git bower share|improve this question edited Feb 7 '14 at 1:12 asked Feb 4 '14 at 5:42 azsl1326 6792818 add a comment| 20 Answers 20 active oldest votes up vote 118 down vote I know this is not "fixing" the problem, but you can use git config --global url."https://".insteadOf git:// to tell git to use HTTPS instead of GIT which worked out for me to install npm dependencies. share|improve this answer edited Dec 4 '15 at 16:12 isherwood 30.5k65586 answered Apr 15 '14 at 14:55 ablais 1,2951510 7 Is it just me, or does this not actually work for anyone else? T
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this http://serverfault.com/questions/677371/jenkins-fails-to-connect-to-git-repository site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server http://blog.dcycle.com/blog/51/connecting-jenkins-and-git/ Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can status code answer The best answers are voted up and rise to the top jenkins fails to connect to git repository up vote 8 down vote favorite 1 I can't configure the git repository url in a way, that Jenkins could access it. under "Project > Configure > Source Code Management" I set the Repository URL to "git@store:repositories/testproject.git" I get this error: Failed to connect to repository status code 128 : Command "/usr/bin/git -c core.askpass=true ls-remote -h git@store:repositories/testproject.git HEAD" returned status code 128: stdout: stderr: Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. the access with that URL works on a shell: jenkins@dilbert:~$ /usr/bin/git -c core.askpass=true ls-remote -h git@store:repositories/testproject.git git@store's password: 4fd35a4f528e2f2921a52cfd03918b7cbde3d253 refs/heads/master I am asked for a password and it works. I associated the same password to credentials in Jenkins to "git/" and I also tried "git@store/". None worked. Pleas note, that this is not about github, but about a local git repository. update: adding the pub key from the jenkins master to the build slave, helped to get the configuration working: ssh-copy-id jenkins@dilbert now the builds are failing: > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/bin/git config remote.origin.url git@store:repositories/testproject.git # timeout=10 Fetching upstream changes from git@store:repositories/testproject.git > /usr/bin/git --version # timeout=10 > /usr/bin/git -c core.askpass=true fetch --tags --progress git@store:repositories/testproject.git +refs/heads/*:refs/remotes/origin/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from git@store:repositories/testproject.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983) at hu
key pair. To do this you need to log into your command line as the jenkins user. Here is how. Use sudo if the system asks you for a password. Once logged in, you can create your SSH key pair, and then add your public key to Github (or whatever you are using). Establish the fingerprint When you first start using Jenkins, you will probably get the following error: Failed to connect to repository : Command "git ls-remote -h ssh://git@example.com/my/repo.git HEAD" returned status code 128: stdout: stderr: Host key verification failed. fatal: The remote end hung up unexpectedly In order to continue, log into jenkins once again in the command line (make sure you are the jenkins user by typing sudo su -s /bin/bash jenkins), and run the command: git ls-remote -h ssh://git@example.com/my/repo.git HEAD Now, you will be able to accept the fingerprint and continue. Please enable JavaScript to view the comments powered by Disqus. «Do not use incremental IDs in your code Eight tips to remember on your path to automated testing» © 2016 Dcycle.