Please help with Gerrit implementation [STARTER]

52 views
Skip to first unread message

Sooraj Sizon

unread,
Mar 30, 2015, 1:56:40 PM3/30/15
to repo-d...@googlegroups.com
hey guys i have been trying to set up gerrit from 2-3 weeks and still is unsuccessful in completely setting it up

and gerrit is initialized and
Starting Gerrit Code Review: OK
http://review.sonic-developers.com:8081/#/q/status:open


what i want to do is setup gerrit for my SOKP project
https://github.com/SOKP

and all i did till now is installed mysql-server created Mysql user gerrit2 and database reviewdb gave all permissions to it

then i init war package and set all options
and gerrit review starts and is Ok
now i dont know what to do next :(
some tutorials says i have to install jetty at JETTY_HOME and i did that using this tutorial http://www.ubuntugeek.com/install-jetty-9-java-servlet-engine-and-webserver-on-ubuntu-14-10-server.html btw the  path is /home/gerrit2/JETTY_HOME and i did copy all these PostgreSQL JDBC Driver Commons Pool Commons DBCP to /home/gerrit2/JETTY_HOME/lib/ext

any ideas what i should do next ?

all kinds of helps are appreciated

thanks
Sooraj

Sooraj Sizon

unread,
Mar 30, 2015, 2:07:55 PM3/30/15
to repo-d...@googlegroups.com
here is a log of present  situation

http://hastebin.com/goqewijoja.avrasm

and when i try to register to gerrit

http://hastebin.com/inatesurin.avrasm

Alex Blewitt

unread,
Mar 30, 2015, 3:01:10 PM3/30/15
to Sooraj Sizon, repo-d...@googlegroups.com
Which part have you followed up to in https://gerrit-review.googlesource.com/Documentation/index.html ? Are you following the version of the documentation that came from your version of Gerrit?

Alex

Sooraj Sizon

unread,
Mar 30, 2015, 3:05:39 PM3/30/15
to repo-d...@googlegroups.com, sooo...@gmail.com


On Tuesday, March 31, 2015 at 12:31:10 AM UTC+5:30, AlBlue wrote:
Which part have you followed up to in https://gerrit-review.googlesource.com/Documentation/index.html ? Are you following the version of the documentation that came from your version of Gerrit?

Alex

Hi Alex

i followed this tutorial  http://gerrit.googlecode.com/svn/documentation/2.0/install.html

ah could you link me correct one i should use for gerrit-2.10.2.war

Thanks :)
sooraj

Alex Blewitt

unread,
Mar 30, 2015, 3:13:24 PM3/30/15
to Sooraj Sizon, repo-d...@googlegroups.com
On 30 Mar 2015, at 20:05, Sooraj Sizon <sooo...@gmail.com> wrote:

ah could you link me correct one i should use for gerrit-2.10.2.war 

Sooraj Sizon

unread,
Mar 30, 2015, 3:14:35 PM3/30/15
to repo-d...@googlegroups.com, sooo...@gmail.com
Thanks mate :)

Sooraj Sizon

unread,
Mar 30, 2015, 3:37:58 PM3/30/15
to repo-d...@googlegroups.com, sooo...@gmail.com
gerrit2@Sonic-Developers:~/JETTY_HOME$ sudo cp ~/gerrit-2.10.2.war webapps/gerrit-2.10.2.war
gerrit2@Sonic
-Developers:~/JETTY_HOME$   java -jar webapps/gerrit2.10.2.war cat extra/jetty7/gerrit.xml >contexts/gerrit.xml
-bash: contexts/gerrit.xml: No such file or directory


i get this when try to setup Jetty as said in here http://gerrit-documentation.storage.googleapis.com/Documentation/2.10.2/install-j2ee.html

Sooraj Sizon

