通过System Manager升级ONTAP版本时、ONTAP映像上传失败
适用场景
- ONTAP 9.7P8.
- ONTAP 9.7P23
- NetApp ONTAP System Manager
问题描述
- 尝试通过从System Manager上传本地软件映像将集群从ONTAP 9.7P8升级到9.7P23时、映像上传失败并显示以下错误消息:
在System Manager中:
The request body must have content type multipart/form-data with a field named "file" containing the file to upload.
在EMS日志中:
Tue Apr 3019:01:50 +0900 [node01: notifyd: sysmgr.upload.no.form:error]: Failed to upload a file because a form field named "file" was not found in the HTTP request, or the Content-Type HTTP header is not "multipart/form-data".
- 此
/mroot/etc/upload
目录的大小为4 GB、此文件夹中没有其他文件。它应该能够容纳9.7P23映像文件、即2.33 GB。
cluster::*> system node systemshell -node * -command df -h /mroot/etc/upload
Node: node01
Filesystem Size Used Avail Capacity Mounted on
/dev/md5 4.2G 12K 3.9G 0% /mroot/etc/www/webjail/php/tmp/upload
Node: node02
Filesystem Size Used Avail Capacity Mounted on
/dev/md5 4.2G 12K 3.9G 0% /mroot/etc/www/webjail/php/tmp/upload
- 在System Manager中启用调试并收集 PHP日志,它会显示一个错误,即图像文件超出了PHP上传限制8MB。
Tue Apr 30 2024 19:01:50 +09:00 [kern_php:error:41475] PHP Warning: POST Content-Length of 2502680727 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
Tue Apr 30 2024 19:01:50 +09:00 [kern_php:error:41475] Error: The request body must have content type multipart/form-data with a field named "file" containing the file to upload.
- 检查的值
post_max_size
, 即System Manager与之通信的集群管理LIF节点1上的值仅为8MB。
cluster::*> systemshell -node * -command "grep post_max_size /var/etc/php.ini"
Node: node01
post_max_size = 8M ; Jail setup script will change to 1G for non-vsim platforms
Node: node02
post_max_size = 4096M