Installing gitblit as a service on windows

2,228 views
Skip to first unread message

Leif Jantzen

unread,
Apr 27, 2012, 8:47:04 AM4/27/12
to git...@googlegroups.com
I have installed gitblit, and it runs fine when I issue the command "java -jar gitblit.jar".  I want to run gitblit as a service, so I edited installService.cmd to reflect my architecture and ran it. A service was created, but failed to start. Subsequent attempts to manually start the service failed as well.  The event log says: 

"The gitblit service terminated with service-specific error The operation completed successfully.."

The details pane contains the following information:

- <System>
<Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
<EventID Qualifiers="49152">7024</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8080000000000000</Keywords>
<TimeCreated SystemTime="2012-04-27T12:34:31.369448200Z" />
<EventRecordID>1503</EventRecordID>
<Correlation />
<Execution ProcessID="444" ThreadID="3040" />
<Channel>System</Channel>
<Computer>...</Computer>
<Security />
</System>
- <EventData>
<Data Name="param1">gitblit</Data>
<Data Name="param2">%%0</Data>
</EventData>
</Event>


Any ideas as to what may be wrong will be appreciated! 

Thx. 

LeifJ. 

Guillaume Belrose

unread,
Apr 27, 2012, 9:08:08 AM4/27/12
to git...@googlegroups.com
Hi Leif,

Which Windows OS are you running on?
I am running Windows 2003 with GitBlit Go version 0.8.2 and all is
working fine for me.

Guillaume.

Leif Jantzen

unread,
Apr 27, 2012, 9:17:00 AM4/27/12
to git...@googlegroups.com
Im running gitblit 0.9.3 on windows server 2008 r2. 

L


On Friday, April 27, 2012 3:08:08 PM UTC+2, Guillaume Belrose wrote:
Hi Leif,

Which Windows OS are you running on?
I am running Windows 2003 with GitBlit Go version 0.8.2 and all is
working fine for me.

Guillaume.

James Moger

unread,
Apr 27, 2012, 9:34:12 AM4/27/12
to git...@googlegroups.com
I also run my company's installation on Windows 2003 server.

Can you run "gitblitw.exe"? That tool allows you to reconfigure the
service and control it.

-J

Leif Jantzen

unread,
Apr 27, 2012, 10:08:58 AM4/27/12
to git...@googlegroups.com

Yes, I can run gitblitw.  

I also note in the gitblit logfiles: 

[2012-04-27 16:01:18] [error] Failed creating java 

This happens if I use the system default java, or if I specify the java.dll 

I am running java:

java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)

This is the java that comes with the JDK, and it is the only java version installed on the server. 

Thanks for your help! 

L

James Moger

unread,
Apr 27, 2012, 10:11:43 AM4/27/12
to git...@googlegroups.com
Hmmm. Perhaps Apache Commons Daemon is not compatible with Java 7.
Maybe the JNI calls have changed. Dunno. Can you try with Java 6?

-J

Leif Jantzen

unread,
Apr 27, 2012, 10:12:30 AM4/27/12
to git...@googlegroups.com
Yes, I'll give it a shot on monday. 

L

James Moger

unread,
Apr 27, 2012, 10:14:31 AM4/27/12
to git...@googlegroups.com
I would also double-check you have selected the right architecture for your JDK.

http://stackoverflow.com/questions/4434217/apache-commons-daemon-failed-creating-java-error

-J

Leif Jantzen

unread,
Apr 30, 2012, 5:25:19 AM4/30/12
to git...@googlegroups.com
Thank you.  I was using the 64-bit version.  32-bit was apparently a lot better.   :) 

L

Hein Oldewage

unread,
Apr 9, 2014, 5:35:52 AM4/9/14
to git...@googlegroups.com
I also received this error when I forgot to change the ARCH parameter in the install script. 
Reply all
Reply to author
Forward
0 new messages