unread,
Mar 31, 2015, 1:42:18 AM3/31/15
to repo-d...@googlegroups.com
hi i left the jetty thing :(

now trying to configure reverse proxy and stuck again

sudo a2enmod proxy_http
Considering dependency proxy for proxy_http:
Enabling module proxy.
Enabling module proxy_http.
To activate the new configuration, you need to run:
  service apache2 restart

and have no idea where to do this
        <VirtualHost *>
          ServerName review.sonic-developers.com

          ProxyRequests Off
          ProxyVia Off
          ProxyPreserveHost On

         
<Proxy *>
            Order deny,allow
            Allow from all
         
</Proxy>

          AllowEncodedSlashes On
          ProxyPass /r/ http://
50.30.47.26:8081/r/ nocanon
       
</VirtualHost>


Sooraj Sizon

unread,
Apr 2, 2015, 12:07:07 PM4/2/15
to repo-d...@googlegroups.com

Bump
any help .... still stuck here :(

Nicholas Mucci

unread,
Apr 2, 2015, 3:06:14 PM4/2/15
to repo-d...@googlegroups.com
Sooraj,

The documentation link provided by Alex is exactly what you need.  

For the apache virtual host configuration, you should be familiar with apache site setup.  On Ubuntu, you're probably going to need to look in /etc/apache2/conf/sites-available and create a configuration file with the virtual host settings specified in the documentation.  Then create a symlink in /etc/apache2/conf/sites-enabled to that conf file in sites-available.  Remember that changes to apache conf files require restarting apache.

Also, for future reference, its in your best interests to sanitize your terminal output and configuration files pasted into mailing lists like this to prevent inadvertent disclosure of usernames, IPs, and server names.

-Nick

Sooraj Sizon

unread,
Apr 3, 2015, 4:30:06 AM4/3/15
to repo-d...@googlegroups.com


On Friday, April 3, 2015 at 12:36:14 AM UTC+5:30, Nicholas Mucci wrote:
Sooraj,

The documentation link provided by Alex is exactly what you need.  

For the apache virtual host configuration, you should be familiar with apache site setup.  On Ubuntu, you're probably going to need to look in /etc/apache2/conf/sites-available and create a configuration file with the virtual host settings specified in the documentation.  Then create a symlink in /etc/apache2/conf/sites-enabled to that conf file in sites-available.  Remember that changes to apache conf files require restarting apache.

Also, for future reference, its in your best interests to sanitize your terminal output and configuration files pasted into mailing lists like this to prevent inadvertent disclosure of usernames, IPs, and server names.

-Nick

Hi Nick

thanks for nice reply

i have added the configuration to /etc/apache2/conf/sites-available/000-default.conf
and /etc/apache2/conf/sites-available/default-ssl.conf
btw how to symlink it to /etc/apache2/conf/sites-
enabled

Awaiting response
  -Sooraj

Sooraj Sizon

unread,
Apr 3, 2015, 10:50:36 AM4/3/15
to repo-d...@googlegroups.com
Anyways used http instead of openid

http://review.sonic-developers.com:8081/r/#/q/status:open
installed github plugin and github-oauth
btw i dont know what is
ClientId                       :
ClientSecret                   :

so i just random one as said here http://forum.xda-developers.com/android/software-hacking/how-to-installation-configuration-t2872595
ClientId                       []:
384cbe2e8d98192f9799 RETURN
ClientSecret                   []:
f82c3f9b3802666f2adcc4 RETURN

btw now iam unable to log in :(

here i log
http://hastebin.com/mikaredebe.vbs



Sooraj Sizon

unread,
Apr 3, 2015, 1:08:07 PM4/3/15
to repo-d...@googlegroups.com
were can i find
ClientId                       :
ClientSecret                   :


Sooraj Sizon

unread,
Apr 3, 2015, 4:05:50 PM4/3/15
to repo-d...@googlegroups.com
ok fixed this added correct client id and client secret 
now i have fixed all thanks guys for all your help
Reply all
Reply to author
Forward
0 new messages