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

PHP error reporting that there are too many open files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.3.2
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE

      Description

       

      Hello

      When I am trying to import/restore a course I get the following errors.

       
      Warning: opendir(/efs/wwwroot/courses/moodledata/temp/backup): failed to open dir: Too many open files in /efs/wwwroot/courses/moodle/lib/moodlelib.php on line 6675
       
       
      Warning: fopen(/efs/wwwroot/courses/moodledata/temp/backup/4af5ddf6bee25ad83c68ee012ebd33ed.log): failed to open stream: Too many open files in /efs/wwwroot/courses/moodle/backup/util/loggers/file_logger.class.phpon line 45
       
      Warning: file_get_contents(/efs/wwwroot/courses/moodle/theme/boost/templates/core/notification_error.mustache): failed to open stream: Too many open files in /efs/wwwroot/courses/moodle/lib/mustache/src/Mustache/Loader/FilesystemLoader.phpon line 105
       
      Warning: file_get_contents(/efs/wwwroot/courses/moodle/lib/htmlpurifier/HTMLPurifier/ConfigSchema/schema.ser): failed to open stream: Too many open files in /efs/wwwroot/courses/moodle/lib/htmlpurifier/HTMLPurifier/ConfigSchema.phpon line 71
       
      Fatal error: Unserialization of configuration schema failed, sha1 of file was da39a3ee5e6b4b0d3255bfef95601890afd80709 in /efs/wwwroot/courses/moodle/lib/htmlpurifier/HTMLPurifier/ConfigSchema.phpon line 75
      

      I searched the logs to find the reason for this but there is nothing there.

       

      The only way that this problem seems to go away is by restarting Apache and PHP-FPM.

       

      Any help

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            christos312 christos
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: