Talk:Gerrit/Tutorial

Jump to: navigation, search

About this board

Archive


Guycn2 (talkcontribs)

I have installed Git from this link and set my username and email.

When I type ls ~/.ssh in the command line, I get the following message:

'ls' is not recognized as an internal or external command, operable program or batch file.

What have I done wrong?

KTC (talkcontribs)

Use the Git Bash shell, not Windows Command Prompt.

Guycn2 (talkcontribs)

Thank you @KTC, I succeeded, but now I encounter another problem: I can't install git-review. When I run Git Bash as administrator and run the following command: pip install git-review, I get an error message saying:

bash: pip: command not found

I ran this command after I had installed Python 3.6, but it still doesn't work...

KTC (talkcontribs)

Try "python -m pip ..." or "python3.6 -m pip ...".

Guycn2 (talkcontribs)

@KTC, I still get this error: "bash: python: command not found".

Is it possible to submit Gerrit patches without installing git-review?

KTC (talkcontribs)

If you can't even run python despite having it installed, then something's not set up right in your environment.

Guycn2 (talkcontribs)

My Python is installed in the following directory: C:/Users/Guy/AppData/Local/Programs/Python/Python36-32

Maybe it has something to do with it?

Reply to "Can't set up SSH keys"
Nikerabbit (talkcontribs)
Qgil-WMF (talkcontribs)

Whats with those "quotes from the community"?

2
Sophivorus (talkcontribs)

They're hardly useful, I feel they shouldn't be there. Anyone objects to their removal?

Qgil-WMF (talkcontribs)
172.56.39.38 (talkcontribs)

"Network unreachable" message when making ssh connection to Gerrit

6
Asrajmane193 (talkcontribs)

Hello, I have started with the initial set up. I have everything upto adding ssh key to use with git.

I am running the command to make ssh connection to Gerrit: ssh asrajmane193@gerrit.wikimedia.org -p 29418

It gives me the message "ssh: connect to host gerrit.wikimedia.org port 29418: Network is unreachable". I tried changing the port to some random number, 29000. Still no luck.

I am fairly new here. Please help.

Florianschmidtwelzow (talkcontribs)

Can you try to ping gerrit.wikimedia.org? What is the result? (i assume you're using a linux distro?)

Xqt (talkcontribs)

29418 is the right port. Maybe it is blocked by a local router or firewall?

Shrutika719 (talkcontribs)

Is this problem resolved? Because I am still facing this problem, I tried switching the ports but all in vain

Darthbhyrava (talkcontribs)

I am facing a similar problem. I think it's the proxy. But even after I installed corkscrew, shifted the installed binary to /bin and made appropriate changes to .ssh/config, I get the same error.

The ping to gerrit is fine, btw.

Any leads?

Edit: Resolved.

There was an error in the path to my corkscrew binary in .ssh/config. I corrected it, added my public keys to gerrit, and it worked. :)

This post was hidden by AKlapper (WMF) (history)
Reply to ""Network unreachable" message when making ssh connection to Gerrit"

add new language in welcome.py pywikibot

2
Ainur bai (talkcontribs)

good morning!

Maybe I'm turning to the wrong address, if so please direct me.

I started with the problem of adding a new language to script welcome.py in pywikibot. I created the necessary pages from the bot and added a text to the text. But I can not fix the changes

:

Git.exe push --progress "origin" master: master

Remote: Unauthorized

Fatal: Authentication failed for 'https://gerrit.wikimedia.org/r/pywikibot/core.git/ь

But I'm registered at https://gerrit.wikimedia.org/

Help me please!

Xqt (talkcontribs)
Reply to "add new language in welcome.py pywikibot"
Summary by Malyacko

Off-topic unrelated. Please do not test here.

107.0.58.212 (talkcontribs)

msmsm

IvRud (talkcontribs)
AKlapper (WMF) (talkcontribs)
Reply to "Rusyn language needs a Latin variant"
PiRSquared17 (talkcontribs)

I don't know much about BSD, but I'm guessing "cd cd" is wrong. πr2 (tc) 15:35, 4 December 2013 (UTC)

SPage (WMF) (talkcontribs)

Unable to connect to gerrit.wikimedia.org with ssh

2
Goldengide1 (talkcontribs)

I have been able to connect to gerrit.wikimedia.org in the last two week but early last week I had to reinstall my wampserver so I tried to connect again based on the instructions on Gerrit/Tutorial. This time it didnot connect it kept bringing up Permission denied (publickey). Please someone tell me what I am not doing right

OS: Windows 10

Goldengide1 (talkcontribs)

This is my debug message:

$ ssh -p 29418 myusername@gerrit.wikimedia.org -v

OpenSSH_7.3p1, OpenSSL 1.0.2j  26 Sep 2016

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: Connecting to gerrit.wikimedia.org [208.80.154.85] port 29418.

debug1: Connection established.

debug1: identity file /c/Users/Gideon/.ssh/id_rsa type 1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_rsa-cert type -1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_dsa type -1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_dsa-cert type -1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_ecdsa type -1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_ecdsa-cert type -1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_ed25519 type -1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_ed25519-cert type -1

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-OpenSSH_7.3

debug1: Remote protocol version 2.0, remote software version GerritCodeReview_2.13.4-13-gc0c5cc4742 (SSHD-CORE-1.2.0)

debug1: no match: GerritCodeReview_2.13.4-13-gc0c5cc4742 (SSHD-CORE-1.2.0)

debug1: Authenticating to gerrit.wikimedia.org:29418 as 'Goldengide1'

debug1: SSH2_MSG_KEXINIT sent

debug1: SSH2_MSG_KEXINIT received

debug1: kex: algorithm: ecdh-sha2-nistp256

debug1: kex: host key algorithm: ssh-rsa

debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256 compression: none

debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256 compression: none

debug1: sending SSH2_MSG_KEX_ECDH_INIT

debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

debug1: Server host key: ssh-rsa SHA256:j7HQoQ6fIuEgDHjONjI2CZ+2Iwxqgo2Ur5LbPqBgxOU

debug1: Host '[gerrit.wikimedia.org]:29418' is known and matches the RSA host key.

debug1: Found key in /c/Users/Gideon/.ssh/known_hosts:1

debug1: rekey after 4294967296 blocks

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: rekey after 4294967296 blocks

debug1: SSH2_MSG_NEWKEYS received

debug1: SSH2_MSG_SERVICE_ACCEPT received

debug1: Authentications that can continue: publickey

debug1: Next authentication method: publickey

debug1: Offering RSA public key: c:/wamp/www/mediawiki/.ssh/id_rsa

debug1: Authentications that can continue: publickey

debug1: Offering RSA public key: /c/Users/Gideon/.ssh/id_rsa

debug1: Authentications that can continue: publickey

debug1: Trying private key: /c/Users/Gideon/.ssh/id_dsa

debug1: Trying private key: /c/Users/Gideon/.ssh/id_ecdsa

debug1: Trying private key: /c/Users/Gideon/.ssh/id_ed25519

debug1: No more authentication methods to try.

Permission denied (publickey).

Reply to "Unable to connect to gerrit.wikimedia.org with ssh"