I'm trying to install gerrit.0.3 on my ubuntu8.0.4 and following steps
http://gerrit.googlecode.com/svn/documentation/2.0/install.html.
I have come to "Administrator Setup". it says "Login to Gerrit through
the web interface, so that a user account is initialized for you."
does it mean gerrit will create the user account automatically when I
login with any user account?
I connect to gerrit from another machine and select 'Sign in' in the
main page. after I enter a user name, it always comes out "Provider is
not supported, or was incorrectly entered."
so how can I add a user account to login?
According to openid4java's documentation:
http://code.google.com/p/openid4java/wiki/ConsumerForwardProxy
To make this work Gerrit needs a code change to permit proxy
configuration. We don't do this
HttpClientFactory.setProxyProperties(proxyProps) call they recommend.
Patches are welcome. :-)
FWIW, the init code would probably need to go in OpenIdServiceImpl's
constructor. The proxy settings could go in a file in $site_path, or
in the system_config table. Either are available off that
GerritServer instance the constructor is already fetching...
If you are suggesting I work for the Google Open Source Programs
Office (OSPO), you'd be right. But we're not the only group here that
writes open source software. A lot of teams open source the code they
work on. We're here more as a facilitator than as a bucket for
developers to sit in. The amount of code OSPO open sources and
maintains is nothing compared to what the rest of the company does.
GWT, protobuf, Chromium, Android, Rietveld ... there are hundreds of
projects from all over the world that have been open sourced.
> From the starting point, for example, i failed to build Gerrit from the
> source - git clone git://android.git.kernel.org/tools/gerrit.git,
> ,I thought, because of the http_proxy. so i surfed the internet to find the
> solution. . . and i couldn't get solution. so i downloaded it thru
> git web and commanded "mvn package". and as u see and expect, it faild,
Building from the snapshot tar on gitweb works fine. You probably ran
into issues with Maven trying to download dependencies for both itself
and for Gerrit; it didn't know about your proxy server and wasn't able
to perform the downloads.
> so far,,, anyway so now Jetty is running on my desktop and i can access the
> gerrit main web page using my ip address:8080. but login access is not
> possible as i mentioned.
>
> actually i expected that i might be able to set http_proxy using some
> simple commands. like i did ' psql -c "UPDATE system_config SET
> git_base_path='srv'/git''" reviewdb '...
That's what this entire thread has been about; there is currently no
http_proxy support, so you can't just set it in system_config.
> And now i'm also worring about a few things more.
>
> 1. http_proxy settings as i mentioned
>
> 2. Regarding to account settings,,,
> Members may not use OpenID to log in gerrit that will be running as
> private instance on my desktop(server).
> So how can i deal with ,or generate local/private accounts in
> 'reviewdb'?
Don't use OpenID.
Instead configure Gerrit for HTTP Basic Authentication, see:
http://gerrit.googlecode.com/svn/documentation/2.0/config-sso.html
and configure Jetty for HTTP Basic Authentication, see:
http://docs.codehaus.org/display/JETTY/Realms
probably by editing $JETTY_HOME/contexts/gerrit.xml to insert the
securityHandler block.
If you do this, then the HTTP proxy is no longer an issue. The *ONLY*
time Gerrit tries to communicate with an outside server is to complete
the OpenID authentication process. If you aren't using OpenID, you
don't have to worry about its network connectivity settings.
> i can access thru ssh connection using 'PuTTY'. Just connection is
> possible but i don't know what i should input as login id.
> and finally i got the popup message 'Disconnected: No supported
> authentication methods available'.
Gerrit only supports public key authentication; password
authentication is explicitly disabled. You will need to first
configure Gerrit for HTTP authentication as I just mentioned, then
login once, go to Settings > SSH Keys, and add your public SSH key.
You would also need to configure PuTTY to use that same SSH key when
logging into the server. Only then you can try to login... but you
will receive a "gerrit: no shell available" message, because it is a
restricted shell environment.
> and also when i tried to ssh-connect to
> Gerrit using other Ubuntu terminal, i failed
> # ssh -p 29418 165.213.196.214
> Permission denied (publickey).
Yup, again, only public key authentication is enabled.
> 3. Git repository setting/configuration..
> umm.. under /srv/git directory, more specific setting is necessary? and
> is there any example or specific guideline ..
I'm not sure what you mean. Make /srv/git readable/writable by the
user that is running Gerrit. Usually I just chown it to that user.
Create a git repository within this directory, e.g.:
git --git-dir=/srv/git/ourcode.git init
and then register that in Gerrit's database, per the project setup doc:
http://gerrit.googlecode.com/svn/documentation/2.0/project-setup.html