You are using configuration files for Jetty 7.x, but on a Jetty 6.x container.
Either upgrade your version of Jetty to 7.x and retry, or recreate the
$JETTY_HOME/contexts/gerrit.xml file using the Jetty 6 variant that is
included in the WAR.
You didn't install the commons-dbcp or commons-pool JARs into your
$JETTY_HOME/lib/plus or ext directory. Check the Gerrit install guide
again, it mentions these needing to be installed.
Well, it opened the database this time.
> I still don't manage to connect to gerrit.
Can you explain this further? It looks like Gerrit opened its
database, so it should have been ready to handle requests.
To run on ports below 1024 on UNIX you need to run the process as
root. This is extremely unsafe for a network server written in
pure-Java (like Jetty/Tomcat/Gerrit Code Review) because the server is
unable to change its user identity to a less powerful user before it
starts to process data received over the network. Long story short,
it is strongly recommended that you run on a port >1024 as a non-root
user.
> Now I use port 10000 and I manage to access the web page.
> But I can't see any of the git projects in my /home/gerrit2/
> repositories directory.
> Is there anything in the logs that should list the repositories that
> are found?
No. The repositories have to be registered first. See:
http://gerrit.googlecode.com/svn/documentation/2.0/project-setup.html
Oh, I think I know what's wrong. The function is like 6 lines:
CREATE FUNCTION nextval_project_id ()
RETURNS BIGINT
LANGUAGE SQL
NOT DETERMINISTIC
MODIFIES SQL DATA
BEGIN
INSERT INTO project_id (s) VALUES (NULL);
DELETE FROM project_id WHERE s = LAST_INSERT_ID();
RETURN LAST_INSERT_ID();
END;
But phpMyAdmin helpfully ended it at the first ";" right after the
INSERT and only sent that part to the MySQL server. I suggest running
the script by hand from the command line using the MySQL command line
client tool, as you need to submit the entire block to MySQL at once.
Gerrit requires that the committer identity (see git log
--pretty=full) use an email address which is also stored in your user
account (see Settings > Identities). This isn't typically required by
Git... but is done in Gerrit so project maintainers can assume the
address given in a commit can be used at some time in the future to
contact the author if necessary.
You need to configure user.email on your system. This is "step 1" of
almost any Git user guide these days:
git config --global user.name "Your Name"
git config --global user.email "your....@your.provider.example.com"
And then recreate the commit with the same message before you upload:
git commit --author="$(git config user.name) $(git config user.email)" --amend
Sorry to hitchhike this conversation but I have related question
I have gerrit configured with LDAP so the user is configured with
system login and not with full name.
e.g. tomas vs. Tomas Winkler
When I'm trying to 'repo upload' it tries to use 'Tomas Winkler' is it
appears in commit message in stead of tomas and fails. The full name
is retrieved git var GIT_COMMITTER_IDENT and not with what I've
configured in repo setup.
.git/config
[user]
name = tomas
How can be this translation done? Where to solve this in gerrit or in repo?
Thanks
Tomas
http://gerrit.googlecode.com/svn/documentation/2.0/index.html
?