"Error Connecting To Server" During Course Restore

"Error Connecting To Server" During Course Restore

by Megatrend Solution -
Number of replies: 3

I am getting this error frequently when restoring a course on Moodle version 3.8. The file is approximately 750MB and the server has been set as below:

  • post_max_size = 1500M
  • upload_max_filesize = 1500M
  • max_execution_time = 360
  • max_input_time = 360
Yet, the error keep on showing during the restore process.
Average of ratings: -
In reply to Megatrend Solution

Re: "Error Connecting To Server" During Course Restore

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators

Did you try higher max times, like 900?

This could also happen if the PHP memory limit of Moodle is too low, try 512 MB.

In reply to Megatrend Solution

Re: "Error Connecting To Server" During Course Restore

by Ken Task -
Picture of Particularly helpful Moodlers

Assuming MySQL/MariaDB ...

Might look at web service error logs to see if there any logs for 'MySQL server has gone away'.

See info on: https://docs.moodle.org/38/en/MySQL

max_allowed_packet

'SoS', Ken

In reply to Ken Task

Re: "Error Connecting To Server" During Course Restore

by Megatrend Solution -
I have tried the options given but no success.

I realised that during the restore, I/O usage on the web server entered danger state causing the process to terminate
Average of ratings: Useful (1)