Cannot backup huge course

Cannot backup huge course

by JC Dodo -
Number of replies: 8

Hi All,

I can backup small courses in my moodle. Whenever I try to backup the specific course with some videos, my browser gets me to "500 Internal Server Error". I have checked my apache logs and found this thing:

(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://myappsite.com/backup/backup.php
Premature end of script headers: backup.php, referer: http://myappsite.com/backup/backup.php

I have this part in my vhost configuration (pastebin.com/qwbZ7wcv) and php wrapper script (pastebin.com/wUAeLu0u).

This moodle have been running fine in Windows platform + IIS & MSSQL before. After I migrate it to Linux, it starts of getting errors.

Anyone could advise if there's any wrong in my configuration?

Thanks.

Average of ratings: -
In reply to JC Dodo

Re: Cannot backup huge course

by JC Dodo -

Anybody? I'm really stuck on this error and doesn't know what ingredients did I missed in the configuration file of php and apache. 

Thanks. 

In reply to JC Dodo

Re: Cannot backup huge course

by Ken Task -
Picture of Particularly helpful Moodlers

Would help to know a little more about your setup: Linux distro, PHP version, Apache version, etc. Remotely hosted or not?  Any 'special' things for PHP like SuPHP?

'spirit of sharing', Ken

In reply to Ken Task

Re: Cannot backup huge course

by JC Dodo -

Hi Ken,

This is my setup.

OS = Amazon Linux

Apache = httpd-2.2.22

PHP = php-5.3.15

I used mod_fcgid so that each moodle site will run in different username.

Moodledata are stored in NFS and shared with two web servers. 

Let me know if you have more question.

Thanks.

James

In reply to JC Dodo

Re: Cannot backup huge course

by Ken Task -
Picture of Particularly helpful Moodlers

Googling for error found this link:

http://www.heath-whyte.info/david/computers/mod_fcgid-timeouts-and-downloads

Might be close to your situation/solution.

'spirit of sharing', Ken

In reply to Ken Task

Re: Cannot backup huge course

by JC Dodo -

Hi Ken,

That's really solved my problem. That's the missing ingredient in my apache settings. I am not really good in googling the exact error and need to have patience.

Thanks Ken.

James

In reply to JC Dodo

Re: Cannot backup huge course

by sue sugizaki -

Hi,

Q1: how big is the file?

Q2: what is your max.upload size?

Q3: which version are you on?

 

FYI: http://moodle.org/mod/forum/discuss.php?d=209777#p914806

In reply to sue sugizaki

Re: Cannot backup huge course

by sue sugizaki -

Sorry, I missed the title. You try to back up courses, not restore them. So completely wrong reply.

In reply to sue sugizaki

Re: Cannot backup huge course

by JC Dodo -

Hi Sue,

1) I think more than 2.8G when I try to du -hs /moodledata/temp/backup/<random # & chars.> but it stops there because Im getting the stated above error in apache log but my browser is still processing.

2) in my php.ini

upload_max_filesize = 100M

max_file_uploads = 20

3) moodle version 2.2.2

Let me know if you have still question.

Thanks.

James