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

Re: Copy course gives me error code: error_opening_file

$
0
0
by Ken Task.  

Finding $a exploration ...

table: mdl_course_modules

mysql> explain mdl_course_modules;

mysql> select id,course,module,deletioninprogress from mdl_course_modules;

all deletioninprogress values should be 0

to see all modules in a course ... use where clause to set to course ID number.

mysql> select id,course,module,deletioninprogress from mdl_course_modules where course=2;

Will render something like this:
+-----+--------+--------+--------------------+
| id  | course | module | deletioninprogress |
+-----+--------+--------+--------------------+
|   1 |      2 |     20 |                  0 |
|   2 |      2 |     15 |                  0 |
|  25 |      2 |     12 |                  0 |
|  86 |      2 |     20 |                  0 |
| 143 |      2 |     20 |                  0 |
| 180 |      2 |     17 |                  0 |
+-----+--------+--------+--------------------+
6 rows in set (0.00 sec)

Since you know the course go to it and see what's there ... or not there!

Me thinks the error might be misleading and it's an issue of writing an entry to that log file it's trying to use ... path to moodledata/temp/backup/contenthashnamed.log file

The .log file, upon success, exist and is 0 bytes!

If a copy course restore fails that log file will be larger than 0 bytes and probably shows the 'stage' of the restore.

'SoS', Ken


Viewing all articles
Browse latest Browse all 6815

Trending Articles



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