Community
Participate
Working Groups
We asked for a SVN repository in our provisioning request. This was created as /svnroot/modeling/org.eclipse.mdt.etrice. Since we didn't make an initial contribution yet our repository is still empty. In the meantime we were told that Git is supported quite well and so we decided to prefer to go with a Git repository. So please create a new (empty) git repository for us.
Ok, I've created /gitroot/etrice/org.eclipse.etrice.git . I've also removed your SVN repo. -M.
I tried to $ git clone ssh://hrentzreich@git.eclipse.org/etrice/org.eclipse.etrice.git Cloning into org.eclipse.etrice... Password: fatal: '/etrice/org.eclipse.etrice.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly Do I have to create a repository first? I read http://wiki.eclipse.org/Git and http://wiki.eclipse.org/Git_for_Committers but didn't find any real hint how I can create the repository. I also tried ssh hrentzreich@git.eclipse.org to do initrepo /gitroot/etrice/org.eclipse.etrice.git but I was disconnected. What do I have to do?
(In reply to comment #2) > I tried to > > $ git clone ssh://hrentzreich@git.eclipse.org/etrice/org.eclipse.etrice.git > Cloning into org.eclipse.etrice... > Password: > fatal: '/etrice/org.eclipse.etrice.git' does not appear to be a git repository > fatal: The remote end hung up unexpectedly ^^ you are missing "/gitroot" $ git clone ssh+git://<user>@git.eclipse.org/gitroot/etrice/org.eclipse.etrice.git Initialized empty Git repository in /home/droy/shiw/org.eclipse.etrice/.git/ warning: You appear to have cloned an empty repository. > Do I have to create a repository first? A bare repo is already there. From here, simply clone the empty repo, commit to your local clone, then push the changes. Do make sure you configure your local Git client: http://wiki.eclipse.org/Git#Committers_new_to_Git
I configured GIT according to http://wiki.eclipse.org/Git#Committers_new_to_Git cloning via http works, but via ssh it does not: Here my commandline in the GIT Bash Shell $ git clone ssh://tschuetz@git.eclipse.org/gitroot/etrice/org.eclipse.etrice.git Cloning into org.eclipse.etrice... ssh: connect to host git.eclipse.org port 22: Bad file number fatal: The remote end hung up unexpectedly $ - I deactivated the Firewall - I tried a different internet connection - I tried an older version of GIT but it still does not work - I found out that "Bad file number" could mean "permission denied" do you have a hint?
I am able to clone with my regular account: $ git clone --verbose ssh://(userid)@git.eclipse.org/gitroot/etrice/org.eclipse.etrice.git Cloning into org.eclipse.etrice... remote: Counting objects: 587, done. remote: Compressing objects: 100% (273/273), done. remote: Total 587 (delta 240), reused 587 (delta 240) Receiving objects: 100% (587/587), 649.33 KiB | 838 KiB/s, done. Resolving deltas: 100% (240/240), done Can you confirm that you do not have a Proxy server somewhere which is intercepting your communication? Can you SSH to git.eclipse.org from a normal SSH client?
I have cloned the initially empty repository and did the first commit. I have also been able to create a further clone. But now I can neither clone using ssh nor can I push my recent changes to the repository: $ git push ssh: connect to host git.eclipse.org port 22: Bad file number fatal: The remote end hung up unexpectedly Like Thomas I work from my home office with a direct connection to the internet.
I'm not seeing anything wrong with your repository. Can you enable verbose output for Git and SSH? From what I've seen so far, the message is related to a downstream (from you) firewall.
If we can't resolve the SSH issue, we can enable commit over https. We prefer commit over SSH, but if you have no choice, we can do https.
this is the transcript of a successful ssh session: $ ssh -v hrentzreich@git.eclipse.org OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007 debug1: Connecting to git.eclipse.org [206.191.52.44] port 22. debug1: Connection established. debug1: identity file /c/Users/hrentz/.ssh/identity type -1 debug1: identity file /c/Users/hrentz/.ssh/id_rsa type 1 debug1: identity file /c/Users/hrentz/.ssh/id_dsa type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_5.1 debug1: match: OpenSSH_5.1 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.6 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'git.eclipse.org' is known and matches the RSA host key. debug1: Found key in /c/Users/hrentz/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interacti ve debug1: Next authentication method: publickey debug1: Trying private key: /c/Users/hrentz/.ssh/identity debug1: Offering public key: /c/Users/hrentz/.ssh/id_rsa debug1: Authentications that can continue: publickey,password,keyboard-interacti ve debug1: Trying private key: /c/Users/hrentz/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive Password: debug1: Authentication succeeded (keyboard-interactive). debug1: channel 0: new [client-session] debug1: Entering interactive session. Last login: Fri Dec 17 13:46:48 2010 from hsi-kbw-095-208-225-014.hsi5.kabel-bad enwuerttemberg.de dev.eclipse.org download.eclipse.org *** Please be aware that these servers must be used for purposes approved by the Eclipse Management Organization (EMO) and/or an Eclipse Project Management Committee (PMC). Using these servers to establish outbound connections or to open ports on remote systems is PROHIBITED. Please contact webmaster@eclipse.org for info. Installing and running software applications or services on these servers must be approved by the webmaster. Please contact webmaster@eclipse.org. *** - To access the downloads area, type: cd downloads - To change your password, please log in to http://portal.eclipse.org/ - Everything you need is in: - /home/data/httpd/download.eclipse.org - /home/data/httpd/archive.eclipse.org - /cvsroot and /svnroot If your prompt is r$ and you are disconnected after a command, you have a restricted shell. Please contact webmaster for a real shell if you really need one. r$
this is the result of git clone with verbose tracing $ GIT_TRACE=2 $ git clone ssh://tschuetz@git.eclipse.org/gitroot/etrice/org.eclipse.etrice.gi t --verbose trace: built-in: git 'clone' 'ssh://tschuetz@git.eclipse.org/gitroot/etrice/org. eclipse.etrice.git' '--verbose' Cloning into org.eclipse.etrice... trace: run_command: 'ssh' 'tschuetz@git.eclipse.org' 'git-upload-pack '\''/gitro ot/etrice/org.eclipse.etrice.git'\''' ssh: connect to host git.eclipse.org port 22: Bad file number fatal: The remote end hung up unexpectedly
and some minutes later: $ ssh -vvv hrentzreich@git.eclipse.org OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007 debug2: ssh_connect: needpriv 0 debug1: Connecting to git.eclipse.org [206.191.52.44] port 22. debug1: connect to address 206.191.52.44 port 22: Attempt to connect timed out w ithout establishing a connection ssh: connect to host git.eclipse.org port 22: Bad file number
Denis, ould you please enable git using https for testing? Thanks, Henrik
I've added https access. -M.
Denis, that works now, for both of us. Thanks, Henrik
How can we provide a description for our repository on http://git.eclipse.org/c/? Can we edit the description file? We would like to have 'eTrice git repository'
Yes, your PL should be able to login to dev.eclipse.org and update the 'description' file in your repo. It'll take some time for those changes to propagate. I've updated your description for you. -M.