Quantcast
Channel: Backup and restore
Viewing all 6240 articles
Browse latest View live

How to restore large course backup of moodle 2.1 in to new course

$
0
0
by nilesh k.  

Hi,

Any one Know how to restore large course backup (like more than 250 mb) of moodle in to new course.

Our online server service provider give upload_max_filesize limlit is 10M & max_execution_time = 30.

so whenever we try to restore course some time we get blacnk screen while restoring is in progress & some time displaying error like "can't read/write to database".

Can anybody help me to solve this problem.

Thanks for help. smile


Re: Error 500 server restoring course moodle 2.2+php 5.3.8

$
0
0
by Belinda Caulfield.  

I am having a similar problem when backing up a new course in Moodle 2.2.3 and restoring it to a new course, the following error is displayed: Error writing to database Error writing to database More information about this error Debug info: Duplicate entry '10010150' for key 'mdl_subpsect_sec_uix' INSERT INTO mdl_subpage_sections (sectionid,pageorder,stealth,subpageid) VALUES(?,?,?,?) [array ( 0 => 10010150, 1 => '1', 2 => '0', 3 => 2576, )] Stack trace: line 397 of /lib/dml/moodle_database.php: dml_write_exception thrown line 893 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end() line 935 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw() line 72 of /mod/subpage/backup/moodle2/restore_subpage_stepslib.php: call to mysqli_native_moodle_database->insert_record() line 131 of /backup/util/plan/restore_structure_step.class.php: call to restore_subpage_activity_structure_step->process_subpage_sections() line 103 of /backup/util/helper/restore_structure_parser_processor.class.php: call to restore_structure_step->process() line 125 of /backup/util/xml/parser/processors/grouped_parser_processor.class.php: call to restore_structure_parser_processor->dispatch_chunk() line 91 of /backup/util/helper/restore_structure_parser_processor.class.php: call to grouped_parser_processor->postprocess_chunk() line 148 of /backup/util/xml/parser/processors/simplified_parser_processor.class.php: call to restore_structure_parser_processor->postprocess_chunk() line 92 of /backup/util/xml/parser/processors/progressive_parser_processor.class.php: call to simplified_parser_processor->process_chunk() line 169 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser_processor->receive_chunk() line 253 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->publish() line ? of unknownfile: call to progressive_parser->end_tag() line 158 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse() line 137 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->parse() line 105 of /backup/util/plan/restore_structure_step.class.php: call to progressive_parser->process() line 153 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute() line 187 of /backup/moodle2/restore_activity_task.class.php: call to base_task->execute() line 148 of /backup/util/plan/base_plan.class.php: call to restore_activity_task->execute() line 157 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute() line 315 of /backup/controller/restore_controller.class.php: call to restore_plan->execute() line 147 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan() line 46 of /backup/restore.php: call to restore_ui->execute() Output buffer:

Skipping 'database' enrolment plugin. Will be implemented before 2.0 release
  • line 1361 of /backup/moodle2/restore_stepslib.php: call to debugging()
  • line 131 of /backup/util/plan/restore_structure_step.class.php: call to restore_enrolments_structure_step- >process_enrol()
  • line 103 of /backup/util/helper/restore_structure_parser_processor.class.php: call to restore_structure_step->process()
  • line 125 of /backup/util/xml/parser/processors/grouped_parser_processor.class.php: call to restore_structure_parser_processor->dispatch_chunk()
  • line 91 of /backup/util/helper/restore_structure_parser_processor.class.php: call to grouped_parser_processor->postprocess_chunk()
  • line 148 of /backup/util/xml/parser/processors/simplified_parser_processor.class.php: call to restore_structure_parser_processor->postprocess_chunk()
  • line 92 of /backup/util/xml/parser/processors/progressive_parser_processor.class.php: call to simplified_parser_processor->process_chunk()
  • line 169 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser_processor->receive_chunk()
  • line 253 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->publish()
  • line ? of unknownfile: call to progressive_parser->end_tag()
  • line 158 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse()
  • line 137 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->parse()
  • line 105 of /backup/util/plan/restore_structure_step.class.php: call to progressive_parser->process()
  • line 153 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute()
  • line 148 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
  • line 157 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
  • line 315 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
  • line 147 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
  • line 46 of /backup/restore.php: call to restore_ui->execute()
