Problem with Tomcat by second instance

Sven.H
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 24, 2015

Hi everybody,

we use JIRA in version 6.3.12 (Windows 64 Bit Installer) standalone on our system.

Now we have installed a second instance of JIRA on the same Server.

The second instance starts, but we have problems with Tomcat.

 

 Tomcat.png

 

We have read from the Atlassian website:

Not deploying multiple instances using a Single Tomcat Application Container

https://confluence.atlassian.com/display/JIRA/Running+multiple+instances+of+JIRA+on+one+machine

Is there a specific configuration we need to do for tomcat ?

 

Best Regards,

Sven & Andrei / Peter

 

 

8 answers

1 accepted

0 votes
Answer accepted
Volodymyr Krupach
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 24, 2015

Hello Sven,

I looked to my server.xml in JIRA Tomcat and think that you could need to adjust one more port not outlined in article you linked in the question. Here is snipped of the XML with ports highlighted by "==".

<Server port="==8005==" shutdown="SHUTDOWN">
  ...
  <Service name="Catalina">
    ...
    <Connector port="==8080==" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" 
    ...
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="==8009==" protocol="AJP/1.3" redirectPort="8443" />

You can use 8006, 8081 and 8010. Just make sure that they are not used: http://stackoverflow.com/questions/273159/how-to-determine-if-a-port-is-open-on-a-windows-server

1 vote
Peter Van de Voorde
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 24, 2015

Hi Sven and Peter,

 

What's the error message you are getting? I can't seem to see it in the attached screenshot.

Anyway, if you want to install multiple instances of Stand Alone JIRA on a server you will need to change at least:

  • the ports the JIRA instances are using
  • make sure they use a different database
  • make sure they use a different home and install directory

Best regards,

Peter

0 votes
Sven.H
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 26, 2015

@all

THX for Support.

It works now perfectly.

  

Best Regards,

Sven & Peter

0 votes
Sven.H
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 25, 2015

 

@Volodymyr Krupach

 

Now we have made screens from our server.xml.

 

As you can see we used different ports, but issue is still the same, that is why we don't think it's port related but rather it has something to do with tomcat. We don't know for sure.

 

THX for helping

first_instance.png

 

 

 

 

second instance.png

 

 

 

Peter Van de Voorde
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 25, 2015

Hi Sven, Maybe this article can help you out: http://stackoverflow.com/questions/16110528/tomcat-multiple-instances-simultaneously ? Best regards, Peter

0 votes
Andrei Peter Mirion February 25, 2015

Hi again and thank you for the support so far, we managed to get it up and running but we stumbled now again on a different issue. As we have two instances on the same server, we can only run one instance at a time, they can't run both at the same time. Is this normal to happen or are we doing something wrong ?

Volodymyr Krupach
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 25, 2015

Hi Andrei! They should run as long as they are on different ports. Please check the ports as outlined in my previous answer.

0 votes
Andrei Peter Mirion February 24, 2015

 Please find attached the log file

Peter Van de Voorde
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 24, 2015

Peter and Sven, It seems that your JIRA instance is locked, could you please follow the instructions here: https://confluence.atlassian.com/pages/viewpage.action?pageId=223220062

0 votes
Andrei Peter Mirion February 24, 2015

Hello Volodymyr and Peter,

Thank you for the quick reply, we did use different ports and also created another database and of course we used different instalation folders. The only thing we didn't know how to do was the configuration for Tomcat to not use the same container, we are noobs on this part and we need some guidance.

The issue is that the second instance is not launching, the web page is not starting.

Should we get you some log files ? And which ones ?

Capture.PNG

Thanks,

Peter

Peter Van de Voorde
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 24, 2015

Could you take a look in the atlassian-jira.log file in the home-dir/logs directory of your second instance? If you have installed a second standalone the container shouldn't be an issue. Best regards, Peter

0 votes
Volodymyr Krupach
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 24, 2015

Hi Sven!

You need separate Tomcat and need to adjust ports as described in the article you linked.

Suggest an answer

Log in or Sign up to answer