Tags/topics: 
3
Answers
Vote up!
1
Vote down!

File download fails every time

I'm trying to sell files on my website. Everything is set up, but when the user comes to download the file, the server kills the connection after a period of time. Sometimes the download gets to 20% sometimes 50% depending on the download rate but the connection always dies before the file finishes.

I've tried doing the download with DownThemAll and it comes up with a "Size mismatch" error when the download dies. I've looked at the logs and they say that a stop request has been received.

I've tested commerce with a small zip file and the download completes without trouble. My file is 118MB. Is it possible that there is some Apache setting which is interacting with the way that Commerce serves the file which causes the download to be cancelled after a certain period of time?

This issue is very frustrating so any help would be greatly appreciated.

Asked by: bensmiley
on August 29, 2012

Comments

Have you checked / posted to the issue queue for Commerce File?

- Ryan Szrama on August 31, 2012

3 Answers

Vote up!
0
Vote down!

I get this issue as well - it's not using Commerce File though, it's using a sandbox module I'm developing. I've experienced it on nginx and apache and it's generally when files get towards 1200MB. I'm using a private filesystem if it's similar for you.

I'm unsure whether it's drupal, php or apache that is limiting downloads. Downloading a file directly from the web root is fine actually which means that it's probably not an apache issue. How fast does yours download as it may be time based rather than size based...

Answer by: Anonymous (not verified)
Posted: Sep 10, 2012
Vote up!
0
Vote down!

I just managed to download a 6GB file from my server using hook_file_download and altering the PHP execution time.

See here for some more details!

The issue must have been PHP timing out and not really related to Drupal or apache.

Answer by: Anonymous (not verified)
Posted: Sep 11, 2012