It was working fine up until yesterday lunch time and it started displaying the error. Restoring Moodle 1.9 courses is working fine.

Re: How to restore large course backup of moodle 2.1 in to new course

$
0
0
by Emma Richardson.  

You need to request your service provider to raise the upload and post limits to be large enough to cover your course.  Otherwise, you need to backup your course into multiple smaller files and upload that way.  e.g. Just back up one week/topic at a time.

Backup Restore fails for courses from clean 2.3.1+ to 2.3.1+ (upgraded from 1.9)

$
0
0
by Geoffrey Rowland.  

Hi folks

Am failing at the last step of restoring a course from a clean install of 2.3.1+ to an upgraded 2.3.1 (from 1.9, originally 1.6, 1.5...) with following error.

Debug info: Unknown column 't.intro' in 'field list'
SELECT t.id, t.intro
FROM mdl_book t
JOIN mdl_backup_ids_temp b ON b.newitemid = t.id
WHERE b.backupid = ?
AND b.itemname = ?
[array (
0 => '7322fc020187cfd8d29fe153d693f88f',
1 => 'book',
)]
Error code: dmlreadexception
Stack trace:
  • line 407 of /lib/dml/moodle_database.php: dml_read_exception thrown
  • line 822 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 103 of /backup/util/helper/restore_decode_content.class.php: call to mysqli_native_moodle_database->get_recordset_sql()
  • line 72 of /backup/util/helper/restore_decode_content.class.php: call to restore_decode_content->get_iterator()
  • line 81 of /backup/util/helper/restore_decode_processor.class.php: call to restore_decode_content->process()
  • line 424 of /backup/moodle2/restore_stepslib.php: call to restore_decode_processor->execute()
  • line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_decode_interlinks->define_execution()
  • line 153 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
  • line 163 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
  • line 157 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
  • line 315 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
  • line 147 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
  • line 46 of /backup/restore.php: call to restore_ui->execute()

Presumably a database inconsistency In mdl_book?) due to the upgrade route.

Any suggestions?

Re: Backup Restore fails for courses from clean 2.3.1+ to 2.3.1+ (upgraded from 1.9)

$
0
0
by Geoffrey Rowland.  

Now solved. Actually, the debug was very informative, but in case it helps anyone else.

A quick comparison of the mdl_book table of each instance using phpMyAdmin showed that the intro field (column) was missing from the upgraded version.

As we only had one or two earlier uses of the book module (and we have an archive 1.9 site with these on), I simply deleted it from the Moodle Manage activities Admin interface, then let it reinstall from the Notifications link to give the new mdl_book table with an intro field.

Now courses, from the other  2.3.1 instance, restore fine.

error when restoring 2.1 course to 2.3

$
0
0
by Brandon Hutchins.  

error/wrong_setting_level_moodle_backup_xml_file

More information about this error

Debug info:
Error code: wrong_setting_level_moodle_backup_xml_file
$a contents: local
Stack trace:
  • line 212 of \backup\util\helper\backup_general_helper.class.php: backup_helper_exception thrown
  • line 201 of \backup\util\ui\restore_ui_stage.class.php: call to backup_general_helper::get_backup_information()
  • line 67 of \backup\restore.php: call to restore_ui_stage_confirm->display()

Re: How to restore large course backup of moodle 2.1 in to new course

$
0
0
by al tobing.  

Hi Niles, I have not tried it yet because I host my moodle on my own server. But just sharing my thoughts.

