Ask the Community
Groups
Clean Up Out of Order Backups while Replicating - Connect IT Community | Kaseya
<main> <article class="userContent"> <h2 data-id="summary"><strong>SUMMARY</strong></h2> <p>VCD stops trying to replicate when the queue scheme is set to anything other than manual.</p> <h2 data-id="issue"><strong>ISSUE</strong></h2> <p></p> <p>When replicating, the following error condition is encountered:</p> <p><i>Failed: Unable to process initial meta info on target, out of order backup sequence detected. This instance is "paused" and may require manual intervention to resume.</i><br> </p> <h2 data-id="resolution"><strong>RESOLUTION</strong></h2> <p></p> <p>Query the database on the source to check for out of order backups. If the status is 128 then proceed with this KB.</p> <pre class="code codeBlock" spellcheck="false" tabindex="0"> psql bpdb -U postgres -c "SELECT * from bp.replication_queue WHERE status = 128"</pre> <p><br> backup_no | vault | position | status | rep_start<br>-----------+--------------+----------+--------+------------<br> 35779 | den-12xxx0 | 17579 | 128 | 1531051778<br>(1 row)<br><br><br>Use Google Chrome or Mozilla Firefox and log into the Target appliance. Navigate to:</p> <ol><li> <b>CONFIGURE</b> (page) > <b>Appliances</b> (tab) and select the name of the Target. Click the <b>Edit</b> button.</li> <li>Go to the <b>Advanced</b> (tab) and click on the <b>General Configuration</b> button at the bottom.</li> <li>Copy the word <b>allowCleanupOutOfOrderBackups</b> into the Name column.</li> <li>Click on the line item for the Section <b>Replication</b>. Set the <b>Value</b> to <b>True</b>, Click Save, Close, Save.</li> </ol><p><img alt="User-added image" height="378" src="https://us.v-cdn.net/6032361/uploads/migrated/O6J4UWEA8I5F/eid-ka03r0000015ari-feoid-00n40000003czqx-refid-0em3r000000uib1." width="500" class="embedImage-img importedEmbed-img"></img></p> <ol start="5"><li>Then, from the source system, execute the following command:</li></ol><pre class="code codeBlock" spellcheck="false" tabindex="0"> /usr/bp/bin/vcd util fix-paused-instance <target> <backup_no> </pre> <div>where <target> is the hostname of the target system, and <backup_no> should be replaced by the number of the backup that is failing to replicate.</div> <ol start="6"><li>Once the issue has been resolved, restore the <b>allowCleanupOutOfOrderBackups</b> (step 3 and 4 above value back to <b>False</b> and save the settings.</li></ol><p> </p> <h2 data-id="cause"><strong>CAUSE</strong></h2> <p><br>This occurs when attempting to replicate a backup that is older than backups on the target system. Sometimes this condition may also be present after removing bad hashes and the associated backups. </p> </article> </main>