My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1378: Need better Windows installation docs
5 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


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

Affected Version:

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


Please provide any additional information below.

May 7, 2012
Project Member #1 bklarson@gmail.com
We would need more details to debug this.  It is likely a permission issue with whatever server you are trying to communicate.
Status: Invalid
May 7, 2012
#2 pra...@gmail.com
Hi...Thanks for your reply ....actually when I follow the tutorial the application supposed to be running on my local machine (canonicalWebUrl = http://localhost:8080/)?

Thats the address specified in the config file. But when i try to access the url, there is no page.
May 7, 2012
Project Member #3 bklarson@gmail.com
What is the exact command you are running to get the hook?  Please copy-paste it.
Status: AwaitingInformation
May 7, 2012
#4 pra...@gmail.com
 git review -s
May 7, 2012
#5 pra...@gmail.com
Additionally there is nothing running on the (canonicalWebUrl = http://localhost:8080/
May 7, 2012
Project Member #6 bklarson@gmail.com
I'm not sure what you mean - is Gerrit up and running locally?  This command won't run otherwise.
May 7, 2012
#7 pra...@gmail.com
Thanks for your reply. Exactly ..I am actually struggling to get it running locally.

This url : http://gerrit-documentation.googlecode.com/svn/Documentation/2.3/install-quick.html#initialization
implies that once i run "java -jar gerrit.war init --batch -d ~/gerrit_testsite" then gerrit should be running locally (if i am not interpreting it wrongly). I ran the command and gerrit is not up locally. How can I get it up?
May 7, 2012
Project Member #8 bklarson@gmail.com
Yep that should be all needed to get it running.  Look in gerrit_testsite/logs/ to see if there are any errors booting gerrit.  You can also start/stop gerrit with gerrit_testsite/bin/gerrit [start|stop]
May 7, 2012
#9 pra...@gmail.com
I tried running gerrit with the following commands.

$ cd bin

User@USER-PC ~/gerrit_testsite/bin
$ gerrit start
sh.exe": gerrit: command not found

User@USER-PC ~/gerrit_testsite/bin
$ ls
gerrit.sh  gerrit.war

I think my problem lies in the fact that I cant start gerrit. Additionally there is no files in the gerrit_testsite/logs/ folder. Thus it doesn't run locally. 

May 7, 2012
Project Member #10 bklarson@gmail.com
from bin, run './gerrit.sh start'
May 7, 2012
#11 pra...@gmail.com
$ gerrit.sh start
** ERROR: GERRIT_SITE not set
May 7, 2012
#13 pra...@gmail.com
Thanks for your quick reply. I set the environment variable for GERRIT_SITE and it seemed to work. Now I encounter the following which again stops me from proceeding 

$ java -jar gerrit.war init --batch -d ~/gerrit_testsite
Exception in thread "main" java.io.IOException: Cannot commit c:\Users\User\gerr
it_testsite\bin\gerrit.war
        at com.google.gerrit.pgm.init.InitContainer.run(InitContainer.java:115)
        at com.google.gerrit.pgm.init.SitePathInitializer.run(SitePathInitialize
r.java:75)
        at com.google.gerrit.pgm.Init.run(Init.java:75)
        at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:
76)
        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(GerritLaunche
r.java:167)
        at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.jav
a:91)
        at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:49
)
        at Main.main(Main.java:25)


May 7, 2012
#14 pra...@gmail.com
Additionally the code review also doesn't start

$ gerrit.sh start
./gerrit.sh: line 277: ulimit: virtual memory: cannot modify limit: Invalid argu
ment
Starting Gerrit Code Review: FAILED
May 7, 2012
Project Member #15 bklarson@gmail.com
Something is really odd with your setup.  I'd try wiping everything and trying the gerrit install again.  I'm not sure why the ulimit command is failing.  Is this cygwin or some other *nix emulation?
May 7, 2012
#16 pra...@gmail.com
its a GIT bash
May 7, 2012
#17 pra...@gmail.com
Its a 64 bit machine and I am running windows and using the git bash. I tried installing again 

User@USER-PC ~/Desktop/gerrit
$ java -jar gerrit-2.3.war init --batch -d ~/gerrit_testsite
Generating SSH host key ... rsa(simple)... done
Initialized C:\Users\User\gerrit_testsite
Automatic startup not supported on Win32.

User@USER-PC ~/Desktop/gerrit
$ cd ../../gerrit_testsite/

User@USER-PC ~/gerrit_testsite
$ cd bin

User@USER-PC ~/gerrit_testsite/bin
$ gerrit.sh start
./gerrit.sh: line 277: ulimit: virtual memory: cannot modify limit: Invalid argu
ment
Starting Gerrit Code Review: FAILED
May 7, 2012
#18 pra...@gmail.com
hmm now at least its logging something 
[2012-05-07 20:28:07,152] INFO  com.google.gerrit.server.git.PushReplication : Empty c:\Users\User\gerrit_testsite\etc\replication.config; not replicating
[2012-05-07 20:28:07,449] WARN  com.google.gerrit.sshd.SshDaemon : Disabling cipher aes192-cbc: Illegal key size; try installing unlimited cryptography extension
[2012-05-07 20:28:07,449] WARN  com.google.gerrit.sshd.SshDaemon : Disabling cipher aes256-cbc: Illegal key size; try installing unlimited cryptography extension
[2012-05-07 20:28:07,465] WARN  com.google.gerrit.httpd.GitWebConfig : gitweb not installed (no \usr\lib\cgi-bin\gitweb.cgi found)
[2012-05-07 20:28:08,053] INFO  com.google.gerrit.ehcache.EhcachePoolImpl : Enabling disk cache C:\Users\User\gerrit_testsite\cache
[2012-05-07 20:28:08,184] INFO  com.google.gerrit.sshd.SshDaemon : Started Gerrit SSHD on *:29418
[2012-05-07 20:28:08,186] INFO  org.eclipse.jetty.util.log : jetty-7.2.1.v20101111
[2012-05-07 20:28:08,529] INFO  org.eclipse.jetty.util.log : Started SelectChannelConnector@0.0.0.0:8080
[2012-05-07 20:28:08,530] INFO  com.google.gerrit.pgm.Daemon : Gerrit Code Review 2.3 ready
May 7, 2012
Project Member #19 bklarson@gmail.com
Ah, that script likely won't work in git bash/windows.  You'll need to set up tomcat or some other server to host Gerrit.
May 7, 2012
#20 pra...@gmail.com
oh boy...is there any documentation on this? :(.....Thanks for your help so far! :)
May 7, 2012
Project Member #21 bklarson@gmail.com
None that I am aware of, but there are lots of docs on setting up Tomcat if you search around :(
May 7, 2012
#22 pra...@gmail.com
thanks!....I have tomcat ..but setting up gerrit with it is the problem.
May 7, 2012
#23 pra...@gmail.com
i guess if am using windows whats the recommended way to use gerrit?
May 7, 2012
#24 pra...@gmail.com
would cygwin work?
May 7, 2012
Project Member #25 bklarson@gmail.com
I don't think cygwin would work.  You have to use a container like Tomcat.  I'm not sure if there is a recommended way, I just learned the other day that running it on Windows was even possible.

If you do figure it out, contributions to the installation docs are very appreciated.
Summary: Need better Windows installation docs
Status: New
Nov 26, 2012
#26 sanjeevp...@gmail.com
Is this issue solved?
ulimit: virtual memory: cannot modify limit: Invalid argument

I am also facing the same problem.
Jul 9, 2013
#27 tata2001...@gmail.com
you can just comment the line "ulimit: virtual memory: cannot modify limit: Invalid argument" in the gerrit/bin/gerrit.sh file.
Sign in to add a comment

Powered by Google Project Hosting