[3.7] Maximum file size for restoring course

[3.7] Maximum file size for restoring course

by Richard van Iwaarden -
Number of replies: 12
Picture of Particularly helpful Moodlers

I have a course backup that is 6 Gigabyte.

Now I have tries to restored this in multiple Moodle instances on different servers. It never succeeded.

Sometimes I get to 99% green bar but 100% failed. On other servers I get a Json error.

Moodle does not create useful log files when a restore fails.

Is there a max file size for course restoration? Because if there is, I need to know about it. I now have many course backups that I can't restore.

Average of ratings: -
In reply to Richard van Iwaarden

Re: [3.7] Maximum file size for restoring course

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
It normally depends on the file_upload_size and post_max_size in your php config and then some timeout settings as well. Sometimes I have better luck if I upload the file to something like Google drive and then set that up as a repository. I was having trouble with timeouts (I think) trying to restore a large file and restoring from Drive repository allowed it to restore successfully.
In reply to Richard van Iwaarden

Re: [3.7] Maximum file size for restoring course

by Ken Task -
Picture of Particularly helpful Moodlers

Check web server error logs for 'MySQL has gone away' errors.

As well as:

mysql> show variables like 'max_allowed_packet';

'SoS', Ken

In reply to Ken Task

Re: [3.7] Maximum file size for restoring course

by Richard van Iwaarden -
Picture of Particularly helpful Moodlers
Thanks both for your reply. I upload the course file to the repository on the same Moodle server, so this is not the problem. I can also get through the restore screens until the restoring procedure starts.
In reply to Richard van Iwaarden

Re: [3.7] Maximum file size for restoring course

by Ken Task -
Picture of Particularly helpful Moodlers

'...until the restoring procedure starts'

That's when max packets would come into play.

So, again, web server error logs?   MySQL has gone away?

Query for DB settings for max allowed packets is?

In moodledata/temp/backup/ there should be folders with long names ... inspect one of them.  One of the very last things done ... clean up of that directory - erasing contents then directory but only after restore has completed successfully.  Ownerships/permissions?

Task or cron job task for cleaning up temp areas romping on a restore process?

Are locks being cleared?

Turn on debug!???

'SoS', Ken


In reply to Ken Task

Re: [3.7] Maximum file size for restoring course

by Richard van Iwaarden -
Picture of Particularly helpful Moodlers
Thanks Ken, I will follow these pointers.

To be clear: I get to the restoring screen, 99% restore is green... then 100% restore is failed. I will check with the tech department for further info
In reply to Ken Task

Re: [3.7] Maximum file size for restoring course

by Richard van Iwaarden -
Picture of Particularly helpful Moodlers

Took a while, but we found some more info using Moosh.

logs

Problem seems to be the mod_choicegroup plugin.

In reply to Ken Task

Re: [3.7] Maximum file size for restoring course

by Richard van Iwaarden -
Picture of Particularly helpful Moodlers

More problems with the plagiarism plugin from turn it in:

turnitin

In reply to Richard van Iwaarden

Re: [3.7] Maximum file size for restoring course

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Are you restoring on the same site - if not, does the site you are restoring have those plugins installed?  Have you checked for updates on the plugins?
In reply to Emma Richardson

Re: [3.7] Maximum file size for restoring course

by Richard van Iwaarden -
Picture of Particularly helpful Moodlers
Hi Emma,

I'm restoring on the same site with same plugins. All plugins are latest versions.
In reply to Richard van Iwaarden

Re: [3.7] Maximum file size for restoring course

by Ken Task -
Picture of Particularly helpful Moodlers

maybe??
https://github.com/ndunand/moodle-mod_choicegroup/issues/

https://github.com/ndunand/moodle-mod_choicegroup/issues/136

https://moodle.org/plugins/plagiarism_turnitin
"This plugin shares code with the new mod_turnitintool2 plugin which must be installed at the same time."

This plugin is part of set Turnitin.
https://moodle.org/plugins/browse.php?list=set&id=52

'SoS', Ken

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

Re: [3.7] Maximum file size for restoring course

by Richard van Iwaarden -
Picture of Particularly helpful Moodlers

Seems that Turnitin changed the name of their plugin. Therefor, I did not receive any plugin update notifications.

I now updated to their latest version. Let's hope these errors will be solved.

Also, I posted a new issue with mod_chiocegroup with the above sceenshot.

Thanks again Ken for helping and sharing smile

In reply to Richard van Iwaarden

Re: [3.7] Maximum file size for restoring course

by Marina Dibrova -
Hi Richard,

Maryna from the Turnitin Team here.
Were you able to solve the issues described?
I highly recommend getting in touch with our Support Team in such cases for them to double-check everything on our side. They could be of great benefit to you.
Please visit our help center to find answers to your question: https://supportcenter.turnitin.com/s/. If you’re still having issues, please email us at tiisupport@turnitin.com. We are always happy to assist you.