Jump to content

Cron Job - Backup Generation Failed. Error Code: 19


Recommended Posts

i have get issues in backup using SFTP to other server that say  "Backup Generation Failed. Error Code: 19"

this show on System Activity Log

backup_error.JPG.6c371ab002a4a3cf38a6cce4e8ecf7e7.JPG

when checked on the destination server SFTP transfer is 0 bytes

backup_error2.thumb.JPG.987ab0a2dc893cd8d98b6166414a9cb1.JPG

on the email is the same 0 bytes in attachement

how to fix this ?

and what does mean error code : 19 ?

Regards

Edited by lims
Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @lims,

The error codes are related to the ZipArchive PHP function which is used to generate the zip file: https://www.php.net/manual/en/ziparchive.open.php

This error indicates an issue when trying to generate a ZIP archive ready for upload. It does use the sys_get_temp_dir() PHP function, so the next step would be to ensure that the temp directory configured in PHP is read and writable by the WHMCS application.

Furthermore, it is also worth checking that along with having ZIP installed in your "web-serving" PHP binary (Utilities > System > PHPInfo), it is also installed in the CLI binary in use by the cron.

You can check that with this command:

/usr/bin/php -m

 

Link to comment
Share on other sites

zip extension and sys_get_temp_dir was there by default

sys_get_temp_dir = is writable to the temp folder by the WHMCS application

i thing this issues come from nginx +  PHP-Fpm, in Apache only is work perfect

i'm already try download manual from Utilities >> System >> Database status is the same can't make a zip file, but not build a log or some thing error to find issues

for temporary i have disable auto backup database from whmcs system, and back to old use full_backup from cron root server

Edited by lims
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated