Warning: unlink(C:\Moodle2\Apache\moodledata/temp/backup/cbf5c9846d4fbf15a4a91170e80d8337_moodle1_d4740552b911684d9796eb4edd14fc38/activities/assignment_4997/assignment.xml): Permission denied in C:\Moodle2\Apache\htdocs\moodle\lib\filelib.php on line 2262
Seem to re-call seeing/reading about Windows servers using certain versions of PHP having issues with creating temp files and then removing them. The restore of a 1.9 course has to be converted to a 2 version first using a routine that creates temporary files. Those temporary files MUST eventually be removed. That's the 'unlink' error you see above. Doesn't happen on Linux flavored boxen.
In this case it was an assignment.
320,000kb ... is that really a 320 KB file or a 320 Meg file?
I think also we still have a little mis-understanding about Moodle 2 but gaining! ;) Moodle 2 no longer uses course ID folders in the data directory. If you migrated a 1.9 site to a 2 then I've noticed the course ID folders might be in the data directory for 2, but they contain nothing ... and actually DO nothing. In version 2, the 'file system' has moved to the database ... in particular, mdl_files table. What one sees as links to files are really links to records in the DB ... they just appear to be files.
In looking at logs on the TCEA server I see that an attempt was made importing. There is a course there now which describes the restore of 1.9 courses via URL downloader.
Since another set of eyes can now see something ...
During the restore process, Moodle uses the datadirectory/temp/backup as it's work space. Successful restores/backups leave a 0 byte .log file. Un-successful restores leave a log file with references. Here's the one left for the attempt to restore on the sandbox2:
[root@moodle backup]# more e6c6966efd98195d8451d24f29fa4dc0.log
[Wed 23 May 2012 18:28:54 CDT] [warn] (moodle1) unsupported activity module flv
[Wed 23 May 2012 18:28:55 CDT] [warn] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/PARTICIPANTS
[Wed 23 May 2012 18:28:55 CDT] [warn] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/ACTIVITY_MODULES
[Wed 23 May 2012 18:28:55 CDT] [warn] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/SEARCH_FORUMS
[Wed 23 May 2012 18:28:55 CDT] [warn] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/ADMIN
[Wed 23 May 2012 18:28:55 CDT] [warn] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/COURSE_LIST
[Wed 23 May 2012 18:28:55 CDT] [warn] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/NEWS_ITEMS
[Wed 23 May 2012 18:28:55 CDT] [warn] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/CALENDAR_UPCOMING
[Wed 23 May 2012 18:28:55 CDT] [warn] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/RECENT_ACTIVITY
[Wed 23 May 2012 18:29:01 CDT] [error] (moodle1) question type converter not found imagetarget
[Wed 23 May 2012 18:29:01 CDT] [error] (moodle1) question type converter not found imagetarget
[Wed 23 May 2012 18:29:01 CDT] [warn] (moodle1) question file not found 18685, /USA_map.png
[Wed 23 May 2012 18:29:01 CDT] [error] (moodle1) question type converter not found imagetarget
Matter of fact, a directory containing the failed 1.9 conversion now exist:
[root@moodle b31ac957d4c779c91bfb2085c562742f]# pwd
/var/www/sandbox2data/temp/backup/b31ac957d4c779c91bfb2085c562742f
[root@moodle b31ac957d4c779c91bfb2085c562742f]# ls -l
total 2008
drwxrwxrwx 2 apache apache 4096 May 23 18:28 course_files
drwxrwxrwx 3 apache apache 4096 May 23 18:28 moddata
-rw-rw-rw- 1 apache apache 2028945 May 23 18:28 moodle.xml
Bet if you look in your 2 data directory/temp/backup you will see some folders with long names (like the b31... above) and contained there in other files folders like:
[root@moodle b31ac957d4c779c91bfb2085c562742f]# ls -l
total 2008
drwxrwxrwx 2 apache apache 4096 May 23 18:28 course_files
drwxrwxrwx 3 apache apache 4096 May 23 18:28 moddata
-rw-rw-rw- 1 apache apache 2028945 May 23 18:28 moodle.xml
At the head of the moodle.xml file:
<NAME>backupExHQT.zip</NAME>
<MOODLE_VERSION>2007101509</MOODLE_VERSION>
<MOODLE_RELEASE>1.9 + (Build: 20080416)</MOODLE_RELEASE>
<BACKUP_VERSION>2008030300</BACKUP_VERSION>
See the backupExHQT.zip file name? If some human didn't name the backup as such, that's the temp name. And, from the version numbers I see, quite OLD.
IT is SAFE to remove/erase any failed attempt folders/files.
Now a question ... in the 1.9 course backup, do you have an addon for 'flv'? Create a backup of that course and restore a *copy* to your 1.9 Moodle. In the copy of the course, remove that resource. Remove the calendar, news items forum, etc. Then make another backup and use that in an attempt to restore to a 2. Also, export the quiz. Please use the sandbox2 so I can inspect.
Have sent EMail directly to you - off list - we can come back to this forum discussion once we've worked out issues.
'spirit of sharing', Ken