Cannot Copy File, ERROR_FILE_NOT_FOUND, ffs_tmp

Get help for specific problems
Posts: 9
Joined: 10 Aug 2022

Nxzli

Hey!

I've been testing FreeFileSync to synchronize the databases between to game servers that I have, to allow players to access their characters regardless of which server they choose to play on. The servers are on the same server box, so it is local.
I keep running into an issue where I get an error regarding copying files from the original to a temp file, and I'm not sure how to fix it. I've searched around the help forum, and haven't found anything that quite fits my issue exactly.

I understand that there's an option somewhere to remove the temp files from the process, would that be the best option for what I'm using FreeFileSync for?

File system is NTFS (have seen that mentioned), and it's a Windows server.

Any ideas?
Attachments
ffserror.png
ffserror.png (52.88 KiB) Viewed 1258 times
User avatar
Posts: 4055
Joined: 11 Jun 2019

xCSxXenon

Being a cache folder, is is possible that the file no longer exists, thus throwing an error?
Posts: 9
Joined: 10 Aug 2022

Nxzli

Being a cache folder, is is possible that the file no longer exists, thus throwing an error? xCSxXenon, 12 Aug 2022, 15:08
Now that you mention it, it is possible for a player to delete their character information, which would indeed remove the file that it's referring to in the error. Maybe someone deleted their character as it was trying to sync that character to the other server, thus causing this error? It happened twice in two days, but as it was running today, did not happen, so to me this seems that this could be the cause.

Would it be best to choose "ignore errors", or remove the ffs_tmp step in this process, then? I don't think that I would be able to prevent players from doing this, as it seems like it may just be unlucky timing.

I appreciate the help, by the way!
User avatar
Posts: 4055
Joined: 11 Jun 2019

xCSxXenon

Tough call. You would want FFS to ignore these errors if it is a cache file that is simply deleted, but you don't necessarily want FFS to ignore all errors. FFS has no way to know why a file is missing
Posts: 9
Joined: 10 Aug 2022

Nxzli

As a possible solution, I changed the minimum idle time on RealTimeSync from 5 seconds to 0, hoping that the file will sync before a deletion happens, thus syncing the deletion afterwards as well, but now I'm running into another error that I don't quite understand.
Folder pair: C:\Nycta\Servers\PoT\Server2\PathOfTitans\Saved\DatabaseCache <-> C:\Nycta\Servers\PoT\Server3\PathOfTitans\Saved\DatabaseCache
Account\769959040.json: Cannot determine sync-direction:
No change since last synchronization.
After changing to 0, I changed it to 1 and still receive this error.

It seems to stop the syncing process if it tries to synchronize a file that has not changed since the last synchronization, if I'm understanding this error correctly. How would I get it to just ignore files that have no changes instead? Currently it is identifying equal files by size and modification time, should this be changed to a different setting?
User avatar
Posts: 4055
Joined: 11 Jun 2019

xCSxXenon

It looks like you are trying to sync a folder with a file
Posts: 9
Joined: 10 Aug 2022

Nxzli

It looks like you are trying to sync a folder with a file xCSxXenon, 16 Aug 2022, 15:15
It does indeed look that way, but ...\PoT\Server2\PathOfTitans\Saved\DatabaseCache is set up to sync with ...\PoT\Server3\PathOfTitans\Saved\DatabaseCache entirely, which I thought would just sync the folders and files within the DatabaseCache folder with each other. I'll try to set up two separate syncing for the two folders I am trying to sync within DatabaseCache, and see if that helps with the error.
Posts: 9
Joined: 10 Aug 2022

Nxzli

So update, even setting up two separate synchronizations for the two folders within ...\PathOfTitans\Saved\DatabaseCache presents this issue of it trying to sync a folder to a file.
Folder pair: C:\Nycta\Servers\PoT\Server2\PathOfTitans\Saved\DatabaseCache\Account <-> C:\Nycta\Servers\PoT\Server3\PathOfTitans\Saved\DatabaseCache\Account
564236909.json: Cannot determine sync-direction:
No change since last synchronization.
Image
This is how it's set up, so I'm not sure why it's trying to sync a folder with a file sometimes, or not just ignoring files if there is no change to be synchronized.
User avatar
Site Admin
Posts: 7212
Joined: 9 Dec 2007

Zenju

What are the modification times of these two files when "No change since last synchronization"?

C:\Nycta\Servers\PoT\Server2\PathOfTitans\Saved\DatabaseCache\Account\564236909.json
C:\Nycta\Servers\PoT\Server3\PathOfTitans\Saved\DatabaseCache\Account\564236909.json

Did you change FileTimeTolerance in GlobalSettings.xml?
Posts: 9
Joined: 10 Aug 2022

Nxzli

What are the modification times of these two files when "No change since last synchronization"?

C:\Nycta\Servers\PoT\Server2\PathOfTitans\Saved\DatabaseCache\Account\564236909.json
C:\Nycta\Servers\PoT\Server3\PathOfTitans\Saved\DatabaseCache\Account\564236909.json

Did you change FileTimeTolerance in GlobalSettings.xml? Zenju, 17 Aug 2022, 07:42
Those files have been modified again since then, so unfortunately that I can't share the original time anymore. I haven't touched the FileTimeTolerance setting, or any other setting in GlobalSettings.xml.

So far, I have changed the Minimum Idle Time in RealTimeSync to 2 seconds instead of 1 or 0, let it run for a day, and it seems to have stopped throwing the errors about "no change since last synchronization". I'm going to leave it running for a couple of days to see if it starts throwing the original error again, or even the synchronization error, but I have my fingers crossed that this is all that needed to be done to fix my issue.