← Back to team overview

mahara-contributors team mailing list archive

[Bug 1914715] Re: Export of large files timing out after 10 seconds

 

I'm marking this as a wishlist item as it would be good to have a look
at the export and how to make it more efficient and less error prone for
large portfolios. I guess for the time being you could mitigate it by
increasing the time limit.

Ghada, was this an export done via the queue or direct?

** Changed in: mahara
       Status: New => Confirmed

** Changed in: mahara
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1914715

Title:
  Export of large files timing out after 10 seconds

Status in Mahara:
  Confirmed

Bug description:
  Mahara 20.10.0
  OS: Linux 16.04 (PHP 7.0)
  DB: Postgres
  Browser: FF and Chrome

  
  When a user exports a collection with a very large file to write during the export, the process times out after 10 seconds: Maximum execution time of 10 seconds exceeded

  
  This is the error:
  Feb  5 14:03:28 mahara_prod: 2021/02/05 14:03:28 [error] 227#227: 
  *17943 FastCGI sent in stderr: 
  "PHP message: PHP Fatal error:  Maximum execution time of 10 seconds exceeded in /var/www/site/export/lib.php on line 986" while reading response header from upstream, 
  request: "POST /export/download.php HTTP/1.1", 
  upstream: "fastcgi://unix:/var/run/php-fpm7.sock:", 

  
  This is caused by 'set_time_limit(10);' in /htdocs/export/download.php line 63.

  If the file takes longer than 10 seconds to write out to the
  directory, the whole process fails.

  Unfortunately, I cannot provide the file as we do not have permission
  to do so.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1914715/+subscriptions


References