Nginx reverse proxy application links

I have 2 JIRA 6.3.15 instances each behind a Nginx reverse proxy + SSL.

When I try to create application links between them, JIRA reports no response.

"No response was received from the URL you entered - it may not be valid. Please fix the URL below, if needed, and click Continue."


Nginx access logs shows this line.

10.10.23.162 - - [21/May/2015:14:19:17 -0400] "\x15\x03\x03\x00\x02\x02(" 400 172 "-" "-"

JIRA's catalina.out has no output. Which suggests that the request wasn't forwarded.

Has anyone got this working?

 

http {
        proxy_cache_path /var/lib/nginx/cache keys_zone=one:10m;
        server {
                listen 80;
                server_name jira2.lan;
                location / {
                return 301 https://$server_name$request_uri;
                }
        }
        server {
            listen 443 ssl;
            server_name jira2.lan;
            ssl_certificate /etc/ssl/certs/cert.pem;
            ssl_certificate_key /etc/ssl/certs/key.pem;
            # NGINX usually only allows 1M per request. Increase this to JIRA's maximum attachment size (10M by default)
            client_max_body_size 10M;
            proxy_cache one;
            add_header X-Cache-Status $upstream_cache_status;
            location / {
                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header X-Forwarded-Server $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass http://jirahost2.lan:8080;
            }
        }
}

3 answers

1 accepted

I needed to add the self signed certificates into the JVM for the link to work.

Hello, Could you give more details on the solution ? Did you configure the tomcat connector to use ssl or did you simply add the certificates to an accessible keystore ?

Hello,

I recommend you to check this guide, which covers the common problems regarding Application Links creation and maintenance.

0 vote

Hello, 

 

The catalina.out only shows logs related to Tomcat start up. To see logs related to the application and applinks, please cheack the <jira-home>/logs/jira-atlassian.log.

I also got curious about your NGINX configuration. You've mentioned that you have two JIRA, but I'm only seeing configuration to jira2 host. Is this NGINX working as Load Balancer as well?

If possible, please delete the application links between these two jiras, run a tail f on the both JIRA logs and try to recreate the application links again and post the error message here. 

 

Regards, 

Renato Rudnicki

 

atlassian-jira.log did not show any output either. Somehow nginx isn't forwarding the request to tomcat. The 2 JIRA has identical nginx configuration other than their hostnames. No load balancer. jirahost - HTTP - Nginx jiratest - HTTPS jirahost2 - HTTP - Nginx jiratest2 - HTTPS There is no link to delete. I'm trying to create the link. Thanks, - Andy

Hi Andy, A good way to check where it is failing is running a tcpdump on servers. Regards, Renato Rudnicki

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

136 views 0 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you