If you like DNray Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

External File Upload Timeouts

Started by Davidadams, Nov 15, 2024, 12:15 AM

Previous topic - Next topic

DavidadamsTopic starter

Configuring offsite data repositories on the DLE platform necessitates leveraging an auxiliary field for file ingestion. Upon reaching maximum capacity on the upload gauge, the file is seamlessly migrated to the external storage solution.

However, the file transfer process exceeds the 60-second threshold, triggering the appearance of an 'HTTP Error' notification.

What strategies can be employed to augment the file upload timeframe to the remote server?

Notably, post-error, accessing the storage repository via FTP reveals that the file upload process remains ongoing, indicating a disconnect between the frontend error message and the backend file transfer status.
  •  


ataek

One potential strategy is to utilize a chunked file upload approach, where the file is divided into smaller segments and uploaded concurrently, reducing the overall transfer time. This can be achieved through the use of modern web technologies such as WebSockets or HTTP/2.

Another approach would be to optimize the server-side configuration to handle larger file uploads, by increasing the maximum allowed upload size and adjusting the timeout settings. This can be done by tweaking the server's PHP settings, such as increasing the upload_max_filesize and post_max_size directives.
  •  

DonnaJones

You'll want to investigate and adjust the max execution time in your PHP settings to prevent timeouts and ensure seamless script execution. This can be achieved by modifying the php.ini file or leveraging a control panel like cPanel or Plesk. For instance, you might want to set the max execution time to 300 seconds or higher, depending on your specific requirements.
Additionally, consider fine-tuning other parameters such as memory limit, upload max filesize, and post max size to prevent errors and enhance overall server efficiency.
  •  

ucourtneypaq

Initiate a thorough examination of the server logs, specifically those related to file reception. It appears that the FTP connection was severed due to the sending process reaching its completion, likely triggered by PHP's inherent timeouts, such as the set_time_limit() function, which dictates the maximum execution time for a script. This termination may have been caused by the script exceeding the allocated time, resulting in an abrupt disconnection.

To mitigate this issue, consider implementing a more robust error handling mechanism, such as utilizing PHP's set_error_handler() function, to ensure a more graceful termination of the FTP connection. Furthermore, it may be beneficial to review the server's configuration, including the FTP server's settings, to optimize the connection timeout values and prevent premature disconnections.
  •  


If you like DNray forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...