user and password in config export; crash of syncthing-fork by imported config without <user>, <password>

Hello,

I’m runnig syncthing 1.12.0 on different Android devices.

I want to test syncthing-fork and run into some problems:

  1. I made a “configuration export” with syncthing. Than I stopped syncthing, installed syncthing-fork and run it.
  2. Importing the config file looks good, all folders and devices are there.
  3. But if I start the WEB-Gui, i’m asked about “user” and Password", I newer defined at syncthing…
  4. Edit config.xml of the exported config, removing the lines and and doing an import again.
  5. If I now try to start the WEB-GUI, syncthing-fork crashed…

Questions:

Is there a standard login (user: syncthing, password:???) used for the exported config?

How to get syncthing-fork up and running without “password”?

Where is the configuration path at Android 12, 14, devices, I can not locate by myself?

Thanks for your help.

Ralf

I think part of the problem may be because you’re trying to export your config from the very old version of Syncthing into the current version of Syncthing-Fork. I would try one of the two ways:

  1. Upgrade your Syncthing app to the newest version first, then export the config and try to import it into Syncthing-Fork.

  2. Install a similarly old version of Syncthing-Fork and try to import your config there. Then, if everything works correctly, update the Fork to the newest release.

Also, please to make sure that you don’t try to run both Syncthing and Syncthing-Fork at the same time, as that won’t work without additional tweaking (e.g. setting different GUI ports for each of them, etc.).

Sorry, my failure, typo: Both version, syncthing and syncthing-fork, are 1.28.0…

If that’s the case, then I’d suggest to:

  1. Export your config from the Syncthing app.
  2. Uninstall the Syncthing app.
  3. Install Syncthing-Fork.
  4. Import the exported config.

If you’re still asked for the password after doing all that, please also try rebooting your device. I’ve personally had an issue in the past where the Syncthing binary continued to run in the background even after uninstalling the app. Rebooting the phone cleared it.

  • I uninstalled syncthing and syncthing-fork.
  • Install syncthing-fork again.
  • Import the config.xml and start the WEB-GUi: asking for “password”
  • Uninstall syncthing-fork again.
  • Reboot the device.
  • Install syncthing-fork again.
  • Import the config.xml and start the WEB-GUi: asking for “password” again…

This is weird. The username is “syncthing” and the password is your API key (which you can find e.g. in the config file), so you can probably log into the GUI this way, but the problem is that the GUI is supposed to load automatically without requiring the user to input the login information manually.

@Catfriend1 I’m sorry to bother you, but have you possibly got any idea what the problem may be about?

With the API key as password, I got access to the WEB-GUI.

Then going to “configuration; GUI”, and emty “Password”, “user” → save.

Closing WEB-GUI, opening WEB-GUI: syncthing-fork crashed…

Yes, you cannot modify those values inside the Web GUI on Android. The crash may be specific to the Fork though, since as far as I remember, in the official app, if you tried to clear those settings, they would just revert to the default values on restart.

In short, the user has to stay “syncthing” and the password has to be your API key. However, the Web GUI itself is supposed to load without asking you to provide any of those, so it does seem to be some kind of a bug.

Maybe setting a new username and password from the wrapper’s settings UI helps here. Do not edit config.xml manually ;-).

…I don’t want to use a password…?

I like the behavior to just start the WEB-GUI, like syncthing is doing.

Okay. So all locally running apps can access it, too… :thinking: Using the web gui only is not fully supported by the wrapper but mostly possible.