Moodle 3.3.2 Error connecting to server during course upload

Re: Moodle 3.3.2 Error connecting to server during course upload

by Pals Pally -
Number of replies: 7

Ok, so i found this error in my error logs, how do i fix this?


SyntaxEditor Code Snippet

[Wed Sep 20 11:56:37.749271 2017] [fcgid:warn] [pid 27633:tid 140230833182464] [client 78.28.195.35:53949] mod_fcgid: HTTP request length 62914660 (so far) exceeds MaxRequestLen (62914560), referer: http://blah blah blah/blah/backup/restorefile.php?contextid=31

In reply to Pals Pally

Re: Moodle 3.3.2 Error connecting to server during course upload

by Ken Task -
Picture of Particularly helpful Moodlers

A quick Google search rendered this hit:

https://binaryone.com.au/how-to-fix-mod_fcgid-http-request-length-131619-so-far-exceeds-maxrequestlen-131072-error-on-ubuntu-12-04-lts-precise-pangolin-linux/

while it's about ubuntu 12.04 would think it should apply to newer versions of Ubuntu as well.

'spirit of sharing', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: Moodle 3.3.2 Error connecting to server during course upload

by Pals Pally -

I tried it too, modified fcgid.congf like this:


<IfModule mod_fcgid.c>

  FcgidConnectTimeout 20

  FcgidMaxRequestLen 1047527424

  <IfModule mod_mime.c>

    AddHandler fcgid-script .fcgi

  </IfModule>

</IfModule>


but it still wont work.

In reply to Pals Pally

Re: Moodle 3.3.2 Error connecting to server during course upload

by Pals Pally -

Maybe i have put this line in the wrong place or something? Im quite new to when it ocmes to servers...

In reply to Pals Pally

Re: Moodle 3.3.2 Error connecting to server during course upload

by Ken Task -
Picture of Particularly helpful Moodlers

Changes to config of web service are not in affect after editing .... must restart web service.

Also, not sure one should have a 'ifmod' included in another 'ifmod'.

Put:

<IfModule mod_mime.c>

    AddHandler fcgid-script .fcgi

  </IfModule>

out side the ifModule for mod_fcgid.c

They are like html .... beginning tag <ifModule x>  closed by a corresponding </ifModule>

Re-read the previous link.

'spirit of sharing', Ken

In reply to Ken Task

Re: Moodle 3.3.2 Error connecting to server during course upload

by Pals Pally -

Thank you guys for assistance! but i managed to solve this in a fiarly simple way:

For anyone whos interested, I managed to solve this problem by going into Webmin - Servers - apache Webserver, picked my virtual server for my website, went into Edit directives and changed the value of FcgidMaxRequestLen XXXXXXXX to the number i needed. And all uploads are now working smile

Average of ratings: Useful (2)
In reply to Pals Pally

Re: Moodle 3.3.2 Error connecting to server during course upload

by Ken Task -
Picture of Particularly helpful Moodlers

Congrats!  And this also for others who stumble upon this .... Webmin is a great tool for admin of a Linux server.   Perl based ... uses, by default, another port other than 80 and can/does allow the admin user to update Webmin itself.    When working with config of varous services, like Apache, Webmin actually edits the same config files found via command line.

While Webmin is a great tool, all tools may develop issues from time to time (and invariably when you need them to work) so it's probably a good idea to explore via command line what webmin did to those config files.   This increases your knowledge of what's where, etc. AND provides you 2 ways .... webmin interface ... and just in case it goes south, you still have command line. ;)

'spirit of sharing', Ken


Average of ratings: Useful (2)
In reply to Ken Task

Re: Moodle 3.3.2 Error connecting to server during course upload

by Kyu Ho Kim -

Hi! I have the same "Error connecting to server error" but I couldn't figure out.

No debugging error show up.  Please Help.


My environment.

Inmotion Hosting dedicated Server on CenOs7.0

Apache 2.4

PHP 7.0


moodle 3.3.2+