Hello, here's from a Gerrit newbie: I get the following error message when running 'git review' on some changes, after following the instructions at http://www.mediawiki.org/wiki/Git/Workflow#How_to_submit_a_patch line by line.I have previously submitted a change (once) without any errors. What could be wrong? Where do I start looking?
: 2012-12-16 14:33:21.901478 Running: git push gerrit HEAD:refs/publish/master/addrealname: Permission denied (publickey).: fatal: The remote end hung up unexpectedly I have coped the contents of ~/.ssh/id_rsa.pub to the SSH Public Keys tab of my settings at gerrit.wikimedia.org Thanks for any hints you may be able to give me!/Leo _______________Leonard Wallentinleo_wallentin@hotmail.com@leo_wallentin+46 (0) 735 - 933 543
On 12/16/2012 08:44 AM, Leonard Wallentin wrote:
Hello, here's from a Gerrit newbie: I get the following error message when running 'git review' on some changes, after following the instructions at http://www.mediawiki.org/wiki/Git/Workflow#How_to_submit_a_patch line by line.I have previously submitted a change (once) without any errors. What could be wrong? Where do I start looking?
: 2012-12-16 14:33:21.901478 Running: git push gerrit HEAD:refs/publish/master/addrealname: Permission denied (publickey).: fatal: The remote end hung up unexpectedly I have coped the contents of ~/.ssh/id_rsa.pub to the SSH Public Keys tab of my settings at gerrit.wikimedia.org
When you run `git remote -v`, you should get this line in the output:
gerrit ssh://rotsee@gerrit.wikimedia.org:29418/mediawiki/core.git (push)
The port number (29418) does matter; the SSH server running on the standard port (22) is not the one built into Gerrit. See bug 35611.
If the port number (or your username, as indicated in Gerrit's settings) is wrong, you need to change it in your Git configuration:
git remote set-url gerrit ssh://rotsee@gerrit.wikimedia.org:29418/mediawiki/core.git
Thanks for any hints you may be able to give me!/Leo
On 12/16/2012 02:50 PM, Kevin Israel wrote:
The port number (29418) does matter; the SSH server running on the standard port (22) is not the one built into Gerrit. See bug 35611.
The Permission denied (publickey). error can also occur if your private key has not yet been loaded into ssh-agent. See
https://www.mediawiki.org/wiki/Git/Workflow#Troubleshooting
Hello, here's from a Gerrit newbie: I get the following error message when running 'git review' on some changes, after following the instructions at http://www.mediawiki.org/wiki/Git/Workflow#How_to_submit_a_patch line by line.I have previously submitted a change (once) without any errors. What could be wrong? Where do I start looking?
: 2012-12-16 14:33:21.901478 Running: git push gerrit HEAD:refs/publish/master/addrealname: Permission denied (publickey).: fatal: The remote end hung up unexpectedly I have coped the contents of ~/.ssh/id_rsa.pub to the SSH Public Keys tab of my settings at gerrit.wikimedia.org
When you run `git remote -v`, you should get this line in the output:
gerrit ssh://rotsee@gerrit.wikimedia.org:29418/mediawiki/core.git (push)
The port number (29418) does matter; the SSH server running on the standard port (22) is not the one built into Gerrit. See bug 35611.
If the port number (or your username, as indicated in Gerrit's settings) is wrong, you need to change it in your Git configuration:
git remote set-url gerrit ssh://rotsee@gerrit.wikimedia.org:29418/mediawiki/core.git
Thank you Kevin, that was not the problem, but I'll keep investigating! /Leo
Le 16/12/12 14:44, Leonard Wallentin wrote
Hello, here's from a Gerrit newbie: I get the following error message when
running 'git review' on some changes, after following the instructions at http://www.mediawiki.org/wiki/Git/Workflow#How_to_submit_a_patch line by line.I have previously submitted a change (once) without any errors. What could be wrong? Where do I start looking?
: 2012-12-16 14:33:21.901478 Running: git push gerrit HEAD:refs/publish/master/addrealname: Permission denied (publickey).: fatal: The remote end hung up unexpectedly I have coped the contents of ~/.ssh/id_rsa.pub to the SSH Public Keys tab of my settings at gerrit.wikimedia.org Thanks for any hints you may be able to give me!/Leo _______________Leonard Wallentinleo_wallentin@hotmail.com@leo_wallentin+46 (0) 735 - 933 543
Also make sure the git remote configured used your labs account name and make sure you have port 29418.
My labs account is 'hashar', hence my remote is configured this way:
$ git remote -v gerrit ssh://hashar@gerrit.wikimedia.org:29418/mediawiki/core.git (fetch) gerrit ssh://hashar@gerrit.wikimedia.org:29418/mediawiki/core.git (push)
To change the URL:
git remote set-url gerrit ssh://...
Also double check the ssh public key you have entered in Gerrit. To test it you can also:
ssh -p 29418 LABS_ACCOUNT@gerrit.wikimedia.org 'gerrit version'
Replacing LABS_ACCOUNT with your labs account name. That command should show you something like:
gerrit version 2.4.2-2-ge9a1970
Le 16/12/12 14:44, Leonard Wallentin wrote
Hello, here's from a Gerrit newbie: I get the following error message when
running 'git review' on some changes, after following the instructions at http://www.mediawiki.org/wiki/Git/Workflow#How_to_submit_a_patch line by line.I have previously submitted a change (once) without any errors. What could be wrong? Where do I start looking?
: 2012-12-16 14:33:21.901478 Running: git push gerrit HEAD:refs/publish/master/addrealname: Permission denied (publickey).: fatal: The remote end hung up unexpectedly I have coped the contents of ~/.ssh/id_rsa.pub to the SSH Public Keys tab of my settings at gerrit.wikimedia.org Thanks for any hints you may be able to give me!/Leo _______________Leonard Wallentinleo_wallentin@hotmail.com@leo_wallentin+46 (0) 735 - 933 543
Also make sure the git remote configured used your labs account name and make sure you have port 29418.
Also double check the ssh public key you have entered in Gerrit. To test it you can also:
ssh -p 29418 LABS_ACCOUNT@gerrit.wikimedia.org 'gerrit version'
Replacing LABS_ACCOUNT with your labs account name. That command should show you something like:
gerrit version 2.4.2-2-ge9a1970
Whatever was wrong, it worked after making a new clone of the extensions, and applying the changes again! /Leo
wikitech-l@lists.wikimedia.org