ONTAP image upload failure when upgrade ONTAP version via System Manager
- Views:
- 549
- Visibility:
- Public
- Votes:
- 0
- Category:
- system-manager
- Specialty:
- core
- Last Updated:
- 6/12/2024, 5:18:02 AM
Applies to
- ONTAP 9.7P8
- ONTAP 9.7P23
- NetApp ONTAP System Manager
Issue
- When attempting to upgrade a cluster from ONTAP 9.7P8 to 9.7P23 with a local software image upload from System Manager, the image upload fails with the following error messages:
In System Manager :
The request body must have content type multipart/form-data with a field named "file" containing the file to upload.
In Ems log :
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".
- The
/mroot/etc/upload
directory has a size of 4GB, and there are no other files in this folder. It should be able to accommodate the 9.7P23 image file, which is 2.33GB.
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
- Enable debug and collect PHP logs in the System Manager, it shows an error that the image file exceeds the limit for PHP uploads of 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.
- Check the value of
post_max_size
, the value on the cluster management LIF's node 1 which System Manager communicates with is only 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