-
-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not portable between PCs? #272
Comments
Normally this For SyncTrayzor Portable to work with the <SyncthingPath>%EXEPATH%\data\syncthing.exe</SyncthingPath>
<SyncthingCustomHomePath>%EXEPATH%\data\syncthing</SyncthingCustomHomePath> I believe in your case you have got SyncTrayzor Portable 'working' by misconfiguring it to take setting from If you started with the installer version and have formatted recently, you should have retained a copy |
But as you can see further down in that issue, I also fixed the config as you described there. If those 2 paths are the only difference between a portable and installed copy, then my data is fully patched to be portable now. Those paths also refer to syncthing, not to my data. If they were broken, synctrayzor wouldn't start syncthing. It does start syncthing, it just doesn't load my data anymore. Is the data in the data-folder tied to the host OS in any way? For example the unique key syncthing generates for each pc, can it be re-used after creation or does it need to match the current host? Does synctrayzor protect the data folder with an OS-derived unique key for security? Edit: come to think of it, it's starting to sound more like a syncthing issue than a synctrayzor issue. |
No, it doesn't. The portable version can be moved between machines. Whatever's going on is something else.
What's "it" here? Syncthing's config, or SyncTrayzor's config? SyncTrayzor loads the config that's in the config file. The location of the config file is specified in The portable version tells Syncthing to puts its configuration in
No.
This is stored in the same location as Syncthing's config, which is described above. It sounds like you tried to convert from the installed version to the portable version, by copying your |
Ok, good
No, I used the installed version first. Then I downloaded the portable version, copied over the data folder, and fixed the 2 mentioned paths in config.xml. Does more need to change to make an installed version's data folder portable? SyncTrayzor.exe.config <PathConfiguration>
<LogFilePath>%EXEPATH%\logs</LogFilePath>
<ConfigurationFilePath>%EXEPATH%\data\config.xml</ConfigurationFilePath>
<ConfigurationFileBackupPath>%EXEPATH%\data\config-backups</ConfigurationFileBackupPath>
<CefCachePath>%EXEPATH%\data\cef\cache</CefCachePath>
</PathConfiguration> config.xml <SyncthingPath>%EXEPATH%\data\syncthing.exe</SyncthingPath>
<SyncthingCustomHomePath>%EXEPATH%\data\syncthing</SyncthingCustomHomePath> I tried to run synctrayzor straight from the external disk to which I had copied it for my windows reinstall. It did the exact same thing: loaded the default config instead of the existing one. Short of sending you my whole synctrayzor copy with data folder and everything, is there something else I can check? Something else that differs between the data folders of an installed version and a portable version that would cause this? |
Yes. Now that we know what the problem is, there are two other things you need to check:
EDIT: Aah, you're the guy who opened #271: that provides a lot of context around your setup that I hadn't realised. |
I took a fresh copy from my ext disk (which has the fixed paths) and copied my original AppData\Local\Syncthing into its data\syncthing, overwriting what was there: same result :/ |
Right, post |
Is the SyncthingApiKey in config.xml supposed to be secret? I don't mind posting even a zip of my whole thing here, but I'd rather not just give away free access to my stuff by including the auth keys and whatnot :) Not that I don't trust you, but this is publicly visible... |
If you want, you can email them: my email's on my profile page. The API key will only matter if you've told Syncthing to listen on something other than localhost. |
You need to change (Alternatively, there's a checkbox for this in the settings: uncheck "Use Syncthing's default database location"). |
Ah, it was in config.xml too? I was looking at that same key but in SyncTrayzor.exe.config, where it already was true. Sorry I missed that, I didn't think it'd be in 2 places Just ran it and yes, now it works :) Thanks Perhaps all these pitfalls could be put onto a wiki page for future reference? |
SyncTrayzor.exe.config just contains the template for the default configuration, and some things which aren't user-editable: you should never edit it yourself (unless you're a network admin setting up default installs for your users). Converting from Installed -> Portable is not something that's currently supported: it's not documented, and you're (in theory) on your own. The minute I start documenting something, it's then something that I need to support and cannot break. I'm having a think about what can be done to make it possible for the average user. |
The next version will support copying the config between the portable and installed version, and the README will have instructions on how to copy Syncthing's config around. |
Awesome, thanks |
Does synctrayzor by any chance encrypt its data with a unique OS-generated key or something? Like how vivaldi encrypts sensitive browser profile data with such a key to secure it and prevent copying?
Today I clean reinstalled windows, and copied over all my stuff, but synctrayzor (portable version) is now broken: it now loads the default config instead of my old config that I copied over along with it.
Does synctrayzor purposefully prevent itself from just being copied like that, or is the problem likely to be something else, related to my particular setup/data?
The text was updated successfully, but these errors were encountered: