Forums

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

Tomcat is misconfigured: server.xml is missing parameters needed by JIRA

Valentin Capeci Oxandabaratz May 9, 2019

Hello,

I´m having problems follwing this guide:

https://confluence.atlassian.com/adminjiraserver073/running-jira-applications-over-ssl-or-https-861253906.html

The first part, Generate the Java KeyStore was done succesfully.

However, I'm having problems with the 2nd part of the guide, configuring the web server.

I have tried the standard steps using the JIRA configuration tool, but after restart the JIRA app I get this error:error_jira.pngI understand that the changes I made through the JIRA configuration tool is only making changes in the server.xml file.

So I tried the Advanced configuration, configuring the 8443 connector directly on the server.xml file

as it follows:

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
              maxHttpHeaderSize="8192" SSLEnabled="true"
              maxThreads="150" minSpareThreads="25"
              enableLookups="false" disableUploadTimeout="true"
              acceptCount="100" scheme="https" secure="true"
              sslEnabledProtocols="TLSv1.2,TLSv1.3"
              clientAuth="false" useBodyEncodingForURI="true"
              keyAlias="jira" keystoreFile="<JIRA_HOME>/jira.jks" keystorePass="changeit" keystoreType="JKS"/>

I had the same error. I edit the kestoreFile and pass to what I have.

I edit again this file and added in the connector:

relaxedPathChars="[]|"
relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"

Bur I'm still having the same error.

This server is on production. So, to do rollback I configure http only again in the config tool and replace a backup of the sserver.xml file

This is what I´m running:
Server version: Apache Tomcat/8.5.32

  • v7.13.1#713001-sha1:5e06076

2 answers

1 accepted

0 votes
Answer accepted
admin admin
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.
May 9, 2019

Some questions for you;

What is the full address you are observing to get the error page you provided above?

Are you using Linux or Windows as your root OS?

Linux:
As it will significantly simplify the configuration process, have you used the .../bin/config.sh file to configure your https connection?

So, I take it that the server itself receives https encapsulated packets on port 8443;
OR do you have a reverse proxy in front of it; Nginx, Apache Tomcat, HAProxy, which will de-encapsulate it from https?

Valentin Capeci Oxandabaratz May 9, 2019

Hi, I´m using Windows Server 2012 R2 as root OS.

I used the config.bat and I think is the alternative of config.sh for windows.

I can not give you the full address since the server is on production right know and I can not generate the error until tomorrow.

My bad for not taking a full PrtSCrn. What I can tell you is that I start the browser and go to https:localhost/8443, and the browser shows that the Jira is loading plugins which is normal after rebooting.

When it finish the web changes and is the prtscr what I see.

I´m trying all this with local host directly because i don´t want to add possible problems to the "migration"

After I try that everything works on local host directly on port 8443 I will configure my reverse proxy, but I do not have problems with that for now.

admin admin
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.
May 9, 2019

I wager you are trying to test with https enabled? (as the port="8443" and SSLenabled="true")

This will make a demo of the server a bit more complicated, but that is a requirement these days.


I should warn you however, that SSL/TLS configuration ON the server itself is almost entirely unsupported by Atlassian though (through my experience with support), so I would suggest using a reverse proxy in front of it, so that you can eliminate many of these issues immediately;
https://confluence.atlassian.com/kb/reverse-proxy-and-application-link-troubleshooting-guide-719095279.html

https://confluence.atlassian.com/kb/proxying-atlassian-server-applications-with-apache-http-server-mod_proxy_http-806032611.html

On my own servers, I have found haproxy to be substantially simpler to configure than the suggestions from Atlassian (Apache/Nginx), but that is a matter of taste and familiarity.

Valentin Capeci Oxandabaratz May 10, 2019

I finally get it working. I realize that I was removing the http connector when adding the new one.

Thanks for your help!

Like admin admin likes this
0 votes
Valentin Capeci Oxandabaratz May 10, 2019

Finally, following the advanced part 2 of the tutorial it´s working. When adding the connector for SSL I was removing the http connector. So I manually edit the server.xml file to keep both

admin admin
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.
May 10, 2019

Ah, yes.
Great to hear you found a resolution Valentin.

To accompany this;
This is another reason I suggested a proxy previously; It is easier to break down what causes issues;  In this case because I do not require port redirection (ports are redirected on our proxy), it is easier to diagnose an issue with the server.xml file.

Suggest an answer

Log in or Sign up to answer