Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: Course Restore not working

$
0
0
by jeff mayer.  

I finally got some information on what is happening. I did a restore from the CLI, getting a foreign key issue, any ideas on a resolution?

Error code: generalexceptionmessage
* line 105 of /admin/cli/restore_backup.php: moodle_exception thrown

!!! Exception - Error writing to database (Cannot add or update a child row: a foreign key constraint fails (`moodledb`.`mdl_enrol`, CONSTRAINT `fk_mdl_roleid` FOREIGN KEY (`roleid`) REFERENCES `mdl_role` (`id`))
INSERT INTO mdl_enrol (enrol,status,courseid,enrolstartdate,enrolenddate,timemodified,timecreated,sortorder,name,enrolperiod,expirynotify,expirythreshold,notifyall,password,cost,currency,roleid,customint1,customint2,customint3,customint4,customint5,customint6,customint7,customint8,customchar1,customchar2,customchar3,customdec1,customdec2,customtext1,customtext2,customtext3,customtext4) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => 'guest',
1 => '1',
2 => '1147',
3 => '0',
4 => '0',
5 => '1661802087',
6 => '1661802087',
7 => '1',
8 => NULL,
9 => '0',
10 => '0',
11 => '0',
12 => '0',
13 => '',
14 => NULL,
15 => NULL,
16 => 0,
17 => NULL,
18 => NULL,
19 => NULL,
20 => NULL,
21 => NULL,
22 => NULL,
23 => NULL,
24 => NULL,
25 => NULL,
26 => NULL,
27 => NULL,
28 => NULL,
29 => NULL,
30 => NULL,
31 => NULL,
32 => NULL,
33 => NULL,
)]) !!!
!!
Error code: generalexceptionmessage !!
!! Stack trace: * line 105 of /admin/cli/restore_backup.php: moodle_exception thrown
!!
Potential coding error - existing temptables found when disposing database. Must be dropped!

Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>