Gerrit on Amazon EC2

1,076 views
Skip to first unread message

Wei Dai

unread,
Jul 17, 2013, 10:54:53 AM7/17/13
to repo-d...@googlegroups.com
Hello,
     I'm trying to set up a code review system Gerrit on an AWS EC2 instance for my research project, but can't get the website to work. I followed the installation guide and got the web server running, but couldn't connect to it through my browser. Does anyone have experience in this? Also, if you know of other good code review alternatives that's free, I'd like to give it a thought too. Thank you!  

More technical details: I'm using amazon's Elastic IP and has allow inbound traffic through port 8080 (the apache2 server works). I've also configured the canonicalWebURL in gerrit to be <elastic ip>:8080/

Thanks,
Dai Wei 

Dave Borowitz

unread,
Jul 17, 2013, 2:30:04 PM7/17/13
to Wei Dai, repo-discuss
Gerrit should output some logs when it starts up saying what port it is listening on, so you can check your configuration. Also, can you access Gerrit from localhost (i.e. logged into the EC2 instance)?


--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Dai Wei

unread,
Jul 17, 2013, 10:53:43 PM7/17/13
to Dave Borowitz, repo-discuss
And the server is indeed started:

$ sockstat
USER     PROCESS              PID      PROTO  SOURCE ADDRESS            FOREIGN ADDRESS           STATE
daiwei89 java                 13095    tcp4   *:29418                   *:*                       LISTEN
daiwei89 java                 13095    tcp4   *:8080                    *:*                       LISTEN

On Wed, Jul 17, 2013 at 10:49 PM, Dai Wei <daiw...@gmail.com> wrote:
Hi Dave,
    Yeah I checked the logs/error_log, and all seems well:

[2013-07-18 01:46:34,694] INFO  com.google.gerrit.server.cache.h2.H2CacheFactory : Enabling disk cache /home/daiwei89/gerrit_review/cache
[2013-07-18 01:46:37,034] WARN  com.google.gerrit.httpd.GitWebConfig : gitweb not installed (no /usr/lib/cgi-bin/gitweb.cgi found)
[2013-07-18 01:46:38,063] INFO  com.google.gerrit.server.git.LocalDiskRepositoryManager : Defaulting core.streamFileThreshold to 228m
[2013-07-18 01:46:38,083] INFO  com.google.gerrit.server.plugins.PluginLoader : Loading plugins from /home/daiwei89/gerrit_review/plugins
[2013-07-18 01:46:38,213] INFO  com.google.gerrit.sshd.SshDaemon : Started Gerrit SSHD on *:29418
[2013-07-18 01:46:38,215] INFO  org.eclipse.jetty.server.Server : jetty-8.1.7.v20120910
[2013-07-18 01:46:38,239] INFO  org.eclipse.jetty.server.handler.ContextHandler : started o.e.j.s.ServletContextHandler{/,file:/home/daiwei89/gerrit_review/tmp/gerrit_5102500950734049320_app/gerrit_war/}
[2013-07-18 01:46:39,145] INFO  org.eclipse.jetty.server.AbstractConnector : Started SelectChann...@0.0.0.0:8080
[2013-07-18 01:46:39,148] INFO  com.google.gerrit.pgm.Daemon : Gerrit Code Review 2.6.1 ready

This is log from an instance on Google Compute Engine (GCE). The log on Amazon EC2 is essentially the same. On both Amazon EC2 and GCE there's an internal IP and external IP. I set canonicalWebUrl to the external IP, and I can ping to that (external) IP from within the instance, but not from the internet. I've asked other Googlers in my office and no one seem to have a clue (one of them apparently had this problem before and couldn't resolve it). So I'd really appreciate any help here.

If anyone feel up to this, I can prepare an instance on EC2 to showcase the problem and let you log in to play with. 

Thank you in advance!
Dai Wei
--
Dai Wei
Ph.D. Candidate
Machine Learning, School of Computer Science
Carnegie Mellon University



--
Dai Wei
Ph.D. Candidate
Machine Learning, School of Computer Science
Carnegie Mellon University

Dai Wei

unread,
Jul 17, 2013, 10:49:18 PM7/17/13
to Dave Borowitz, repo-discuss
Hi Dave,
    Yeah I checked the logs/error_log, and all seems well:

[2013-07-18 01:46:34,694] INFO  com.google.gerrit.server.cache.h2.H2CacheFactory : Enabling disk cache /home/daiwei89/gerrit_review/cache
[2013-07-18 01:46:37,034] WARN  com.google.gerrit.httpd.GitWebConfig : gitweb not installed (no /usr/lib/cgi-bin/gitweb.cgi found)
[2013-07-18 01:46:38,063] INFO  com.google.gerrit.server.git.LocalDiskRepositoryManager : Defaulting core.streamFileThreshold to 228m
[2013-07-18 01:46:38,083] INFO  com.google.gerrit.server.plugins.PluginLoader : Loading plugins from /home/daiwei89/gerrit_review/plugins
[2013-07-18 01:46:38,213] INFO  com.google.gerrit.sshd.SshDaemon : Started Gerrit SSHD on *:29418
[2013-07-18 01:46:38,215] INFO  org.eclipse.jetty.server.Server : jetty-8.1.7.v20120910
[2013-07-18 01:46:38,239] INFO  org.eclipse.jetty.server.handler.ContextHandler : started o.e.j.s.ServletContextHandler{/,file:/home/daiwei89/gerrit_review/tmp/gerrit_5102500950734049320_app/gerrit_war/}
[2013-07-18 01:46:39,145] INFO  org.eclipse.jetty.server.AbstractConnector : Started SelectChann...@0.0.0.0:8080
[2013-07-18 01:46:39,148] INFO  com.google.gerrit.pgm.Daemon : Gerrit Code Review 2.6.1 ready

This is log from an instance on Google Compute Engine (GCE). The log on Amazon EC2 is essentially the same. On both Amazon EC2 and GCE there's an internal IP and external IP. I set canonicalWebUrl to the external IP, and I can ping to that (external) IP from within the instance, but not from the internet. I've asked other Googlers in my office and no one seem to have a clue (one of them apparently had this problem before and couldn't resolve it). So I'd really appreciate any help here.

If anyone feel up to this, I can prepare an instance on EC2 to showcase the problem and let you log in to play with. 

Thank you in advance!
Dai Wei
On Wed, Jul 17, 2013 at 2:30 PM, Dave Borowitz <dbor...@google.com> wrote:
Reply all
Reply to author
Forward
0 new messages