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

Restore backup on new server continuous failing

$
0
0
by Daniel A. Rodriguez.  

Hi there,

The University has a Moodle deployed on a remote location and now need to clone that for testing purposes.

So, the environment was replicated and both, the PGSQL dump and the moodle structure were copied to the new location. However, after restoring the DB just getting this

Error
No se puede encontrar registro de datos en la tabla course_categories de la base de datos.
Debug info: SELECT id,parent FROM {course_categories} WHERE id = ?
[array (
0 => '1',
)]
Error code: invalidrecord
Stack trace:
  • line 1654 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
  • line 1630 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 6875 of /lib/accesslib.php: call to moodle_database->get_record()
  • line 676 of /course/classes/category.php: call to context_coursecat::instance()
  • line 1227 of /course/classes/category.php: call to core_course_category::can_view_category()
  • line 1343 of /course/classes/category.php: call to core_course_category->get_not_visible_children_ids()
  • line 318 of /course/classes/category.php: call to core_course_category->get_children()
  • line 1448 of /lib/navigationlib.php: call to core_course_category::user_top()
  • line 4295 of /lib/navigationlib.php: call to global_navigation->initialise()
  • line 832 of /lib/pagelib.php: call to settings_navigation->__construct()
  • line 962 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
  • line 393 of /lib/classes/navigation/views/secondary.php: call to moodle_page->__get()
  • line 216 of /lib/classes/navigation/views/secondary.php: call to core\navigation\views\secondary->load_course_navigation()
  • line 890 of /lib/pagelib.php: call to core\navigation\views\secondary->initialise()
  • line 962 of /lib/pagelib.php: call to moodle_page->magic_get_secondarynav()
  • line 70 of /theme/boost/layout/drawers.php: call to moodle_page->__get()
  • line 1473 of /lib/outputrenderers.php: call to include()
  • line 1399 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 116 of /index.php: call to core_renderer->header()

DB dump has 1,4Gb aproximately and it was rsynced to the new server.

Any clue will be much appreciated.


Viewing all articles
Browse latest Browse all 6815

Trending Articles



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