My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3554: Issue in Windows7 with Gerrit 2.11.3. Not creating SSH host key.
2 people starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Sep 8


Sign in to add a comment
 
Reported by sunil.kh...@gmail.com, Sep 7, 2015
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version: Gerrit 2.11.3

What steps will reproduce the problem?
Not Generating SSH hot key.

: Cannot run program "ssh-keygen": CreateProcess error=2, The system cannot fi
 the file specified
        at java.lang.ProcessBuilder.start(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at com.google.gerrit.pgm.init.InitSshd.generateSshHostKeys(InitSshd.ja
:106)
        at com.google.gerrit.pgm.init.InitSshd.run(InitSshd.java:83)
        at com.google.gerrit.pgm.init.SitePathInitializer.run(SitePathInitiali
r.java:93)
        at com.google.gerrit.pgm.init.BaseInit.run(BaseInit.java:116)
        at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.jav
64)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLaunc
r.java:166)
        at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.j
a:93)
        at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:
)
        at Main.main(Main.java:25)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find
e file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 16 more

1 .Command to start the process C:\Users\dangayac\Applicaitons>java -jar gerrit.war init -d C:\Users\dangayac\Ap
plicaitons
2. Then I use H2 database to setup all other things.
3. I use lucene type.

What is the expected output? What do you see instead? It should create the ssh hot key for windows 7 as well.


Please provide any additional information below. I am doing all the operation on command prompt and I ran my command prompt as adminstrator.

Sep 8, 2015
Project Member #1 david.pu...@sonymobile.com
"Cannot run program "ssh-keygen": CreateProcess error=2, The system cannot find the file specified"

Do you actually have ssh-keygen installed? Is it on the system path?


Status: AwaitingInformation
Sep 8, 2015
#2 sunil.kh...@gmail.com
Thanks a-lot david for your response.
Could you please help me to add in the system path. i have created it and it is at this location C:\Users\username\.ssh
Sep 8, 2015
Project Member #3 david.pu...@sonymobile.com
The ssh-keygen executable needs to be on the system path, so the initialisation can generate the keys for the server into the site's etc/ssh_host_key file.

So just add the location of ssh-keygen to PATH and then run the init again.

Sep 8, 2015
#4 sunil.kh...@gmail.com
Thanks David. Its working fine now.
Sep 8, 2015
Project Member #5 david.pu...@sonymobile.com
(No comment was entered for this change.)
Status: Invalid
Sign in to add a comment

Powered by Google Project Hosting