Git Push error!!!!!

1,074 views
Skip to first unread message

Justin Raja

unread,
Dec 6, 2012, 5:34:10 AM12/6/12
to Sitaram Chamarty, gitolite, Andreas Stenius
Hi Sitaram,
 
Can you please help me out to resolve this issue.
 
I am getting issue while pushing my repository from local to remote.
 
Please find the below error.
 
[gitolite@instance-1 conf]$ git push -v origin master
Pushing to gito...@192.168.0.88:/var/lib/gitolite3/repositories/gitolite-admin.git
gito...@192.168.0.88's password:
Counting objects: 7, done.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 357 bytes, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: ENV GL_RC not set
remote: BEGIN failed--compilation aborted at hooks/update line 20.
remote: error: hook declined to update refs/heads/master
To
gito...@192.168.0.88:/var/lib/gitolite3/repositories/gitolite-admin.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'gito...@192.168.0.88:/var/lib/gitolite3/repositories/gitolite-admin.git'

--
Regards,
Justin
 
---------------------
http://www.reedepot.com/zone/bangalore---------------------


Andreas Stenius

unread,
Dec 6, 2012, 6:14:54 AM12/6/12
to Justin Raja, Sitaram Chamarty, gitolite
You should not use the path in the push, only the repo name.

Search the docs, or google, as this comes up once in a while...

2012/12/6 Justin Raja <justin.j...@gmail.com>:
> --
>
>

Justin Raja

unread,
Dec 6, 2012, 8:58:53 AM12/6/12
to Andreas Stenius, Sitaram Chamarty, gitolite
Hi Andreas,
 
I am just running the below command only. Please correct me if i am wrong.
 
[gitolite@instance-1 conf]$ git push -v origin master
 
Regards,
Justin

Andreas Stenius

unread,
Dec 6, 2012, 10:04:01 AM12/6/12
to Justin Raja, Sitaram Chamarty, gitolite
Right. Could've seen that from your first mail.

Looks like your origin remote is badly configured. How did you add it?
(clone it).

what does `git remote -v` say?

Justin Raja

unread,
Dec 7, 2012, 3:23:21 AM12/7/12
to Andreas Stenius, Sitaram Chamarty, gitolite
Hi Andreas,
 
Please find the outputs:
 
1.  [gitolite@instance-1 ~]$ git clone gito...@192.168.0.88:/var/lib/gitolite3/repositories/gitolite-admin.git
Initialized empty Git repository in /home/gitolite/gitolite-admin/.git/
gito...@192.168.0.88's password:
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (6/6), done.
My question here?
 
As per the sitaram docs...if it's asking password then ssh config issue. Please help me out first.
 

3. -sh-4.1$ ./bin/gl-setup /var/lib/gitolite3/gitolite.pub
The default settings in the rc file (/var/lib/gitolite3/.gitolite.rc) are fine for most
people but if you wish to make any changes, you can do so now.
hit enter...
creating gitolite-admin...
Initialized empty Git repository in /var/lib/gitolite3/repositories/gitolite-admin.git/
creating testing...
Initialized empty Git repository in /var/lib/gitolite3/repositories/testing.git/
                ***** WARNING *****
        the following users (pubkey files in parens) do not appear in any access rules:
gitolite(gitolite.pub)
                ***** WARNING *****
        the following users have no pubkeys:
gitolite3
[master (root-commit) 28248f6] gl-setup /var/lib/gitolite3/gitolite.pub
 2 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100755 conf/gitolite.conf
 create mode 100755 keydir/gitolite.pub
fprint failed
Please Help me with urgent basis.
 
Regards,
Justin

Andreas Stenius

unread,
Dec 7, 2012, 3:42:06 AM12/7/12
to Justin Raja, Sitaram Chamarty, gitolite
My initial comment is valid for the clone command too... it ought to
be on the form: git clone gito...@192.168.0.88:gitolite-admin.git

Indeed, it should ask for the password to your private key, unless
that is stored by a key agent, or not password protected, not for
gitolite3's password.

Double check your installation steps.

//Andreas

2012/12/7 Justin Raja <justin.j...@gmail.com>:

Justin Raja

unread,
Dec 7, 2012, 4:53:07 AM12/7/12
to Andreas Stenius, Sitaram Chamarty, gitolite
Hi Andreas,
 
Please find my error here:
 
[gitolite@instance-1 ~]$ git clone gito...@192.168.0.88:gitolite-admin.git

Initialized empty Git repository in /home/gitolite/gitolite-admin/.git/
gito...@192.168.0.88's password:
fatal: 'gitolite-admin.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Note: Actually i didn't set any passphrase while creating ssh-keygen. Shall I recreate once again with passphrase
 
