Overview
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 setting are saved in as follows:
- sync.dat file is renamed to sync.dat old and 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 loosing settings.
- The error message appears when any of the above mentioned operations failed. As a symptom you'll also see sync.dat.new file in storage folder.
Same is applicable to settings.dat
Troubleshooting
Possible reasons and fixes are:
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 also be corrupted.
Possible solution:
Stop the agent. Remove sync.dat file and start the agent.
Problem 2:
Agent's access permission changed and now it has no write access to storage folder.
Possible solution:
In 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 agent's or MC'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