canton7/SyncTrayzor

config file version (37) is newer than supported version (35)

31bado opened this issue ยท 9 comments

31bado commented

I'm getting the following error "Failed to initialize config: config file version (37) is newer than supported version (35). If this is expected, use -allow-newer-config to override." on WIN 11 - Home - 22H2. I'm using the latest versions of syncthing and synctrayzor.

How to use the command "-allow-newer-config to override"?

Can you help? Thanks in advance.

I had this exact same issue. The problem was that I had launched the base Windows syncthing install prior to using synctrayzor. The synctrayzor install uses an older version at first launch, then updates to the latest version after starting. I fixed the issue by deleting the C:\Users<username>\AppData\Local\Syncthing folder and relaunch synctrayzor. When it launches, it will repopulate the syncthing folder.

31bado commented

I had this exact same issue. The problem was that I had launched the base Windows syncthing install prior to using synctrayzor. The synctrayzor install uses an older version at first launch, then updates to the latest version after starting. I fixed the issue by deleting the C:\Users<username>\AppData\Local\Syncthing folder and relaunch synctrayzor. When it launches, it will repopulate the syncthing folder.

Hi as-loan. Ok, I'll try this solution and see if it works for me.

Thanks!๐Ÿ‘

I had this exact same issue. The problem was that I had launched the base Windows syncthing install prior to using synctrayzor. The synctrayzor install uses an older version at first launch, then updates to the latest version after starting. I fixed the issue by deleting the C:\Users\AppData\Local\Syncthing folder and relaunch synctrayzor. When it launches, it will repopulate the syncthing folder.

bro you are my hero ๐Ÿ‘

Just want to confirm that this still works. I'm not sure what a possible code solution would be to this. More of a wiki entry in my opinion.

31bado commented

Hi Jesse. I upgraded to last version of Syncthing, didn't modify synctrayzor and, till now, it's working.

Oh sorry, I seem to have been a bit ambiguous. I meant to say that the solution of deleting the original Syncthing folder from AppData was a solution that still works. It's how I fixed my install last night.

31bado commented

Ok! Got it. ๐Ÿ‘

Alternative is to use the command line option as indicated in the error message.

Open settings (on the right side, toward the bottom)
Switch to syncthing tab
Open advanced section
add -allow-newer-config into the command line parameters box

Now restart syncthing. It will start, then upgrade to the latest version.

Once it has started OK, go back into the settings and remove the option. It will prompt to restart syncthing.

I suspect the option exists to provide this upgrade route without losing any config. It's not clear how much syncthing actually tries to do with the config before it switches to the new version. The syncthing site says

--allow-newer-config
Try loading a config file written by a newer program version, instead of failing immediately.

As the config is an XML file I expect (providing they do not introduce some change in the xml layout that breaks older code) it will load and the autoupgrade function will kick in before it does anything else.

I had this exact same issue. The problem was that I had launched the base Windows syncthing install prior to using synctrayzor. The synctrayzor install uses an older version at first launch, then updates to the latest version after starting. I fixed the issue by deleting the C:\Users\AppData\Local\Syncthing folder and relaunch synctrayzor. When it launches, it will repopulate the syncthing folder.

It works!