Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Running 2 Jiras in one Machine

Fr0zt
Contributor
February 21, 2018

Hello.

I have a machine running Jira (port 8080) and confluence (port 8090).

I am trying to install another Jira (lets say Jira2) in the same machine, but I've changed the port to 9080 when I run the installation.

When I finish intalling Jira2, I try to open it in the browser but the Service is not launched.

In fact when I look into my services I only get 1 "Atlassian Jira", which is running but this is my first Jira instance.

 

I looked into the url:  https://confluence.atlassian.com/jira/running-multiple-instances-of-jira-on-one-machine-222200571.html

 AND i CHECKED THIS:

 

  • Not sharing the same listening or shutdown port of any other instance or service: This is ok as far as I know.
  • Not sharing the same database with another instance.: Still waiting to run it to connect to a new db.
  • When using services within windows, using 2 different windows service definitions: not sure. How can I check this?
  • Not sharing the same JIRA home folder: this is ok. I have them in different folders.
  • Not deploying multiple instances using a Single Tomcat Application Container: This should be ok. When I install Jira this is done automatically right?
  • Having separate licenses for each of the instances: this is ok. Waiting to get to this part.

When I installed Jira2 I choose the run it as a Service. What am I doing wrong, can you help? How can I run this 2 Jira in the same machine?

 

3 answers

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2018

Probably the installer attempted to run both the JIRA's with the same name (maybe a default in the installer) and the second one was not registered.

You can still add the second one as a service, as described at https://confluence.atlassian.com/adminjiraserver071/running-jira-applications-as-a-windows-service-802593173.html#RunningJIRAapplicationsasaWindowsservice-ManuallysettingupJIRAtorunasaservice.

Just make sure you use a different name this time.

Fr0zt
Contributor
February 21, 2018

When I try to do: 

service.bat install JIRA2

 I get error (Failed installing 'JIRAServiceDesk210218101116' service).

How can I fix this?

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 22, 2018

JIRA or JIRA2 is just the display name. Try finding the name of the current service (JIRA) as described at https://confluence.atlassian.com/adminjiraserver071/running-jira-applications-as-a-windows-service-802593173.html?_ga=2.241463298.1076185001.1519094384-1760194658.1485552941#RunningJIRAapplicationsasaWindowsservice-Locatingthenameofaservice.

You can then rename that service before registering JIRA2. You will find online docs on renaming a service.

0 votes
Steve Thornhill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2018

Assuming you have configured the new JIRA to run on separate ports from the original 8080 you can following the service setup steps here to manually add an additional service.

https://confluence.atlassian.com/adminjiraserver071/running-jira-applications-as-a-windows-service-802593173.html

Fr0zt
Contributor
February 21, 2018

Done that, When I run "

service.bat install JIRA" I got this error:
"
C:\Program Files\Atlassian\JIRA2\bin>service.bat install JIRA2
Installing the service 'JIRAServiceDesk210218101116' ...
Using CATALINA_HOME: "C:\Program Files\Atlassian\JIRA2"
Using CATALINA_BASE: "C:\Program Files\Atlassian\JIRA2"
Ignoring JAVA_HOME: "C:\Program Files\Java\jdk1.8.0_161"
Using JRE_HOME: "C:\Program Files\Java\jre1.8.0_161"
Using JVM: "C:\Program Files\Java\jre1.8.0_161\bin\server\jvm.dll"
Failed installing 'JIRAServiceDesk210218101116' service
"
0 votes
Fr0zt
Contributor
February 21, 2018

Now I checked and notice one thing: I went to /jira2/bin folder and run startup.bat and waited,,,

I went to browser and now it seems to be working...

So in the second installation it did not run as a service.

So, do I have to do it manually, for the second Jira?

Suggest an answer

Log in or Sign up to answer