After restarting my server (I run JIRA and Confluence on the same host), JIRA is giving me a 503 Service Unavailable error on the browser. I can telnet to port 8080 just fine on localhost and remotely so the service is running. I am using Apache Reverse Proxy and have added the retry=0 timeout=5 to my ProxyPass option in my httpd config file. I still cannot access Jira. I am running Apache 2.4
Confluence (on the same host) is configured exactly the same way and I can connect to it just fine. I also don't have SELinux running. It is completely disabled. I even tried with the firewall completely open and have the same results.
My Apache Config file for JIRA is as follows:
## Apache Config:
<VirtualHost *:80>
ServerAdmin webmaster@domain.tld
ServerName support.domain.tld
ServerAlias support.domain.tld
Redirect permanent "/" "https://support.domain.tld/"
</VirtualHost>
## SSL Virtual Host Context
<VirtualHost *:443>
ServerAdmin webmaster@domain.tld
ServerName support.domain.tld
ServerAlias support.domain.tld
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/wildcard.domain.tld/wildcard.domain.tld.crt
SSLCertificateKeyFile /etc/pki/tls/certs/wildcard.domain.tld/wildcard.domain.tld.key
SSLCACertificateFile /etc/pki/tls/certs/wildcard.domain.tld/intermediate.crt
ErrorLog /var/log/httpd/jira.error.log
LogLevel debug
CustomLog /var/log/httpd/jira.access.log combined
## Proxy Settings
SSLProxyEngine On
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://support.domain.tld:8080/ retry=0 connectiontimeout=600 timeout=600 nocanon
ProxyPassReverse / http://support.domain.tld:8080/
<Proxy *>
#Order deny,allow
#Allow from all
Require all granted
</Proxy>
</VirtualHost>My JIRA server.xml file contains the following connector settings:
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192"maxThreads="150" minSpareThreads="25" port="8080" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" scheme="https"proxyName="support.domain.tld" proxyPort="443" secure="true"/>
My Apache error logs for JIRA complains about the following:
[Tue Sep 08 07:15:14.306959 2015] [proxy:debug] [pid 32575] proxy_util.c(2215): AH00943: HTTP: has released connection for (support.domain.tld)
[Tue Sep 08 07:15:14.307005 2015] [headers:debug] [pid 32575] mod_headers.c(848): AH01503: headers: ap_headers_error_filter()
[Tue Sep 08 07:15:14.307135 2015] [ssl:debug] [pid 32575] ssl_engine_io.c(992): [client XXX.XXX.XXX.XXX:46247] AH02001: Connection closed to child 1 with standard shutdown (server support.domain.tld:443)
[Tue Sep 08 07:15:15.202863 2015] [proxy:error] [pid 31239] (110)Connection timed out: AH00957: HTTP: attempt to connect to XXX.XXX.XXX.XXX:8080 (support.domain.tld) failed
[Tue Sep 08 07:15:15.202918 2015] [proxy:error] [pid 31239] AH00959: ap_proxy_connect_backend disabling worker for (support.domain.tld) for 0s
[Tue Sep 08 07:15:15.202925 2015] [proxy_http:error] [pid 31239] [client XXX.XXX.XXX.XXX:46990] AH01114: HTTP: failed to make connection to backend: support.domain.tld
Interesting enough, my Apache error logs for Confluence have the same errors but I can get to Confluence just fine. Keep in mind that my Apache config for Confluence and the Connector setting for Confluence in server.xml are the same as Jira. I don't know why JIRA stopped working and Confluence works fine. I even stopped the Confluence server to see if one they were competing against each other but I have the same results.
When I run a wget from the Linux CLI to my support.domain.tld, I get the following:
wget --spider support.domain.tld
Spider mode enabled. Check if remote file exists.
--2015-09-07 20:59:35-- http://support.domain.tld/
Resolving support.domain.tld (support.domain.tld)... XXX.XXX.XXX.XXX
Connecting to support.domain.tld (support.domain.tld|XXX.XXX.XXX.XXX|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://support.domain.tld/ [following]
Spider mode enabled. Check if remote file exists.
--2015-09-07 20:59:35-- https://support.domain.tld/
Connecting to support.domain.tld (support.domain.tld)|XXX.XXX.XXX.XXX|:443... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
Remote file does not exist -- broken link!!!
What am I missing here? This was working fine and I only rebooted the server to add more RAM.