+ Post New Thread
Results 1 to 11 of 11
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 ...
  1. #1

    Join Date
    Jan 2013
    Location
    Cambridge
    Posts
    6
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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.

  2. #2
    penfold_99's Avatar
    Join Date
    Feb 2008
    Location
    East Sussex
    Posts
    994
    Thank Post
    60
    Thanked 166 Times in 118 Posts
    Rep Power
    68
    Quote Originally Posted by mhathaway View Post
    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.
    What is max_post_size set in your php config?

    I could be timeout on upload, have a look at execution timeout.

  3. #3


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    340
    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.

  4. #4

    Join Date
    Jan 2013
    Location
    Cambridge
    Posts
    6
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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.

  5. #5


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    340
    I kept increasing max_execution_time, until it worked. I'm on about 15min now!

  6. #6
    InterwebsGuy's Avatar
    Join Date
    Jan 2011
    Posts
    238
    Thank Post
    61
    Thanked 26 Times in 26 Posts
    Rep Power
    12
    You might also hit problems with files approaching 2GB due to PHP's x86 limitations.

    We suffer many headaches with courses exceeding 2GB!

  7. #7

    Join Date
    Jan 2013
    Location
    Cambridge
    Posts
    6
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I followed CyberNerd's advice and kept increasing the max_execution_time until it worked. 15mins was correct.

  8. #8
    penfold_99's Avatar
    Join Date
    Feb 2008
    Location
    East Sussex
    Posts
    994
    Thank Post
    60
    Thanked 166 Times in 118 Posts
    Rep Power
    68
    Quote Originally Posted by CyberNerd View Post
    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.
    You can always force moodle to use an external zip application

    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

  9. #9


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    340
    Quote Originally Posted by penfold_99 View Post
    You can always force moodle to use an external zip application

    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

    The zip file path is not in 2.3. Did they put it back in on 2.4? I hope so!

  10. #10
    penfold_99's Avatar
    Join Date
    Feb 2008
    Location
    East Sussex
    Posts
    994
    Thank Post
    60
    Thanked 166 Times in 118 Posts
    Rep Power
    68
    @CyberNerd.

    Have a look at this plugin,

    https://moodle.org/plugins/view.php?...al_externalzip

    It puts the option back.

  11. Thanks to penfold_99 from:

    CyberNerd (22nd January 2013)

  12. #11


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    340
    Thanks - that looks like a much better fix.



SHARE:
+ Post New Thread

Similar Threads

  1. Problems with installing HESK helpdesk on IIS 7
    By IT_Man_Dan in forum Web Development
    Replies: 3
    Last Post: 6th October 2011, 01:55 PM
  2. [WDS] Domain Join Problem with Imageunattend.xml file for image
    By _techie_ in forum O/S Deployment
    Replies: 10
    Last Post: 24th February 2010, 12:29 PM
  3. Problems with Football Manager 2008 on Vista Laptop
    By aliv25 in forum General Chat
    Replies: 15
    Last Post: 2nd September 2008, 12:08 PM
  4. Problems with My Docs Sync on laptop.
    By wadeeuk in forum How do you do....it?
    Replies: 6
    Last Post: 14th November 2007, 12:00 AM
  5. Problem with Sims Lesson Monitor on newly imaged Computer
    By Kyle in forum Educational Software
    Replies: 0
    Last Post: 9th November 2007, 09:43 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •