Error 'Could not save the settings file' relates only to agents' internal settings and doesn't concern synced files. Each agent keeps its settings in special files inside its storage folder - sync.dat and settings.dat. Periodically, current settings are saved as follows:
- sync.dat file is renamed to sync.dat.old, and the agent's current settings are written to sync.dat file again. Periodically - means every 10 minutes by default and at exiting agent.
- To ensure correct writing of current settings, they are written to sync.dat.new file, which is renamed into sync.dat. This operation takes less than a second but prevents losing settings.
- The error message appears when any of the above-mentioned operations fail. As a symptom, you'll also see sync.dat.new file in the storage folder.
The same applies to settings.dat
Generally, restarting the Resilio Agent is enough to fix the problem. However, there might be cases when some other solution is required.
Problem 1: Agent was not shut down correctly, for example, at poweroff. Even though it will attempt to restore settings from sync.dat.old, this one may need to be fixed, too.
Possible solution: Stop the agent. Remove the sync.dat file and start the agent.
Problem 2: Agent's access permission changed, and now it has no write access to the storage folder.
Possible solution: In the process list, check under which user agent runs and ensure that this user has RW access to its storage.
Problem 3: Improper value in its settings. This usually happens when editing the agent's or Management Console's config manually and either mistyping or misconfiguring anything in there.
Possible solution: Stop the agent. Remove sync.dat file and start the agent.
Error code SE_SETTINGS_NO_ACCESS