Problem with running Gitblit as windows service

1,086 views
Skip to first unread message

Rico Marcelo

unread,
Jul 11, 2012, 2:41:58 PM7/11/12
to git...@googlegroups.com
Hello,

I am running Gitblit v0.9.2 on Windows 7 and Intel Xeon processor. I can run it fine using the command prompt.
But when I attempt to run it as service by setting the ARCH=x86, it won't show up in the local services list. Also, when I try to run the gitblitw.exe file, I get the following error:
The specified service does not exist as an installed service. Unable to open the service 'gitblit'.

Any help will be greatly appreciated.

Thanks,
Rico

James Moger

unread,
Jul 11, 2012, 2:51:14 PM7/11/12
to git...@googlegroups.com
The ARCH value must primarily match the installed Java.
32-bit Java, use x86. 64-bit Java, use amd64.

After you set that ARCH value, run installService.cmd from the command
line with an account that has administrator privileges. This should
create the service. After you have created the service you can use
the gitblitw.exe manager app to change details about the service or to
start/stop the service.

-J

Rico Marcelo

unread,
Jul 12, 2012, 12:29:40 PM7/12/12
to git...@googlegroups.com
Hi James,

Thanks for responding. However, after following your suggestion, still no luck.
I logged in as administrator. I installed 32-bit Java on our Windows 7 64bit VM (after uninstalling previously installed 64bit Java runtime).
I then set ARCH=x86 in the file installService.cmd. I ran the installService.cmd in the command line. Still didn't create the service.
I tried running gitblitw.exe I am still getting the error message. :(

- Rico

James Moger

unread,
Jul 12, 2012, 6:40:18 PM7/12/12
to git...@googlegroups.com
Are you running Java 6 or Java 7? I have not tested with 7.

Chris Lawrence

unread,
Oct 11, 2012, 11:27:27 AM10/11/12
to git...@googlegroups.com
Did you find a resolution???   I was successful in setting this up on Windows Server 2012 in Azure (I used x86 and installed jre7).  But on my VM on esxi with Windows Server 2012 i'm experiencing the same issue as you with no service created.  Thanks

Chris Lawrence

unread,
Oct 11, 2012, 12:25:04 PM10/11/12
to git...@googlegroups.com
I think it was the user permissions.  I switched my user (which is a Domain Admin) to our full Domain Admin user and ran the install service cmd file and viola!!  Hidden permissions that I really don't care to track down!   
Reply all
Reply to author
Forward
0 new messages