could you please help to resolve this issue.
 
Regards,
Justin
On Fri, Dec 7, 2012 at 2:12 PM, Andreas Stenius <g...@astekk.se> wrote:
git clone gito...@192.168.0.88:gitolite-admin.git

Andreas Stenius

unread,
Dec 7, 2012, 5:14:05 AM12/7/12
to Justin Raja, Sitaram Chamarty, gitolite
Not unless you pay me.

I have directed you to read the documentation. You say nothing about
what you have tried (installation wise). What you have read. What your
current understanding is.
Only the end result of whatever went wrong. That is *nothing* to work with.

Learn some manners (e.g.
http://opensourcestrategies.blogspot.se/2005/09/how-to-get-support-from-open-source.html
)
Then come back here.

With kind regards,
Andreas

2012/12/7 Justin Raja <justin.j...@gmail.com>:

Justin Raja

unread,
Dec 7, 2012, 7:56:33 AM12/7/12
to Andreas Stenius, Sitaram Chamarty, gitolite
Hi Andreas,
 
Really sorry again and again that I am giving you trouble.
 
Could you please confirm, shall I change any entries on the below file as well?
 
/etc/ssh/sshd_config
 
Regards,
Justin

David Pratt

unread,
Dec 7, 2012, 9:16:56 AM12/7/12
to Justin Raja, Andreas Stenius, Sitaram Chamarty, gitolite
Justin,

Without sharing the contents of that file, nobody on this list can help you. Additionally, from reading the previous entries in this thread, most of your questions are very very general with little to no information that can help anyone here point you in the right direction. To figure out where you went wrong, we'd need to know exactly how your system is configured, how you set up gitolite, and the contents of the relevant config files.

My best advice to you is to read the installation instructions in detail - I've installed gitolite several times myself (and made a *lot* of nonstandard customizations) just by following those instructions.

Additionally, a mild working knowledge of how SSH works and authenticates users will go a long way - I suggest you read up on that as well.


--
 
 

Justin Raja

unread,
Dec 10, 2012, 7:27:02 AM12/10/12
to David Pratt, Andreas Stenius, Sitaram Chamarty, gitolite
Hi David,
 
Thanks for your feeback getting back me.
 
This is my first time installing to git/gitolite. So that i am expecting your help little high.
 
PFA -  1. System with installed application Info
           2. SSh_config file
           3. sshd_conf file
 
Please find my OS details
 
 [root@ggns2git ~]# vi /etc/redhat-release
CentOS release 6.2 (Final)
 
This is the URL just i am trying to install Gitolite : http://sitaramc.github.com/gitolite/install.html
Note: David: I am basically from India. Shall we patch up the call with team viewer to setup this gitolite in my system with you convenient timing at any cause.
 
My phone Number : 9953198129
 
If you dont mind share ur contact info if you give to call at any cause.
 
I am waiting for your favorable reply soon.
 
Regards,
Justin
System Info.bmp
ssh_config
sshd_config

David Pratt

unread,
Dec 10, 2012, 8:44:56 AM12/10/12
to Justin Raja, Andreas Stenius, Sitaram Chamarty, gitolite
Sure - I'd be delighted to help. I charge $250/hour with a paid in advance minimum of 20 hours by certified funds.

Justin - I think you'll find that in the open source world, assuming that a volunteer mailing list will go out of their way to do somebody else's job is a little presumptuous. My advice to you is to educate yourself, and if you have a very specific problem with gitolite that cannot be answered by a detailed search of the mailing list and at least 30 minutes of google, then document the *very specific case* and post it here.

This list is not a support line that exists to solve your problems on your terms and on your timeframe.

Sent from my iPad

On Dec 10, 2012, at 6:27 AM, Justin Raja <justin.j...@gmail.com> wrote:

Hi David,
 
Thanks for your feeback getting back me.
 
This is my first time installing to git/gitolite. So that i am expecting your help little high.
 
PFA -  1. System with installed application Info
           2. SSh_config file
           3. sshd_conf file
 
Please find my OS details
 
 [root@ggns2git ~]# vi /etc/redhat-release
CentOS release 6.2 (Final)
 
This is the URL just i am trying to install Gitolite : http://sitaramc.github.com/gitolite/install.html
Note: David: I am basically from India. Shall we patch up the call with team viewer to setuthis gitolite in my system with you convenient timing at any cause.
<System Info.bmp>
<ssh_config>
<sshd_config>
Reply all
Reply to author
Forward
Message has been deleted
0 new messages