Users receive 404 Not Found error when accessing Jira through nginx

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

 

要約

This may happen after a VM restart or an OS restart.

Whenever you try to access JIRA through the proxy URL, you get the following generic 404 error:

You will also see the following "permission denied" errors in the nginx logs: 

2020/08/22 12:31:22 [xxxx] 3xx#3xxx: *138 connect() to 10.xxx.xxx.xxx:8080 failed (13: Permission denied) while connecting to upstream, client: 10.xxx.xxx.xxx, server: , request: "GET /rest/gadget/1.0/issueTable/filter?


環境

  • Any Linux distribution that ships with SELinux 
  • Any version of Jira


診断

Check for errors in the SELinux logs (you'll see permission denied for the nginx server over 8080 or whatever port Jira is listening on):

sudo cat /var/log/audit/audit.log | grep nginx | grep denied


原因

SELinux is preventing connections on port 8080 for the nginx process.

Note that this port may be different depending on your setup.


ソリューション

Execute the following command in your server:

setsebool httpd_can_network_connect on -P

Refer to http://stackoverflow.com/questions/23948527/13-permission-denied-while-connecting-to-upstreamnginx for more info.

You should not need to restart any services, including Jira. 


最終更新日: 2020 年 12 月 11 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.