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

error in course backup and restore with CLI

$
0
0
by Durga Prasad.  

I have a course backup file from my moodle site

I want to restore the backup file to another moodle website which is in developing stage when using CLI , getting errors as these

command  :  php restore_backup.php --file="C:\Users\Durgaprasada\Downloads\course2-backup.mbz" --categoryid=1
PHP Warning:  Module "sodium" is already loaded in Unknown on line 0

Warning: Module "sodium" is already loaded in Unknown on line 0
== Extracting backup file to: C:\xampp\moodle1data\temp/backup/50d895c06374770e7c0be0afdf252626 ==
== Preprocessing backup file ==
instantiating restore controller 6a5b087032cfc63caf702679a0631151
setting controller status to 100
loading backup info
loading controller plan
setting controller status to 300
applying restore defaults
Unknown setting: questionbank
setting controller status to 400
checking plan security
setting controller status to 600
saving controller to db
calculating controller checksum 70f93b0d1adb49f9d163332d157e3e79
loading controller from db
== Cleaning temp data ==
Default exception handler: Exception - restore_controller_exception: error/restore_not_executable_awaiting_required in [dirroot]\backup\util\plan\restore_plan.class.php:165
Stack trace:
#0 [dirroot]\backup\controller\restore_controller.class.php(411): restore_plan->execute()
#1 [dirroot]\admin\cli\restore_backup.php(120): restore_controller->execute_plan()
#2 {main} Debug:
Error code: generalexceptionmessage
* line 136 of \admin\cli\restore_backup.php: moodle_exception thrown

!!! Exception - restore_controller_exception: error/restore_not_executable_awaiting_required in [dirroot]\backup\util\plan\restore_plan.class.php:165
Stack trace:
#0 [dirroot]\backup\controller\restore_controller.class.php(411): restore_plan->execute()
#1 [dirroot]\admin\cli\restore_backup.php(120): restore_controller->execute_plan()
#2 {main} !!!
!!
Error code: generalexceptionmessage !!
!! Stack trace: * line 136 of \admin\cli\restore_backup.php: moodle_exception thrown
 !!

Working in Windows 11

with php 8.2.12 , mysql 8.0.39

Moodle version 4.4


Viewing all articles
Browse latest Browse all 6815

Trending Articles



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