[[serverconnection,error]] with File upload

[[serverconnection,error]] with File upload

by Stacy Kimminau -
Number of replies: 11

I am using Moodle Version 2.5.5 

I get serverconnection,error when I try to add a file that is 30 MB or larger into any course. I have checked my server information,

I am using PHP Version 5.3.28

PHP setting; momory_limit: 128M
post_max_size: 800M
upload_max_filesize:800M
file_update: on

In Moodle I have the site wide upload set to 800 MB, the Course Maximum upload size is 800 MB. I have also set the Maximum size for new files to unlimited for both Admin and Instructors.

When I try to drag and drop I get the serverconnection,error and if I use the file picker the wheel spins but will not do anything else. It started doing this after we updated from 2.5.4 but we also moved Moodle over to a new server and we have had a few other bugs that we were able to get worked out but this is one I do not know how to fix.

Thank You,

Stacy

 

Average of ratings: -
In reply to Stacy Kimminau

Re: [[serverconnection,error]] with File upload

by Floyd Saner -

Sounds like a process timeout error.  Did you increase max_execution_time?  See http://docs.moodle.org/25/en/File_upload_size

Floyd

In reply to Floyd Saner

Re: [[serverconnection,error]] with File upload

by Stacy Kimminau -

We have the max_execution_time set at 300. It just seems odd that it would give me the error so quickly for it to be timing out, but then again I do not know a lot about servers. Do you think we should increase the max_execution_time?

 

-Stacy-

In reply to Stacy Kimminau

Re: [[serverconnection,error]] with File upload

by Mae Church -

Stacy

 

I get that message when the upload is asking for a zip file and my folder or file is not zipped. 

Mae

In reply to Mae Church

Re: [[serverconnection,error]] with File upload

by dawn alderson -

crumbs! Don't get me started about the illogical structure/stepped process and lack of affordances with zip files evil

could be to do with the text editor....and or server capacity.

that is it folks from me...others here are much more knowledgable, honestly! smile

Cheers,

Dawn

 

In reply to dawn alderson

Re: [[serverconnection,error]] with File upload

by triveni mergu -

i have done following changes when i got serverconnection,error while uploading a zip file

 

changes made in php.ini:

max_execution_time: 600

max_input_time: 600

post_max_size: 100M

upload_max_filesize: 100M

 

apache configuration file:

         timeout = 95(default is 65

 

Nginx configuration

client_max_body_size = 100M;

follow below mentioned link to configure nginx

(http://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/)

then i can unable to upload a zip file successfully.

In reply to Stacy Kimminau

Re: [[serverconnection,error]] with File upload

by Floyd Saner -

Stacy,

Without being able to dig through your PHP and Moodle settings, I don't have much more to offer.  Here are next steps I would take:

  1. Try a different browser - I have seen this suggested in several Moodle forums related to file upload issues.
  2. Stop and restart your server.  When I edit php.ini on my servers the settings do not take effect until I stop and restart the server.
  3. Be certain your Moodle system and course max filesize settings are correct.  Course settings can override the system setting.
  4. Be certain you edited the correct php.ini file.  Your server may have several php.ini files  You can check the settings Moodle is using in Site administration ... Server ... PHP info
  5. Turn on debugging and see if you get more detailed error messages.
  6. Search Moodle forums for similar problems.  I found one about using Pleskhttps://moodle.org/mod/forum/discuss.php?d=220205

Floyd

In reply to Floyd Saner

Re: [[serverconnection,error]] with File upload

by Brian Peat -

I know this is an old post, but I had this same issue today on a moodle site and it ended up being the file name that was the issue. I removed all the spaces and even an apostrophe from the file name and it uploaded without any errors. 

Average of ratings: Useful (1)
In reply to Stacy Kimminau

Re: [[serverconnection,error]] with File upload

by Stacy Kimminau -

Thank you all for your help. I have been having the Instructors upload their files to Google Drive and then link them in Moodle, but I can now have them upload their files zipped up into Moodle if they are larger then 30 MB.

 

-Stacy-

In reply to Stacy Kimminau

Re: [[serverconnection,error]] with File upload

by triveni mergu -
Hi, you can upload zip file upto 100MB, if you give 100MB in your configuration files
In reply to Stacy Kimminau

Re: [[serverconnection,error]] with File upload

by Gabby Lang -

Hi,

Although this link is old, I'd like to contribute for anyone else looking at this issue, that another setting in IIS needs to be changed:

Go to IIS Manager, Request Filtering, Edit Feature Settings, set Maximum Allowed Content Length to 300000000 (300 MB).

This solved the problem for me.


Gabe