Menu

Backup fails with PCLZIP_ERR_WRITE_OPEN_FAIL

Help
2021-10-12
2021-10-12
  • Douglas Terry

    Douglas Terry - 2021-10-12

    I recently added a large PDF file (62Mb) to the source media (153 pg scanned family tree compendium) and now I continue to get something like "Error : PCLZIP_ERR_WRITE_OPEN_FAIL (-1) : Unable to open temporary file 'pclzip-6165cb50e5e08.gz' in binary write mode" if I enable "Media Files" for backup.

    I am also noticing that last few backups that I made (before this file) where the backup zip file size is >40Mb total now seem to be corrupt. Last biggest file before corruption was 41,176 KB in size.

    Is there a total file size limit for backups?
    If there a max single file size for items to be backed up?
    Any suggestions around the PCLZIP error?

     
    • Gerry Kroll

      Gerry Kroll - 2021-10-12



      <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">


      Hello, Douglas:



      It appears as though the PCLZIP library has run out of memory, and
      wants to use a temporary file created in the currently active
      directory.



      I suggest that you increase the PHP memory limit to 256 Mb and try
      again.  This needs to be done in the Site Configuration, and your
      PHP.INI file also needs to allow at least this amount of memory to
      be allocated.



      There's a DEFINE line in /includes/pclzip.lib.php, between lines 61
      and 83 that's relevant.

      Regards,
      Gerry Kroll

      e-mail: gkroll@keldine.ca
      Phone: +1 613 836-3970
      Mobile: +1 613 558-3990


      On 2021-10-12 14:10, Douglas Terry
      wrote:


      ERR_WRITE_OPEN_FAIL
      (-1)




       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.