An error occurs will trying to Import a Measurement over 250MB
Overview of the Issue
This issue occurs in the following circumstances:
- A vFunction organization attempts to import a Measurement that is over 250MB using the vFunction Server UI
- The UI generates an unexpected error
- Attempting to search the Vfapi Containers for an Error during the API call ../import shows that the Import request never reached the Vfapi Containers
- The Nginx Container logs displays the following error
/var/log/vfunction/archive/nginx/buffer.b621379f53eb762781daaa2114cb96dec.log:48:
2024/09/03 14:11:46 [error] 16#16: *4 client intended to send too large body:
278891004 bytes,
client: 172.31.0.204,
server: ,
request: "POST /api/v1/measurements/import HTTP/1.1",
host: "172.31.81.154"
Solution
The following steps can be used to resolve this issue:
- SSH to the vFunction Server VM
- Access the vFunction-Nginx Container in a Bash Session
sudo docker exec -it vfunction-nginx bash
- Modify the nginx.conf
vi /etc/nginx/nginx.conf
### Before Change
client_max_body_size 250M;
### After Change
client_max_body_size 300M;
- Reload Nginx
nginx -s reload
- Import the Measurement using the vFunction Server UI as expected