Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-469

Error updating from linux server to windows client. apply diff failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 1.9
    • Offline Moodle
    • None
    • MOODLE_19_STABLE

      I'm testing the server client updating process when the server is linux and the client is on windows xp. I get an the errors below. The client was already updating another course from a windows based server. Then I just changed the path to the server in admin > course > incremental client to that of the linux server. Installed the new course as normal using the backup from the server all worked fine. Now that I've added new content, run incremental backups and then clicked upate on the client I get the errors below.

      C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.4\htdocs\moodle\lib\xdelta.class.php: apply_diff (205): $md5 =

      a218158d0af80ca71d12f97997b28edf

      C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.4\htdocs\moodle\lib\xdelta.class.php: apply_diff (206): $manifest =

      Array
      (
      [different] => Array
      (
      [/moodle.xml] => 1
      )

      [srcchecksum] => a218158d0af80ca71d12f97997b28edf
      [dstchecksum] => 43b81f954aa4843c5b7dd9f5eb550199
      [version] => 1
      )

      C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.4\htdocs\moodle\lib\xdelta.class.php: apply_diff (207): $this->treea =

      Array
      (
      [/course_files] => directory
      [/moddata] => directory
      [/moddata/forum] => directory
      [/moodle.xml] => 09c4d48ed0f6ebcb348ac9eee74c2459
      [/site_files] => directory
      [/user_files] => directory
      [/user_files/0] => directory
      [/user_files/0/2] => directory
      )

      C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.4\htdocs\moodle\lib\xdelta.class.php: apply_diff (208): $basepath (1) =

      C:/projects/VLE/Mobile Moodle/environments/xampplite-win32-1.6.6.exe/development/offlinemoodle-0.4/moodledata/temp/a7e56a8d5813c60ff536a739fab87e65-48400e4b766ba

      "C:/projects/VLE/Mobile Moodle/environments/xampplite-win32-1.6.6.exe/development/offlinemoodle-0.4/xdelta/xdelta3.exe" -d -s "C:/projects/VLE/Mobile Moodle/environments/xampplite-win32-1.6.6.exe/development/offlinemoodle-0.4/moodledata/temp/a7e56a8d5813c60ff536a739fab87e65-48400e4b766ba/moodle.xml" "C:/projects/VLE/Mobile Moodle/environments/xampplite-win32-1.6.6.exe/development/offlinemoodle-0.4/moodledata/temp/ddd68fdedcb7039351bf77e0b12d2354/files/moodle.xml.diff" "C:/projects/VLE/Mobile Moodle/environments/xampplite-win32-1.6.6.exe/development/offlinemoodle-0.4/moodledata/temp/a7e56a8d5813c60ff536a739fab87e65-48400e4b766ba/moodle.xml.undiff"

      • line 257 of lib\xdelta.class.php: call to debugging()
      • line 169 of backup\incremental_backuplib.php: call to xdelta->apply_diff()
      • line 254 of backup\incremental_backuplib.php: call to apply_incremental()
      • line 69 of backup\get_incremental.php: call to download_incremental()

      C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.4\htdocs\moodle\backup>"C:/projects/VLE/Mobile Moodle/environments/xampplite-win32-1.6.6.exe/development/offlinemoodle-0.4/xdelta/xdelta3.exe" -d -s "C:/projects/VLE/Mobile Moodle/environments/xampplite-win32-1.6.6.exe/development/offlinemoodle-0.4/moodledata/temp/a7e56a8d5813c60ff536a739fab87e65-48400e4b766ba/moodle.xml" "C:/projects/VLE/Mobile Moodle/environments/xampplite-win32-1.6.6.exe/development/offlinemoodle-0.4/moodledata/temp/ddd68fdedcb7039351bf77e0b12d2354/files/moodle.xml.diff" "C:/projects/VLE/Mobile Moodle/environments/xampplite-win32-1.6.6.exe/development/offlinemoodle-0.4/moodledata/temp/a7e56a8d5813c60ff536a739fab87e65-48400e4b766ba/moodle.xml.undiff"
      Warning: rename(C:/projects/VLE/Mobile Moodle/environments/xampplite-win32-1.6.6.exe/development/offlinemoodle-0.4/moodledata/temp/a7e56a8d5813c60ff536a739fab87e65-48400e4b766ba/moodle.xml.undiff,C:/projects/VLE/Mobile Moodle/environments/xampplite-win32-1.6.6.exe/development/offlinemoodle-0.4/moodledata/temp/a7e56a8d5813c60ff536a739fab87e65-48400e4b766ba/moodle.xml) [function.rename]: No such file or directory in C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.4\htdocs\moodle\lib\xdelta.class.php on line 269
      C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.4\htdocs\moodle\lib\xdelta.class.php: apply_diff (290): $this->treeb =

      Array
      (
      [/course_files] => directory
      [/moddata] => directory
      [/moddata/forum] => directory
      [/site_files] => directory
      [/user_files] => directory
      [/user_files/0] => directory
      [/user_files/0/2] => directory
      )

      C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.4\htdocs\moodle\lib\xdelta.class.php: apply_diff (291): $basepath (2) =

      C:/projects/VLE/Mobile Moodle/environments/xampplite-win32-1.6.6.exe/development/offlinemoodle-0.4/moodledata/temp/a7e56a8d5813c60ff536a739fab87e65-48400e4b766ba

      apply diff failed: Dest file tree is different to that expected in diff
      Stack trace:

      • line 5675 of lib\weblib.php: call to debugging()
      • line 171 of backup\incremental_backuplib.php: call to error()
      • line 254 of backup\incremental_backuplib.php: call to apply_incremental()
      • line 69 of backup\get_incremental.php: call to download_incremental()

      So this could all be because I've been previously updating another course from a different server but that shouldn't be causing this issue. the main problem appears to be the md5 checksums involved not matching. It's strange that the path used to generate the file list for each check is actually the same. Considering it's a check of the oringial state to th updated state. The only file missing at this point is the moodle.xml

            danmarsden Dan Marsden
            colchambers Colin Chambers (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.