Problems with Git review

Source: Internet
Author: User

May appear when submitting code review

Could not connect to Gerrit.
Enter your Gerrit Username:xxxx
Trying again with Ssh://[email Protected]:29418/openstack/oslo.messaging.git
<traceback Object at 0xb6fe493c>
We don ' t know where your Gerrit is. Please manually create a remote
Named "Gerrit" and try again.
Traceback (most recent):
File "/usr/bin/git-review", line 1196, in <module>
Main ()
File "/usr/bin/git-review", line 1110, in main
config[' hostname ', config[' Port '], config[' project ')
File "/usr/bin/git-review", line 489, in Check_remote
Add_remote (hostname, port, project, remote)
File "/usr/bin/git-review", line 344, in Add_remote
Raise Exception ("Could not connect to Gerrit at%s"% Remote_url)
Exception:could not connect to Gerrit at Ssh://[email Protected]:29418/openstack/oslo.messaging.git

Could not review.openstack.org

To manually add a node Gerrit node

Git remote add Gerrit ssh://<username> @review. Openstack.org:29418/openstack/nova.git

[Email protected]:~/oslo.messaging$ git review
Problem running ' git Remote update Gerrit '
Getting Gerrit
Ssh:could not resolve hostname review.openstack.org:Name or service not known
Fatal:could not read from remote repository.

Sure you have the correct access rights
and the repository exists.
Error: Cannot get Gerrit
Problems encountered installing COMMIT-MSG hook
The following command failed with exit code 1
"Scp:hooks/commit-msg. Git/hooks/commit-msg"
-----------------------
. git/hooks/commit-msg:no such file or directory

Ssh-vv-p 29418 [email protected]

Print debugging information

....

Debug1:next Authentication Method:publickey
debug1:offering RSA Public Key:/home/someone/.ssh/id_rsa
Debug2:we sent a publickey packet, wait for reply
Debug1:authentications that can Continue:publickey
Debug1:trying private key:/HOME/SOMEONE/.SSH/ID_DSA
Debug1:trying private key:/HOME/SOMEONE/.SSH/ID_ECDSA
Debug1:trying private key:/home/someone/.ssh/id_ed25519
Debug2:we did not send a packet, disable method
Debug1:no more authentication methods to try.
Permission denied (PublicKey).

Delete the. SSH directory and regenerate the private key

Problems with Git review

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.