Forum Replies Created

Viewing 15 replies - 1 through 15 (of 31 total)
  • Thread Starter archprime

    (@archrime)

    Thanks.

    How do I solve the mod_security incompatibility issue with Xcloner?

    I need both mod_security and Xcloner to work while auto backups are occurring

    Thread Starter archprime

    (@archrime)

    OK, more poking around revealed that the wp.config file had been set to disable wp_cron (possibly by the hosting company?). I tried reenabling it (per below), and this time was able to get a scheduled backup to actually occur – though I was logged in to Xcloner website at the time, so presumably the presence of human activity was triggering wp_cron to work?

    /** Disable the WP_CRON processes*/
    define('DISABLE_WP_CRON', false);

    How should scheduled backups be initiated – via the wp_cron setting within the Xcloner wordpress installation (which would normally never be visited by a user), or via an external recurring cron task set up with the host?

    • This reply was modified 1 year, 1 month ago by archprime.
    Thread Starter archprime

    (@archrime)

    Further info: disabling Mod security for domain of target website allowed me to create a manual backup, so that does seem to be an issue.

    A further issue remains, even with mod security switched off – scheduled backups are still not occurring. If I redefine an existing schedule item with new start date t& time a few minutes in the future and save, the schedule correctly reports the next scheduled backup will be occurring in xxx minutes and seconds – but then nothing happens. No local archive file or remote archive file appears. No error messages appear on screen or in Xcloner log, or on the webhost error log, or in the browser console error log. This is a same schedule item that created an initial backup with no problem (with mod security off)

    Thread Starter archprime

    (@archrime)

    I am seeing this when I try to create a new backup

    '{"readyState":4,"responseText":"Error 406 - Not Acceptable
    Error 406 - Not Acceptable
    Generally a 406 error is caused because a request has been blocked by Mod Security. If you believe that your request has been blocked by mistake please contact the web site owner.
    ","status":406,"statusText":"error"}'

    Does Xcloner require that sites it backs up are not protected by Mod Security? Otherwise how do I safely avoid getting this error?

    I contacted my webhost, who advises the Mod Security rules are the same for most shared hosts, and get regularly updated. They suggested it would be a bad idea to disable mod security, and that I need to contact you to request the plugin be updated for better compliance with latest standards.

    • This reply was modified 1 year, 1 month ago by archprime.
    • This reply was modified 1 year, 1 month ago by archprime.
    • This reply was modified 1 year, 1 month ago by archprime. Reason: include further information
    Thread Starter archprime

    (@archrime)

    Further follow up on schedules. Even though the new schedule object instances I created can now be edited, they still appear not to work, or at least not as edited.

    I edited a schedule to change the start time to execute in a few minutes and saved. Accordingly the schedule object in the list view reported that its backup would be commencing in a few minutes – however nothing happened – no backup file was generated.

    I tried this a few times, with no result (no tar file found on local server or remote storage location). The Xcloner log nevertheless generated an entry like this each time.

    [2025-04-24 04:25:07] xcloner_file_system.INFO: Cleaning the backup storage LOCAL on matching rules [] [] each time

    Checking my web host, the error log there has no recent entries (most recent was yesterday)

    Yesterday’s error logs however had many entries that look like like this, that I assume relate to Xcloner backup or schedule item editing attempts? :

    [Wed Apr 23 20:15:01.081816 2025] [authz_core:error] [pid 1090988:tid 1091077] [client 47.128.35.238:0] AH01630: client denied by server configuration: /home/primen10/public_html/kingfamily/tree

    Could this relate to some sort of incompatibility with mod_security?

    • This reply was modified 1 year, 1 month ago by archprime.
    • This reply was modified 1 year, 1 month ago by archprime.
    Thread Starter archprime

    (@archrime)

    Apologies, rather than hanging around to troubleshoot, I just recreated all the schedule items. One thing I found the original schedule items had in common was outdated database references (WordPress installations were shifted to another account/server with the hosting company).

    What also seemed to help was disabling Modsecurity (I had been getting frequent error 406 when trying to undertake Xcloner admin tasks too soon after a backup was done, or too often in succession, and sftp file transfers had been failing randomly – all seemed to go away with mod security turned off).

    How important is having Mod_security enabled for Xcloner?

    Perhaps this belongs in a separate post, but a few other things related to scheduling were noted:

    Although a first backup has been completed for every WordPress installation in the schedule, the schedule does not reflect this, with all ‘last backup’ entries remaining blank, despite having ‘executed’ status.

    Each ‘executed’ status notification is a hyperlink, but it links to nothing

    There is also no obvious or simple way to manually initiate a one off backup from a schedule item as you would intuitively expect, at least not without changing the schedule start time to the current date, which then offsets the scheduled recurrences in ways that may not be intended.

    This forces a user to otherwise define a new backup – with all the risks involved in that (wrong database selection, wrong file exclusions etc). This seems crazy when a perfectly good backup definition already exists.

    Thread Starter archprime

    (@archrime)

    It looks like I cannot recreate the issue if I make a new schedule then edit it – the issue only affects existing schedule items

    Thread Starter archprime

    (@archrime)

    It seems all I can do is delete an existing schedule item and create a new on by the same name

    Thread Starter archprime

    (@archrime)

    Hi @jimiero

    I can’t find a setting to enable or disable Xcloner debug logs, but do see a tab labelled ‘XCloner Debugger’ on the dashboard – looking in this, the only entry I can find after an ‘Error saving schedule!’ warning is

    [2025-04-23 12:01:50] xcloner_file_system.INFO: Cleaning the backup storage LOCAL on matching rules [] []

    I assume this is not relevant?

    Thread Starter archprime

    (@archrime)

    Hi, I found the below logs under the Xcloner Debugger Tab – does this help? There are no recent error logs on the server.

    [2023-02-20 13:48:27] php_system.DEBUG: E_DEPRECATED: array ( 'type' => 8192, 'message' => 'Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice', 'file' => '/home/primen9/public_html/xcloner/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php', 'line' => 91, ) [] []
    [2023-02-20 13:48:12] xcloner_file_system.DEBUG: Estimating file system reading time [] []
    [2023-02-20 13:48:12] xcloner_file_system.INFO: Cleaning the backup storage LOCAL on matching rules [] []
    [2023-02-20 13:31:15] php_system.DEBUG: E_DEPRECATED: array ( 'type' => 8192, 'message' => 'Implicit conversion from float 804238.7962341309 to int loses precision', 'file' => '/home/primen9/public_html/xcloner/wp-content/plugins/xcloner-google-drive/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php', 'line' => 1209, ) [] []
    [2023-02-20 13:31:13] xcloner_remote_storage.INFO: Creating the SFTP remote storage connection [] []
    [2023-02-20 13:31:13] xcloner_remote_storage.INFO: Checking validity of the remote storage SFTP filesystem [] []
    [2023-02-20 13:31:13] xcloner_remote_storage.DEBUG: Saving the storage SFTP options [] []
    [2023-02-20 13:30:58] php_system.DEBUG: E_DEPRECATED: array ( 'type' => 8192, 'message' => 'Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice', 'file' => '/home/primen9/public_html/xcloner/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php', 'line' => 91, ) [] []
    [2023-02-20 12:43:50] xcloner_remote_storage.INFO: Creating the Google Drive remote storage connection [""] []
    [2023-02-20 12:43:48] xcloner_remote_storage.INFO: Creating the SFTP remote storage connection [] []
    [2023-02-20 12:43:48] xcloner_remote_storage.INFO: Creating the SFTP remote storage connection [] []
    [2023-02-20 12:43:48] xcloner_remote_storage.INFO: Creating the FTP remote storage connection [] []
    [2023-02-20 12:42:42] xcloner_remote_storage.INFO: Creating the SFTP remote storage connection [] []
    [2023-02-20 12:42:42] xcloner_remote_storage.INFO: Checking validity of the remote storage SFTP filesystem [] []
    [2023-02-20 12:36:13] xcloner_remote_storage.INFO: Creating the Google Drive remote storage connection [""] []
    [2023-02-20 12:36:10] xcloner_remote_storage.INFO: Creating the SFTP remote storage connection [] []
    [2023-02-20 12:36:10] xcloner_remote_storage.INFO: Creating the SFTP remote storage connection [] []
    [2023-02-20 12:36:10] xcloner_remote_storage.INFO: Creating the FTP remote storage connection [] []
    [2023-02-20 12:28:09] xcloner_remote_storage.INFO: Creating the SFTP remote storage connection [] []
    [2023-02-20 12:28:09] xcloner_remote_storage.INFO: Checking validity of the remote storage SFTP filesystem [] []
    [2023-02-20 12:27:58] xcloner_remote_storage.INFO: Creating the SFTP remote storage connection [] []
    [2023-02-20 12:27:58] xcloner_remote_storage.INFO: Checking validity of the remote storage SFTP filesystem [] []
    [2023-02-20 12:22:33] xcloner_remote_storage.INFO: Creating the SFTP remote storage connection [] []
    [2023-02-20 12:22:33] xcloner_remote_storage.INFO: Checking validity of the remote storage SFTP filesystem [] []
    [2023-02-20 12:21:55] xcloner_remote_storage.INFO: Creating the SFTP remote storage connection [] []
    [2023-02-20 12:21:55] xcloner_remote_storage.INFO: Checking validity of the remote storage SFTP filesystem [] []
    • This reply was modified 3 years, 3 months ago by archprime.
    Thread Starter archprime

    (@archrime)

    Hi same error.
    Interestingly if I click the Authorize button again in Xcloner, I am directed to Microsoft OneDrive which now gives me sign error for the application “AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: ‘e20c579a-747e-49ee-9a09-566a9ebc6cc9’.”

    There is no ‘reply URL’ field anywhere within that I can find within Microsoft App registration web pages for Xcloner. The only url field I can find is the Authentication/ redirect URL field, which is set to the recommended value from my Xcloner storage locations webpage i.e. http://www.xcloner.prime.net.nz/wp-admin/

    • This reply was modified 4 years, 9 months ago by archprime.
    Thread Starter archprime

    (@archrime)

    Hi thanks for your reply. Yes I had worked through that, and application is registered, and I have been supplied the ID and secret from Microsoft – but when using these in Xcloner, Xcloner gives connection error

    Most definitely NOT resolved.

    My simple site, with all plugins other than this one disabled, and changing to default WordPress Twenty Eleven theme still gets this infinite loop bug

    • This reply was modified 5 years, 8 months ago by archprime.

    Question answered as asked (‘styling’ = ‘changing’, literally) – but sounds like you wanted to ask a different question. To which I have no answer.

    As far as I can tell, css is the only way to do much with the styling of this plugin

Viewing 15 replies - 1 through 15 (of 31 total)