I am trying to install JIRA on windows server 2008 R2 SP1, logged in as an administrator.
After running the install file for JIRA 5.2.4, localhost:8080 could not be found.
further examination revealed that start_service.bat failed as the service with the correct name could not be found. Presumably this means that the service was not created correctly as part of the install package.
After running start_bundled_jre.bat from the install directory, and waiting for it to finish, localhost:8080 could then be found and I proceeded with the install.
I am concerned that the lack of the service will mean that JIRA will not automatically start when the machine restarts, so am wondering what I should be doing to resolve this.
Andrew,
Your JDK/JRE must match the Jira installer you downloaded. You indicated you downloaded the 64bit Jira installer but, have a 32bit jdk installed. The service is probably attempting to use the 32bit jdk as it is the java home and fails to start as the Tomcat bundled with Jira 64bit is a 64bit and not compatible with the 32bit jdk.
Running the bundled jdk bat file works because the jdk bundled with the 64bit installer is a 64bit jdk.
You need to either:
uninstall the 32bit java sdk and install a 64bit java sdk.
Run tomcat7w //ES//JIRA and in the JAVA tab set the Java Virtual Machine to <jira_path>\jre\bin\server\jvm.dll
That would be logical, but I have seen in multiple places in Atlassian documentation, including here:
https://confluence.atlassian.com/display/ATLAS/Dragons+Stage+1+-+Install+JIRA
that 32bit jdk is the way to go, so I installed the 32bit.
I'll give the 64 bit jdk a try, it cant hurt.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
uninstalled 32 bit jdk
uninstalled jira
installed 64 bit jdk
set JAVA_HOME
installed jira via 64 bit installer with default settings
Works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you give the link of the doc you referred to?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I went back and read the guide and it seems there is a disconnect in it. They do recommend the 32bit jdk, I personally don’t see why but, I’ve only dealt with large installs. I suppose if you are setting the jvm mem under 1.5gb it could make sense to stay with the 32bit version. The disconnect comes when they advise you to download a 32bit or 64bit version to match the OS version, not the JDK version. You could very well run a 32bit JDK on a 64bit Windows but, you would need to install 32bit Jira to go along with it.
Tecken, since you responded earlier perhaps you'll see this and someone from Atlassian could correct the guide to indicate that the Jira needs to match the version of JDK (32 or 64 bits) you are using and not the OS version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://confluence.atlassian.com/display/ATLAS/Dragons+Stage+1+-+Install+JIRA
In "Step 4. Install Jira", it says:
"If you are running 64-bit [Linux|Windows], download the [Linux|Windows] 64 Bit Installer file for JIRA 5.2.
If you are running 32-bit [Linux|Windows], download the [Linux|Windows] 32 Bit Installer file for JIRA 5.2. "
But, in" Step 1. Install Java", it says:
"If you are running 64-bit Windows, we recommend that you use 32-bit JDK rather than the 'x64' JDK. The 32-bit version will use less memory. You do not need the 64-bit JDK unless you are running a very large server."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dragons document is a learners document for getting used for all the products from Atlassian (basically the integration part). That is actually not the document to be referred for production instance installations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Renjith, regardless of who the document is aimed at, it still has information in there that can lead to installation issues.
I would think particularly if it is a learners document that you would want to limit the number of potential issues arising?
This knowledge base article also suggests using a 32bit jvm in order to get the service running on 64bit windows
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This knowledge base article which I also referred to
says
If you are running a 64-bit version of Windows, please note that Apache Tomcat cannot run as a Windows service if you are using a 64-bit JDK/JRE (see JRA-12965). Please ensure that you are using a 32-bit JDK/JRE.
So bertween dragons and multiple Atlassian KB posts, I dont think that I was being unreasonable in installing the 32bit java.
Ironically had I not looked at any guide, I would have used the 64 bit java and everything would have worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are right, that bug is closed as not reproducible. Will get this checked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Updated the doc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andrew,
Most likely you're hitting into a known bug of windows installer in JIRA 5.2.x: https://jira.atlassian.com/browse/JRA-30699
So, you may want to have a look into this KB article https://confluence.atlassian.com/display/JIRAKB/JIRA+Service+Fails+To+Start+in+Windows+-+Is+Not+a+Valid+Win32+Application
In there, check the common-daemon.log as well as the event log of Windows to see if you having the same log entries. If it's the same, you may want to try the resolution in the KB article.
Check the existence of jvm.dll file. If it exists, try to change the %JAVA_HOME% to the bundled JRE of 64bit JIRA, remove the existing and reinstall a new service. After reinstalling the service, try to start it again.
I hope it do works out for you. Otherwise, it would be best to raise a support issue with us at https://support.atlassian.com and we shall further help you to investigate the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the responses thus far, but I've had no joy, so i tried starting again. (uninstalled JIRA, then deleted contents of C:\Program Files\JIRA\, deleted PostgreSQL database called jira, recreated empty database)
OK, so following Setup the services again manually
Ran C:\Program Files\Atlassian\JIRA\startup_bundled_jre.bat, tomcat started
However, I am still back to square 1 as JIRA is not installed as a service. Any ideas??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andrew,
You may want to try:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Setting the JAVA_HOME envirnoment variable to the bundled JRE (I assume that you mean the one in C:\Program Files\Atlassian\JIRA\jre) means that I cant run the service.bat command required to setup the service manually.
Seting the variable to the jdk I installed prior to JIRA (C:\Program Files (x86)\Java\jdk1.6.0_38) allowed me to setup the service following the steps in Setup the services again manually.
After setup, I could see the service by going to Control Panel>Administrative Tools>Services, but it had not been started.
Trying to start the service from the Services window, or from the command line failed.
I tried restarting the server as the service was set to start automatically, but this too failed to start the service.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Although I am using 64 bit windows, I followed the install instructions in the Atlassian Dragon Slayer Stage 1 and used a 32bit JVM, so unfortunately this wont help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.