Failing to push
Hi, Just trying to create my first AppHarbor app. But when I try and push, nothing seems to happen:
$ git push -v appharbor master Pushing to https://[email blocked]/SutekiShop.git
Password:
<-- cursor just blinks here??
Typing in my password at this point has no effect.
I'm probably doing some stupid git noob thing, any help would be
appreciated.
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
1 Posted by Mike Hadlow on 05 Mar, 2011 09:10 PM
More info: I'm using Cygwin with git version 1.7.2.3 on 2008r2
Support Staff 2 Posted by friism on 05 Mar, 2011 09:18 PM
You're running an older version of Git, please upgrade.
friism closed this discussion on 05 Mar, 2011 09:18 PM.
Mike Hadlow re-opened this discussion on 05 Mar, 2011 09:25 PM
3 Posted by Mike Hadlow on 05 Mar, 2011 09:25 PM
Now upgraded to git 1.7.4 still getting the same problem.
4 Posted by Mike Hadlow on 05 Mar, 2011 09:30 PM
My git config:
$ git config -l user.name=Mike Hadlow
user.email=[email blocked]
http.postbuffer=52428800
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
remote.appharbor.url=https://[email blocked]/SutekiShop.git
remote.appharbor.fetch=+refs/heads/:refs/remotes/appharbor/
Support Staff 5 Posted by tt on 05 Mar, 2011 09:34 PM
You don't receive any more output after entering the password? I'm afraid it may be an issue with Cygwin, so please try to run msysGit instead.
tt closed this discussion on 05 Mar, 2011 09:34 PM.
Mike Hadlow re-opened this discussion on 05 Mar, 2011 09:36 PM
6 Posted by Mike Hadlow on 05 Mar, 2011 09:36 PM
Hmm, I have no trouble pushing to git hub. Have you guys tested with Cygwin?
Support Staff 7 Posted by tt on 06 Mar, 2011 01:59 AM
Have you tried if you can push over HTTP with Cygwin to GitHub? They offer both HTTP and SSH, and we only support HTTP right now.
tt closed this discussion on 06 Mar, 2011 01:59 AM.
rune re-opened this discussion on 06 Mar, 2011 05:08 AM
Support Staff 8 Posted by rune on 06 Mar, 2011 05:08 AM
Just to provide a little more info on this one. It seems like cygwin can't handle the password prompt properly. This is however solved in msysgit (and is also the recommended way of using git on windows).
You can circumvent the issue by including the password in your repository url like so: ´https://usersname:[email blocked]/SutekiShop.git´ . If you're ok with having your password readable in your .git/config you can take this approach.
rune closed this discussion on 06 Mar, 2011 05:08 AM.
Mike Hadlow re-opened this discussion on 06 Mar, 2011 08:01 AM
9 Posted by Mike Hadlow on 06 Mar, 2011 08:01 AM
Thanks Rune, including the password in the URI worked. Now I'm getting a different error:
$ git push appharbor master error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://xxx:[email blocked]/SutekiShop.git/info/refs
Support Staff 10 Posted by rune on 06 Mar, 2011 08:32 AM
There are also issues with certificates on cygwin - I think this should solve the problem: http://stackoverflow.com/questions/3777075/https-github-access/4454...
11 Posted by Mike Hadlow on 06 Mar, 2011 08:44 AM
Yes, that worked, now for the next issue ;)
$ env GIT_SSL_NO_VERIFY=true git push appharbor master Counting objects: 1986, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1874/1874), done.
Writing objects: 100% (1986/1986), 16.25 MiB | 3.47 MiB/s, done.
Total 1986 (delta 646), reused 0 (delta 0)
error: RPC failed; result=22, HTTP code = 413
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Support Staff 12 Posted by rune on 06 Mar, 2011 08:53 AM
Yeah seems like you're facing a lot of issues on this one :-) I think you can set the ssl no verify option globally by the way, so you don't have to write it each time.
I think the new issue is related to the git post buffer setting. Try setting it to
git config --system http.postBuffer 52428800It's also described here: http://support.appharbor.com/kb/getting-started/deploying-your-firs...
rune closed this discussion on 06 Mar, 2011 08:53 AM.
Mike Hadlow re-opened this discussion on 06 Mar, 2011 09:05 AM
13 Posted by Mike Hadlow on 06 Mar, 2011 09:05 AM
Thanks for sticking with it :)
My git config looks like this (I've set the http.postBuffer), but I still get the same RPC failed error.
$ git config -l user.name=Mike Hadlow
user.email=[email blocked]
http.postbuffer=52428800
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
remote.appharbor.url=http://mikehadlow:[email blocked]/SutekiShop.git
remote.appharbor.fetch=+refs/heads/:refs/remotes/appharbor/
Support Staff 14 Posted by rune on 07 Mar, 2011 01:14 AM
Sure :-) I'm not getting the same error in cygwin (with a small repo). Could you try and see if it works if you push from a new repository?
I think this can happen if you have a very large repository (in which case you might need to set the postBuffer even higher).
Support Staff 15 Posted by tt on 20 Mar, 2011 07:18 AM
We have made some changes to our configuration, so in case you didn't get it working, please try again. If the problem persists, my last advice would be to reinstall msysGit.
tt closed this discussion on 20 Mar, 2011 07:18 AM.