Getting Gerrit working on Windows server.

1,709 views
Skip to first unread message

Arunciks

unread,
Nov 3, 2010, 10:55:32 AM11/3/10
to Repo and Gerrit Discussion
I followed the setup guides and got as far as trying to start gerrit
on windows2k3 server.
The database I used is MySQL - the shcema created fine but no tables
in the reviewdb schema.
The folders and config files were created by gerrit init and represent
my settings

[gerrit]
basePath = C:\\Repositories
[database]
type = MYSQL
hostname = localhost
port = 3306
database = reviewdb
username = gerrit2
[auth]
type = LDAP
[ldap]
server = ldap://10.0.0.2
username = DOMAIN\\admin
accountBase = OU=Desktops,OU=User AD Policies,DC=xxx,DC=xx,DC=edu
groupBase = OU=Desktops,OU=User AD Policies,DC=xxx,DC=xx,DC=edu
[sendemail]
smtpServer = 10.0.0.30
smtpUser = svc_adm
[container]
user = svc_adm
javaHome = C:\\Java
[sshd]
listenAddress = localhost:29418
[httpd]
listenUrl = proxy-http://localhost:888/r/
[cache]
directory = cache




Since I can't run sh scripts on win machine I try to start gerrit by
using cmd:

java -jar gerrit.war daemon -d c:\gerrit\review_site

No errors, but no info either. It comes back to command prompt command
line.

Is there anyways of checking if the daemon is running?
I see 2 java.exe running in the Task Manager.

When trying to access from Apache side through no luck.

I would appreciate if someone could guide me to the right direction.

Thank You.









Shawn Pearce

unread,
Nov 3, 2010, 3:39:05 PM11/3/10
to Arunciks, Repo and Gerrit Discussion
On Wed, Nov 3, 2010 at 07:55, Arunciks <arun...@gmail.com> wrote:
> I followed the setup guides and got as far as trying to start gerrit
> on windows2k3 server.
> The database I used is MySQL - the shcema created fine but no tables
> in the reviewdb schema.

That's odd, you should see the tables in the database.

> Since I can't run sh scripts on win machine I try to start gerrit by
> using cmd:
>
> java -jar gerrit.war daemon -d c:\gerrit\review_site
>
> No errors, but no info either.

Check $site_path/logs/error_log. If the daemon cannot start, it
should have logged there. You can change the log to instead display
on the console by passing --console-log as an option to the daemon
command.

> It comes back to command prompt command
> line.

daemon doesn't terminate, it just stays running. The fact that its
exiting implies its crashing on startup, and isn't actually running.

Arunciks

unread,
Nov 3, 2010, 3:46:37 PM11/3/10
to Repo and Gerrit Discussion
Shawn Thanks for the fast reply.

I was able to get gerrit started.

It seems that it terminates because Apache is already running.
If I start gerrit with the same command and start Apache service
afterwards I can access gerrit and wow it works with Active Directory
too.

And by the way after the successful start all bunch of the gerrit
tables got created in MySQL db

Now I m in a quest for getting it running with sshd setting and ssh
keys.

Thanks Once again.



On Nov 3, 3:39 pm, Shawn Pearce <s...@google.com> wrote:

Magnus Bäck

unread,
Mar 26, 2013, 3:45:17 PM3/26/13
to repo-d...@googlegroups.com
On Tuesday, March 26, 2013 at 15:27 EDT,
VCSekhar Parepalli <vcsekhar....@gmail.com> wrote:

> Sorry to post a different query on this thread,

Why not start a new thread?

> but would some one kindly help me point to any link or steps to
> install Gerrit on Windows. Am trying to use it with our source
> code hosted in VisualSVN (using Apache).

VisualSVN? Gerrit is Git-only, so unless you're planning on some kind
of bi-directional gateway I don't see how this would even work.

--
Magnus Bäck
ba...@google.com

vcsekhar parepalli

unread,
Mar 26, 2013, 6:21:21 PM3/26/13
to repo-d...@googlegroups.com
Sorry for not posting it as a new thread, Magnus, was a bit out of my mind today. Appreciate for clarifying it though. :)



--
--
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 a topic in the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/repo-discuss/jdasyejm1DE/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages