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

Created on 13 April 2022, over 2 years ago
Updated 18 February 2023, almost 2 years 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

Active

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 almost 2 years 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

  • For any who land here, I stumbled upon this error trying to create a backup of files.

Production build 0.71.5 2024