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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

413 views 1 18
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