Hi all,
We have experienced the same problem when updating Moodle 1.9 to 2.2.6.
The upgrade fails with the following error.
Migrated course files - course 219/258.
0.07 sec
file name: /var/lib/sitedata/335/sai_gab_multi_v500_Generic_OCCAM.zip
file size: 1136109318
hashfile: /var/lib/sitedata/filedir/4d/c1/4dc19675afcac46f8233ead91aa88a45f3d70f62
- line 1125 of /lib/filestorage/file_storage.php: file_pool_content_exception thrown
- line 845 of /lib/filestorage/file_storage.php: call to file_storage->add_file_to_pool()
- line 365 of /lib/db/upgradelib.php: call to file_storage->create_file_from_pathname()
- line 98 of /lib/db/upgradelib.php: call to upgrade_migrate_files_course()
- line 607 of /lib/db/upgrade.php: call to upgrade_migrate_files_courses()
- line 1418 of /lib/upgradelib.php: call to xmldb_main_upgrade()
- line 300 of /admin/index.php: call to upgrade_core()
File /var/lib/sitedata/335/sai_gab_multi_v500_Generic_OCCAM.zip file
exists and is about 1.3 Gb in size.
Temporary mdl_files table exists but is empty:
select count(*) from mdl_files;
+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.00 sec)
Reading this thread and related Moodle bug I have not found clear solution what to do in this case.
I restored the database several times and rerun the update but alway ended up with the same error.
Can anybody suggest a solution how to fix/workaround this?