Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67932

GDPR data export process fails on Windows server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.7.4
    • Fix Version/s: None
    • Component/s: Privacy
    • Affected Branches:
      MOODLE_37_STABLE
    • Story Points:
      4
    • Sprint:
      International 4.0 - Sprint 4

      Description

      On a server running Windows, data export request processing fails where I'm getting the following error:

      PHP Warning:  ZipArchive::close(): Read error: No such file or directory in C:\inetpub\wwwroot\imaster\lib\filestorage\zip_archive.php on line 224
       
      Warning: ZipArchive::close(): Read error: No such file or directory in C:\inetpub\wwwroot\imaster\lib\filestorage\zip_archive.php on line 224
        Export complete
      ... used 316 dbqueries
      ... used 9.078125 seconds
      Adhoc task failed: tool_dataprivacy\task\process_data_request_task,Cannot read file. Either the file does not exist or there is a permission problem. (C:\inetpub\moodledata\imaster/localcache\6a937499-8769-4f0f-8643-964fb4ce755d\c070a4ea-f59f-4397-b7ff-e3f087f6db51/expor
      t.zip)
      Debug info:
      C:\inetpub\moodledata\imaster/localcache\6a937499-8769-4f0f-8643-964fb4ce755d\c070a4ea-f59f-4397-b7ff-e3f087f6db51/export.zip
      Backtrace:
      * line 348 of \lib\filestorage\file_system_filedir.php: call to file_system->validate_hash_and_file_size()
      * line 1794 of \lib\filestorage\file_storage.php: call to file_system_filedir->add_file_from_path()
      * line 1323 of \lib\filestorage\file_storage.php: call to file_storage->add_file_to_pool()
      * line 128 of \admin\tool\dataprivacy\classes\task\process_data_request_task.php: call to file_storage->create_file_from_pathname()
      * line 331 of \lib\cronlib.php: call to tool_dataprivacy\task\process_data_request_task->execute()
      * line 198 of \lib\cronlib.php: call to cron_run_inner_adhoc_task()
      * line 121 of \admin\tool\task\cli\adhoc_task.php: call to cron_run_adhoc_tasks()
      

      I've made sure that the "moodledata" folder can be written by everyone but the problem still occurs. So this eliminates the permissions issue.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jpataleta Jun Pataleta
              Reporter:
              jpataleta Jun Pataleta
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h