An error occurs will trying to Import a Measurement over 250MB



Overview of the Issue

This issue occurs in the following circumstances:

  1. A vFunction organization attempts to import a Measurement that is over 250MB using the vFunction Server UI
  2. The UI generates an unexpected error
  3. Attempting to search the Vfapi Containers for an Error during the API call ../import shows that the Import request never reached the Vfapi Containers
  4. 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:

  1. SSH to the vFunction Server VM
  2. Access the vFunction-Nginx Container in a Bash Session
sudo docker exec -it vfunction-nginx bash
  1. Modify the nginx.conf
vi /etc/nginx/nginx.conf

### Before Change
client_max_body_size 250M;

### After Change
client_max_body_size 300M;
  1. Reload Nginx
nginx -s reload
  1. Import the Measurement using the vFunction Server UI as expected