SyncTrayzor icon indicating copy to clipboard operation
SyncTrayzor copied to clipboard

config.xml got destroyed

Open lukeIam opened this issue 7 years ago • 16 comments

A few days ago SyncTrayzor stoped working with this error message on startup (haven't touched any config file): image

Today a had a look an the config.xml: It only contains 2455 \0 chars.

After deleting the config.xml SyncTrayzor is working again and the config.xml contains valid xml again. -> So for me the problem is fixed - this issue is just for letting you know that SyncTrayzor may corrupts it's config file.

lukeIam avatar Jan 02 '18 12:01 lukeIam

Other people have seen similar things after upgrading Windows. One person saw lots of Syncthing's log files filled with null bytes as well. I'll have another look to see if my code might be responsible somehow, but without a repro this sort of thing is hard to pin down.

canton7 avatar Jan 03 '18 13:01 canton7

I haven't heard any more of these reports, so I think they must have been related to the windows update that some people were linking it to. Closing, please reopen if you see it pop up again.

canton7 avatar Feb 28 '18 13:02 canton7

One question. Synctrayzor uses the config.xml file to store configuration (folders, etc.). This file gets corrupted and it is deleted. Synctrayzor is restarted, and the file is rebuilt, and everything works again. How? Where does Synctrayzor recover the config information (synced folders, etc.)?

locksmithone avatar Apr 16 '18 20:04 locksmithone

That stuff is stored in Syncthing's config.xml, which is in a different place. SyncTrayzor's just holds the settings in File -> Settings.

canton7 avatar Apr 16 '18 21:04 canton7

This just happened to my father’s machine. No access to debug I’m afraid, but another sample for you - clearly not fixed.

nickcmaynard avatar Dec 12 '18 23:12 nickcmaynard

Thanks for reporting. All of the cases that I've been able to dig into were either strongly correlated with a Windows update, or other files in the same directory were corrupted in the same way. If anyone has any information which contradicts either of those, please post it.

canton7 avatar Dec 18 '18 12:12 canton7

Happens regularly here about once a month. I wish it could be fixed. Deleting config.xml usually clears this, so no other files seem to be corrupted.

AndrewSav avatar May 07 '21 01:05 AndrewSav

Same here, without reason. Happened on may, the 3rd (I copied the corrupted file just in case) and today as well. No system crash or whatsoever.

Merinorus avatar Oct 15 '21 10:10 Merinorus

@canton7 Could you re-open please? It is still happening.

AndrewSav avatar Oct 16 '21 22:10 AndrewSav

Can you both confirm whether the corruption is a block of zero bytes being written to the start of the file, or something else?

canton7 avatar Oct 16 '21 23:10 canton7

I cannot confirm this since it's not clear how to reproduce it. I will make sure to make a copy it happens next time.

AndrewSav avatar Oct 17 '21 01:10 AndrewSav

Yes indeed, it's a block of zero bytes. File size may vary.

2020-05-03 config.xml.txt 2021-10-14 config.xml.txt

Merinorus avatar Oct 17 '21 17:10 Merinorus

@canton7 can this be re-opened please?

AndrewSav avatar Oct 19 '21 02:10 AndrewSav

Hi All, My tip : Replace autostart registry entry with the name of this batch.

Create a batch file to start syncthing after a good backup 👍

del %~dp0debug.log del %~dp0data\syncthing\syncthing.log

7z.exe a "%~dp0backup.7z" . -r

syncthing.exe -upgrade syncthing -home=%~dp0data\syncthing

You need to download 7Zip binaries in same folder.

Regards. Sam !start - Syncthing.bat.txt

hibou3030 avatar Dec 23 '21 20:12 hibou3030

FWIW I'm still seeing this on occasion on otherwise well-behaved systems. SyncTrayzor logs and nully config

ProactiveServices avatar Aug 01 '22 17:08 ProactiveServices

It occurred twice the last few days after Windows Update KB5016616 (os-builds 19042.1889, 19043.1889 en 19044.1889). Never had this problem before.

Plutootje avatar Aug 14 '22 08:08 Plutootje