Attaching a File Results in Request Entity Too Large
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
症状
Attempting to attach a file results in:
HTTP logs contain:
HTTP/1.1 413 Request Entity Too Large
診断
System is behind some sort of proxy, firewall or network security
原因
The network security/proxy has a limitation on request size
NGINX USERS: If you have not specified a size limitation, NGINX will set client_max_body_size to a default of 1MB. See http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size.
ソリューション
Increase the allowed request body limit for the proxy. For example:
- Apache - http://httpd.apache.org/docs/current/mod/core.html#limitrequestbody
- Nginx:
modify the configuration file and reload:
$ vi /usr/local/nginx/conf/nginx.conf
modify the follow parameter to increase the size:
client_max_body_size 1M
reload the webserver
$ /usr/local/nginx/sbin/nginx -s reload