Title: Encryption Problem
Last modified: June 15, 2024

---

# Encryption Problem

 *  Resolved [nadavs](https://wordpress.org/support/users/nadavs/)
 * (@nadavs)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encryption-problem/)
 * Hello,
   It seems like encryption causes problems with backups. When using encryption,
   backups will randomly fail to upload to a remote destination. Furthermore, when
   the backup consists of multiple parts, the plugin will upload only the last part
   to remote storage. Without encryption, all parts are uploaded.
 * Best regards,
   Nadav

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Support [jimiero](https://wordpress.org/support/users/jimiero/)
 * (@jimiero)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encryption-problem/#post-17829497)
 * Hello,
 * Have you checked your error logs and see if there’s anything reported when that
   happens?
 *  Thread Starter [nadavs](https://wordpress.org/support/users/nadavs/)
 * (@nadavs)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encryption-problem/#post-17829769)
 * Nothing is reported. It just says:
 * [2024-06-17 07:11:34] xcloner_scheduler.INFO: Encrypting backup archive backup_www.
   XXX.com-2024-06-17_07-11-sql-enc.tgz. [“CRON”] [] [2024-06-17 07:11:34] xcloner_encryption.
   INFO: Encrypting file backup_www.XXX.com-2024-06-17_07-11-sql-enc.tgz at position
   0 IV [] [] [2024-06-17 07:16:35] xcloner_file_system.INFO: Cleaning the backup
   storage LOCAL on matching rules [] [] [2024-06-17 07:16:35] xcloner_file_system.
   INFO: Deleting backup backup_www.XXX.com-2024-06-17_07-11-sql-enc.tgz from storage
   system LOCAL matching rule [“BACKUP QUANTITY LIMIT xcloner_cleanup_retention_limit_archives”,”
   1 >= 1″] []
 * And then it does nothing. This error apparently only happens where the archive
   is large (>400MB) or there are many tables. Sometimes it gives an archive of 
   66KB instead of 3GB.
 * When I do a manual backup (“Generate Backup”), it works well.
 * I tried increasing all php.ini settings to the maximum, since when the default
   values are set I get this error for large-database sites:
 * Error Message: SplFileInfo::getType(): Lstat failed for /home/XXX/XXX.com/wp-
   content/backups-pNhXD//.xcloner/database-backup.sql
 *  Plugin Support [jimiero](https://wordpress.org/support/users/jimiero/)
 * (@jimiero)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encryption-problem/#post-17829771)
 * Hello,
 * Please also check your website server error logs, not just XCloner logs.
 * Regards
 *  Thread Starter [nadavs](https://wordpress.org/support/users/nadavs/)
 * (@nadavs)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encryption-problem/#post-17830135)
 * I did, there are no relevant error logs for php or the server itself.
 * I tried disabling the cron and running it manually every 10 minutes, still doesn’t
   work. Set the php.ini settings to server defaults, still doesn’t work. It starts
   archiving and fails.
 * The backup_files.csv and database-backup.sql files are generated well. Something
   goes wrong with archiving (the log says it archived and then stuck at encryption,
   but the archive has a size of zero).
 *  Plugin Support [jimiero](https://wordpress.org/support/users/jimiero/)
 * (@jimiero)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encryption-problem/#post-17830167)
 * Try restoring a copy of the website on a different server or locally and try 
   again and see if works in there, I’m not able to reproduce the issue here.
 *  Thread Starter [nadavs](https://wordpress.org/support/users/nadavs/)
 * (@nadavs)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encryption-problem/#post-17830186)
 * It works for some websites and doesn’t for others (on the same server). Everything
   works for “Generate Backups”, but scheduling fails for the problematic websites.
 * The websites are fully functional except these weird scheduled backup issues.
   Seems like a file list of more than 2GB causes trouble when using the scheduler.
 *  Thread Starter [nadavs](https://wordpress.org/support/users/nadavs/)
 * (@nadavs)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encryption-problem/#post-17831305)
 * I may have found a solution: it turns out that large tables (> 40k records) made
   it crash. I deleted all records from those tables (mostly Wordfence junk) and
   it worked.
 * There was also an error when doing multi-part archiving, but I solved it by increasing
   the file-splitting limit to a very large number.
 * However, seems like I don’t get all files backed up. The final archive is smaller
   than the one with a generated backup.
    -  This reply was modified 1 year, 11 months ago by [nadavs](https://wordpress.org/support/users/nadavs/).
 *  Thread Starter [nadavs](https://wordpress.org/support/users/nadavs/)
 * (@nadavs)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encryption-problem/#post-17832146)
 * Solved: ModSecurity deleted the temporary directory mid-operation. Disabling 
   it worked.
 *  Plugin Support [jimiero](https://wordpress.org/support/users/jimiero/)
 * (@jimiero)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encryption-problem/#post-17832300)
 * Glad to hear your issue is sorted, thanks for sharing the cause.
 * Rgards
 *  Thread Starter [nadavs](https://wordpress.org/support/users/nadavs/)
 * (@nadavs)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encryption-problem/#post-17834996)
 * Final update: ModSecurity wasn’t the problem. It’s the way the plugin handles
   crons: sometimes, it schedules the “do_shutdown” function, which deletes temporary
   files. If a backup is underway, it will delete the file list, which stops the
   archiving process. The solution was to run manual crons with enough time for 
   a run to complete.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Encryption Problem’ is closed to new replies.

 * ![](https://ps.w.org/xcloner-backup-and-restore/assets/icon-256x256.png?rev=2766426)
 * [Backup, Restore and Migrate your sites with XCloner](https://wordpress.org/plugins/xcloner-backup-and-restore/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/xcloner-backup-and-restore/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/xcloner-backup-and-restore/)
 * [Active Topics](https://wordpress.org/support/plugin/xcloner-backup-and-restore/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/xcloner-backup-and-restore/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/xcloner-backup-and-restore/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [nadavs](https://wordpress.org/support/users/nadavs/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/encryption-problem/#post-17834996)
 * Status: resolved