How about striping out the big files first before creating a backup and then restore it. Without big files your course should be less than 10MB. If it's working, then create a repository to which you can ftp you large movie/files/presentation, and then re-link it again afterwards.

Just a thought smile

Re: How to restore large course backup of moodle 2.1 in to new course

$
0
0
by Visvanath Ratnaweera.  

Hi Niles

Sorry, I don't have a satisfactory answer, not for Moodle 2.x.

The other day I was faced with the same problem. I had to restore a big course backup in my Moodle server. The backup file was in a (different) ftp server. But downloading it to my local machine and uploading to back in to the Moodle server was not an option, I am on holidays in a remote place and my whacky mobile internet connection wouldn't have allowed it, even if I raised the file upload limit. Luckily it was Moodle 1.9. I logged into the Moodle machine over SSH and did the following:
$ cd /path/to/moodledata/1
$ wget ftp://the.host.name/path/to/backup-something.zip

Then logged into Moodle as admin restored the backup into a new course.

How does one do that in Moodle 2.x? Should this work http://docs.moodle.org/21/en/File_system_repository#Creating_folders_for_your_file_system_repositories ?

Re: restore course created with moodle 1.8 to moodle 2.2

$
0
0
by Donald Ardiel.  

I have tried to restore a 1.8 platform course into 2.2.3 and I recevie the following error message:

"error/tmp_backup_directory_not_found"

When I click the "More information about this error" link, I am taken to a help page on moodle.org but it page is blank.

Is this type of restore possible?

Re: How to restore large course backup of moodle 2.1 in to new course

$
0
0
by Bill Kopf.  

Emma,

We do not have a service provider. we are running Moodle 2.2.3 on our own server. I have a backup for a computer course that is 1.14 GB The MBZ file (backup-moodle2-course-ist2300.mc-fa0111-20120521-2357) is the only file I have. The old course has been deleted and when I try to restore it from this MBZ file I am able to upload as the first step of the restore process. When I push the RESTORE button it sits and churns for hours. We let it run assuming that it was so large.

I have raised the limit to 2 GB and set the limit as mentioned in this post thread to 0 also. I still have no success.

Is it possible something is corrupted and if so is there a way to extract information. The course was taken down before a student was able to complete requirements to change an incomplete grade.

Do I need to repost this to everyone generally in this forum? Any suggestions?

I appreciate any help or sympathy.

Re: Backup and Restore only users

$
0
0
volgens Colin Fraser.  

Have you spoken to HostGator about this yet?

As I understand it, and please let me know if this is not correct, shared servers allocate a space allottment to a user, you cannot go over that allottment, you try and you get errors - lots of them. Could this be a cause? Have you checked your server logs? What do they say? 

One way around these kinds of issues is that when you upgrade your Moodle, you do it over the top of your existing Moodle, that is, you delete all your Moodle files, not the database, not the moodledata folder and definitely NOT the config.php file, just the moodle php files. You then unzip the newer version over the top of the now blank Moodle. Log in as per normal and it should begin the upgrade on its own. I have done this from a 1.9.13 to a 2.2.3 and it worked, but it did not have that many users, 112 right now, and less than 60 courses. Worked well actually, much to my surprise, but that is not a shared server... 

Re: Restoring a course from 1.9 to 2.3 including user data

$
0
0
volgens Ludovico Sassarini.  

Just a quick clarification about http://www.conversionthingy.net/ : it doesn't convert user data, only resources. Basically, it's only intended to convert old 1.9 zip backup file to 2.0 mbz backup files. But from 2.1 this process is completely managed by moodle itself. So, altough the programm works well in the conversion process, you shouldn't need this program to restore a backup file from 1.9 to 2.1 upwards.

restoredaccountinfo

$
0
0
volgens Michael Chan.  

Restored account

This account was imported from another server and the password has been lost. To set a new password by email, please click "Continue"

This is the message on restoring accounts. We want to update the text in the message. How do we do that?

I see the text is part of lang/en/moodle.php but changing this did not help. 

