
Microstackでイメージを作成しようとすると413エラーが発生します。よろしくお願いします
ボンジュール、
インストールされた Microstack フラグメントに関するイメージを作成しようとしたときに、413 エラーが発生しました。
ご協力ありがとうございます
フレデリック
<html> <head><title>413 Request Entity Too Large</title></head> <body bgcolor="white"> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx/1.13.0</center> </body> </html>
答え1
の中にドキュメンテーションnginx はサーバー ブロックのファイル サイズのアップロードを制限していることがわかります。
Syntax: client_max_body_size size;
Default:
client_max_body_size 1m;
Context: http, server, location
Sets the maximum allowed size of the client request body, specified in the “Content-Length” request header field. If the size in a request exceeds the configured value, the 413 (Request Entity Too Large) error is returned to the client. Please be aware that browsers cannot correctly display this error. Setting size to 0 disables checking of client request body size.
ファイルを編集するsudo vim /etc/nginx/nginx.conf
か
sudo vim /var/snap/microstack/common/etc/nginx/snap/nginx.conf
、
http client_max_body_size を、必要な iso よりも大きいサイズに設定します。
http {
...
client_max_body_size 2000M;
}
今すぐ再起動する
sudo systemctl reload nginx
か、sudo snap restart microstack