Mirror mode hanging when file is deleted (either left or right)

Get help for specific problems
Posts: 4
Joined: 8 Sep 2022

Zoltrix

Hi all,

Running version 11.25 on Windows 10. I've setup a Windows Scheduled Task to mirror one data set to another server. Copying newly creating files from "Left" to "Right" works fine.

I then tested deleting a file from the "Left" side, and the task then runs indefinitely and doesn't complete. A "sync.ffs_lock" file is created in both locations. If I reverse the process, eg, delete a file on the "Right", the same thing happens. The Scheduled Task runs indefinitely and the lock file remains.

For the Scheduled Task to operate again, I need to stop it, and remove the lock files.

No log file is created under "C:\Users\admin\AppData\Roaming\FreeFileSync\Logs" when this happens.

My batch file looks as follows:
<?xml version="1.0" encoding="utf-8"?>
<FreeFileSync XmlType="BATCH" XmlFormat="17">
    <Compare>
        <Variant>TimeAndSize</Variant>
        <Symlinks>Exclude</Symlinks>
        <IgnoreTimeShift/>
    </Compare>
    <Synchronize>
        <Variant>Mirror</Variant>
        <DetectMovedFiles>false</DetectMovedFiles>
        <DeletionPolicy>RecycleBin</DeletionPolicy>
        <VersioningFolder Style="Replace"/>
    </Synchronize>
    <Filter>
        <Include>
            <Item>*</Item>
        </Include>
        <Exclude>
            <Item>\System Volume Information\</Item>
            <Item>\$Recycle.Bin\</Item>
            <Item>\RECYCLE?\</Item>
            <Item>*\thumbs.db</Item>
        </Exclude>
        <TimeSpan Type="None">0</TimeSpan>
        <SizeMin Unit="None">0</SizeMin>
        <SizeMax Unit="None">0</SizeMax>
    </Filter>
    <FolderPairs>
        <Pair>
            <Left>\\192.168.0.2\Docs</Left>
            <Right>\\192.168.0.6\Backups\Docs</Right>
        </Pair>
    </FolderPairs>
    <Errors Ignore="false" Retry="0" Delay="5"/>
    <PostSyncCommand Condition="Completion"/>
    <LogFolder/>
    <EmailNotification Condition="Always"/>
    <Batch>
        <ProgressDialog Minimized="true" AutoClose="true"/>
        <ErrorDialog>Show</ErrorDialog>
        <PostSyncAction>None</PostSyncAction>
    </Batch>
</FreeFileSync>
Posts: 4
Joined: 8 Sep 2022

Zoltrix

Think I've fixed it, I changed:
<DeletionPolicy>RecycleBin</DeletionPolicy>
to
<DeletionPolicy>Permanent</DeletionPolicy>
I'm guessing the RecycleBin option doesn't work?
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

It's a bug in your configuration :
 <ErrorDialog>Show</ErrorDialog>
Ideally, FFS should detect these.
Posts: 4
Joined: 8 Sep 2022

Zoltrix

Detect what sorry?
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

Fixed in the next version: viewtopic.php?t=8535#p39347