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

Course Reuse, Backup/Restore is not working, CLI and GUI Both

$
0
0
by dharmik dharmik.  

root@courses:/var/www/html/moodle# sudo -u www-data php admin/cli/backup.php --courseid=329 --destination=/path/to/moodledata/temp/backup

Default exception handler: Can't find data record in database table course. Debug: SELECT * FROM {course} WHERE id = ?
[array (
  0 => '329',
)]
Error code: invalidrecord
* line 1659 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
* line 1635 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
* line 83 of /admin/cli/backup.php: call to moodle_database->get_record()

!!! Can't find data record in database table course. !!!
!! SELECT * FROM {course} WHERE id = ?
[array (
  0 => '329',
)]
Error code: invalidrecord !!
!! Stack trace: * line 1659 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
* line 1635 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
* line 83 of /admin/cli/backup.php: call to moodle_database->get_record()

(Bunch of deprecated warnings -- skipped)
Destination directory does not exists or not writable.

Destination direcotry is exist but error showing 'not exists or not writable'

max_input_vars = 6000

above is CLI output, GUI stuck in backup, - "Process Pending"

2025/07/27 11:15:00 [alert] 1778900#1778900: *244 open socket #26 left in connection 7
2025/07/27 11:15:00 [alert] 1778900#1778900: *243 open socket #25 left in connection 15
2025/07/27 11:15:00 [alert] 1778900#1778900: *234 open socket #24 left in connection 20
2025/07/27 11:15:00 [alert] 1778900#1778900: *232 open socket #23 left in connection 28
2025/07/27 11:15:00 [alert] 1778900#1778900: aborting
2025/07/27 11:16:49 [error] 1811908#1811908: *7 FastCGI sent in stderr: "PHP message: PHP Warning:  Attempt to read property "modname" on null in /var/www/moodle/blocks/qtracker/block_qtracker.php on line 118" while reading response header from upstream, client: XXX.XXX.XXX.XXX, server: moodlesite.com, request: "GET /my/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "moodlesite.com", referrer: "https://moodlesite.com/my/courses.php"
2025/07/27 11:16:51 [error] 1811908#1811908: *7 FastCGI sent in stderr: "PHP message: Debugging: This file is no longer required in Moodle 4.2+. Please do not include/require it. in
* line 25 of /mod/quiz/accessmanager.php: call to debugging()
* line 33 of /blocks/edwiser_grader/classes/external/get_attempt_questions.php: call to require_once()
* line 155 of /lib/classes/component.php: call to include_once()
* line 38 of /blocks/edwiser_grader/classes/external/api.php: call to core_component::classloader()
* line 155 of /lib/classes/component.php: call to include_once()
* line ? of unknownfile: call to core_component::classloader()
* line 62 of /lib/external/classes/external_api.php: call to class_exists()
* line 186 of /lib/external/classes/external_api.php: call to core_external\external_api::external_function_info()
* line 83 of /lib/ajax/service.php: call to core_external\external_api::call_external_function()" while reading response header from upstream, client: XXX.XXX.XXX.XXX, server: moodlesite.com, request: "POST /lib/ajax/service.php?sesskey=Jjc4GiW1eI&info=block_edwiser_grader_get_course_quizzes HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "moodlesite.com", referrer: "https://moodlesite.com/my/"
2025/07/27 11:17:17 [error] 1811908#1811908: *7 FastCGI sent in stderr: "PHP message: loading controller from db; PHP message: loading controller from db" while reading response header from upstream, client: XXX.XXX.XXX.XXX, server: moodlesite.com, request: "GET /backup/copy.php?id=335 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "moodlesite.com", referrer: "https://moodlesite.com/backup/view.php?id=335"
2025/07/27 11:17:26 [error] 1811908#1811908: *7 FastCGI sent in stderr: "PHP message: loading controller from db; PHP message: loading controller from db; PHP message: instantiating backup controller 6d92c838b4eb71732188cca01746fe96; PHP message: setting controller status to 100; PHP message: loading controller plan; PHP message: setting controller status to 300; PHP message: applying plan defaults; PHP message: setting controller status to 400; PHP message: setting file inclusion to ; PHP message: checking plan security; PHP message: setting controller status to 700; PHP message: saving controller to db; PHP message: calculating controller checksum f75f7daff5e278bb58fa3f8cf77b35c5; PHP message: loading controller from db; PHP message: instantiating restore controller 8f99c7f99a18ce3b8e1748a2f7afde2b; PHP message: setting controller status to 100; PHP message: setting controller status to 200; PHP message: setting controller status to 700; PHP message: saving controller to db; PHP message: calculating controller checksum f75f7daff5e278bb58fa3f8cf77b35c5; PHP message: loading controller from db; PHP message: saving controller to db; PHP message: calculating controller checksum 592bea0f903dd30bdb85bccbfec3e752" while reading response header from upstream, client: XXX.XXX.XXX.XXX, server: moodlesite.com, request: "POST /backup/copy.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "moodlesite.com", referrer: "https://moodlesite.com/backup/copy.php?id=335"
2025/07/27 11:17:26 [error] 1811908#1811908: *7 FastCGI sent in stderr: "PHP message: loading controller from db; PHP message: loading controller from db; PHP message: loading controller from db" while reading upstream, client: XXX.XXX.XXX.XXX, server: moodlesite.com, request: "GET /backup/copyprogress.php?id=335 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "moodlesite.com", referrer: "https://moodlesite.com/backup/copy.php?id=335"
2025/07/27 11:20:41 [error] 1811908#1811908: *7 FastCGI sent in stderr: "PHP message: loading controller from db; PHP message: loading controller from db; PHP message: loading controller from db" while reading response header from upstream, client: XXX.XXX.XXX.XXX, server: moodlesite.com, request: "GET /backup/copy.php?id=335 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "moodlesite.com", referrer: "https://moodlesite.com/backup/view.php?id=335"
2025/07/27 11:21:38 [error] 1811908#1811908: *7 FastCGI sent in stderr: "PHP message: loading controller from db; PHP message: loading controller from db; PHP message: loading controller from db; PHP message: loading controller from db; PHP message: loading controller from db" while reading upstream, client: XXX.XXX.XXX.XXX, server: moodlesite.com, request: "GET /backup/restorefile.php?contextid=19619 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "moodlesite.com", referrer: "https://moodlesite.com/backup/view.php?id=335"


Viewing all articles
Browse latest Browse all 6815

Trending Articles



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