Automated Backup Failes -

$
0
0
volgens Fred Weiss.  

This error occurs on our automated backups.

We are using MS-SQL 2008 R2. We are using the sa (SQL admin) account to connect to moodle so should have full priviliege to create/delete tables.

In the Course backup log it just says Error next to the course.  There is no link on the course name to go to a more detailed log which I have read should happen.

Any ideas appreciated.

[01-Aug-2012 23:11:31 UTC] backup_auto_failed_on_course 19648 
[01-Aug-2012 23:11:31 UTC] Exception: ddltablealreadyexists backup_ids_temp
[01-Aug-2012 23:11:31 UTC] Debug:
[01-Aug-2012 23:11:33 UTC] Potential coding error - existing temptables found when disposing database. Must be dropped!

Re: error/cannot_finish_ui_if_not_setting_ui

$
0
0
volgens Fred Weiss.  

I am getting the same error when trying to backup on about half of our courses.  I do not know if they are all (there are over 1,000) upgraded 1.9 courses now running on 2.2.4+ but the first couple I have checked are.

The backup works successfully if I do not include users.

error/cannot_finish_ui_if_not_setting_ui

Stack trace:
  • line 161 of \backup\controller\backup_controller.class.php: backup_controller_exception thrown
  • line 110 of \backup\util\ui\backup_ui.class.php: call to backup_controller->finish_ui()
  • line 89 of \backup\backup.php: call to backup_ui->execute()

Re: upgrade 1.9 to 2.2, then backup a course, but fails (error/baseelementchildnameconflict)

$
0
0
volgens Julian Ridden.  

This has been fixed in the current version of the plugin for 2.3

Re: restoredaccountinfo

Error 500 when restoring course

$
0
0
volgens Nick Oliver.  

Hi,


I am in the process of moving from Moodle 1.9 to Moodle 2.3. As part of this I am backing up and restoring old courses. Many of my courses have copied across fine onto the new system. I have 60+ courses that are failing to restore. When I try and restore the courses they come up with the 500 error on the browser. 

 

When I attempt to restore the backup I get to Step 2 and choose to delete the content of the course. When I hit continue the 500 error comes up (this is the same in all courses I tried,) but with the other courses I was able to press F5 to continue. This doesnt work on these 60 courses though so I am unable to continue.

 

My environment is: Server 2008R2, IIS 7.0 and MS SQL 9.0, PHP 5.3.13 and all are fine for the current environment we are running.

 

If anyone can provide any advice it would be much appreciated! I have been wracking my brains all week to try and sort this, I have tried deleting some stuff out of the backups, using small backups, large backups, remaking the backups, system made backups and nothing works! I would rather not have to recreate all 60 courses from the ground up!

 

Thanks. Nick. 

Restore error

$
0
0
volgens kristina p.  

I am trying to upload a back up from a different moodle site to my account.  It uploads, but as soon as I hit restore I get a white screen.  I turned on the debugger and got "Fatal error: maximum execution time of 30 seconds exceeded in _______ on line 126."   Any suggestions?  And yes, I am a complete noob!

Thanks!

Re: Restore error

$
0
0
volgens Nick Oliver.  

Morning! 

 

Now I think this is actually something I may be able to help with, this is all down to the time allowed to upload the file by PHP. Now I think I am right in thinking here that if you follow these steps you should be able to change it and it "should" work. 

 

1. Go in to your Moodle folder (or the folder where your Moodle code is,)

2. Go to your PHP folder and find php.ini

3. If you look for line 126 you should have a max execution limit on there of the 30 seconds, if it is a big file I would bung a few 000s on the end of this to allow it upload this file but remember to change it back afterwards.

ALSO PLEASE ENSURE YOU BACKUP OR MAKE A COPY OF PHP.INI before you make ANY changes.

 

Hope this helps.

 

Thanks. Nick. 

Viewing all 6240 articles
Browse latest View live


Latest Images