Cannot find the following folders:

Get help for specific problems
Posts: 1
Joined: 19 Sep 2012

qwib

Sorry for starting a new thread but I did not want to hijack the other threads on the same issue.

The issue with the Cannot find the following folders: is that the ending server is running out of connections. I am syncing with a Windows 2008 Server and each time the FreeFileSync batch task runs, it starts a new session with the server and does not close the previous session (Connection). The GUI uses the same session no matter how many times you run it and does not close it.

So if my Windows Server allows 10 connections, the 11th connection from FreeFileSync will result in the 'Cannot find the following folders' Error. Since the GUI uses the same session, you will not see the error, just when you are running in batch mode.

Even though the Session is Idle, it is still connected and Windows is not auto disconnecting it after the idle time-out period. I thought that it was an issue with Windows and changed my session time-out to 5 minutes. Because it still remains connected, even though it is idle, windows is not dropping it.

You can confirm this by watching the Shared Folders/Session within Computer Management on the target server. I am using Windows, but would assume this would be with any server that has limited connections.

It has been a long time since I have used C++ but will take a look to see if there is something there, but I would think the developers would be able to find it quickly. Does not seem like it is recycling the session (connections) in batch correctly like it does in GUI mode. Probably should just close the session/connection when in batch mode. Even GUI mode as it is taking a connection and if you run it once a day, you lose access to that connection for other things.
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

FFS has some logic of the kind "if not connected, establish connection". It seems this should be refined to close all connections on exit that FFS had connected.
Posts: 3
Joined: 3 Mar 2016

backup-backup-backup

Yes, please! I am looking forward to such a refinement. I consider this as a serious security concern. Leaving an open connection can be very dangerous when some malware finds a way on your PC. New cryptowall variants are able to encrypt all your files over the local network if they find an open connection to remote shares even if not mapped to a drive letter in Windows. That means ransomware is going to disrupt your NAS backups too!
So, yes, please do close on exit all connections that FFS had opened, and remove from Windows all credentials that FFS had added in case the user granted a permanent authorization.
If some users like better current behaviour, then leave it as an available option in FFS settings, but please warn users that it is a security risk.
Posts: 1
Joined: 29 Mar 2016

rrandaxhe

+1

Same issue here on my windows server 2008.
Please provide a fix, I cannot run any batch synchro!
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

Updates will be posted here: viewtopic.php?t=2295