Virtual Learning Platforms Thread, Problems with large SCORM files on Moodle in Technical; I'm having difficulties uploading large (200MB-1.9GB) SCORM files to my Moodle (2.4.1-weekly on a 6GB Linux VPS).
It appears to ...
22nd January 2013, 10:19 AM #1
- Rep Power
Problems with large SCORM files on Moodle
I'm having difficulties uploading large (200MB-1.9GB) SCORM files to my Moodle (2.4.1-weekly on a 6GB Linux VPS).
It appears to be successfully uploading the SCORM file, through the file picker. This was the first hurdle I overcame - by tweaking the PHP settings, e.g. upload_max_filesize, etc. The problem occurs when I get to the final "Save and Return" button. It spends 1-2 mins loading/processing/thinking about it, but finally ends up returning an "Error: zero-sized reply" message.
This issue affects all the large (200MB+) SCORMs I have, including from different producers. SCORMs smaller than 150MB have been successfully installed, including on the most recent Moodle 2.4.1+.
I've been trying to debug this for so long I cannot see the wood for the trees anymore. It's an issue that gets raised again and again on the Moodle forum, but never properly answered. Does anyone have an insight into this problem, or have any helpful suggestions.
22nd January 2013, 10:26 AM #2
What is max_post_size set in your php config?
Originally Posted by mhathaway
I could be timeout on upload, have a look at execution timeout.
22nd January 2013, 11:04 AM #3
I've been having the same issue on 2.3 - the upload works fine then it takes ages to unpack it.
My theory is its because they changed from the unzip utility in the O/S to a php one that doesn't seem as efficient.
The 'workaround' (assuming you php.ini is correct) is just to leave it unpacking and letting it error - it does eventually unpack larger SCORM files.
You might need to increase the time you allow scripts to run as well.
22nd January 2013, 11:22 AM #4
- Rep Power
post_max_size is 2048M
upload_max_filesize is 2048M
max_execution_time is 60
I'm not sure the max_execution_time is applicable though, because it definitely spends longer than 60-secs before it times out. As I'm already clutching at straws, I will try doubling the execution time.
22nd January 2013, 11:38 AM #5
I kept increasing max_execution_time, until it worked. I'm on about 15min now!
22nd January 2013, 04:44 PM #6
You might also hit problems with files approaching 2GB due to PHP's x86 limitations.
We suffer many headaches with courses exceeding 2GB!
22nd January 2013, 04:57 PM #7
- Rep Power
I followed CyberNerd's advice and kept increasing the max_execution_time until it worked. 15mins was correct.
22nd January 2013, 05:11 PM #8
You can always force moodle to use an external zip application
Originally Posted by CyberNerd
under Administration > Server > System Paths, you can set the path the zip executable (if installed)
On linux it would be /usr/bin/zip
On Windows it would be c:\program files\gnuwin32\bin\zip.exe
22nd January 2013, 06:00 PM #9
Originally Posted by penfold_99
The zip file path is not in 2.3. Did they put it back in on 2.4? I hope so!
22nd January 2013, 07:00 PM #10
Thanks to penfold_99 from:
CyberNerd (22nd January 2013)
22nd January 2013, 07:06 PM #11
Thanks - that looks like a much better fix.
By IT_Man_Dan in forum Web Development
Last Post: 6th October 2011, 01:55 PM
By _techie_ in forum O/S Deployment
Last Post: 24th February 2010, 12:29 PM
By aliv25 in forum General Chat
Last Post: 2nd September 2008, 12:08 PM
By wadeeuk in forum How do you do....it?
Last Post: 14th November 2007, 12:00 AM
By Kyle in forum Educational Software
Last Post: 9th November 2007, 09:43 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread