Warning message on entire site backup fread(): Read of 8192 bytes failed with errno=21

Created on 13 April 2022, about 2 years ago
Updated 18 February 2023, over 1 year ago

Warnings on backup execution

The following warning is reported and logged
Message Notice: fread(): Read of 8192 bytes failed with errno=21 Is a directory in Drupal\backup_migrate\Core\Service\TarArchiveWriter->addFile() (line 49 of /home/mark/lampstack-8.1.4-0/apache2/htdocs/pd-net-dev/modules/contrib/backup_migrate/src/Core/Service/TarArchiveWriter.php)

Changing the folowing php.ini settings (as suggested in a related issue report ) had no effect

  • Memory_limit set to 2G
  • upload_max_filesize = 2G
  • post_maz_size = 2G

Run entire site backup

Backup executes successfully but generates warning

Currently testing upgrade t Drupal 9, running php8.1.4 on bitnami lampstack on local machine

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

5.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • @joelpittet opened merge request.
  • Status changed to Needs review over 1 year ago
  • πŸ‡¨πŸ‡¦Canada joelpittet Vancouver

    That MR doesn't solve the problem but makes it easier to tell what is going on.
    I stole the logic for how to do the file reading from core:
    core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php:356
    And threw some exceptions with the $real_path in them.

  • πŸ‡¨πŸ‡¦Canada joelpittet Vancouver

    For me it is an empty folder as well

    Could not read the input file: public://library-definitions

Production build 0.69.0 2024