Syncthing installation error

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version:

    G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=15
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’

  • Distro version | bookworm

  • Kernel version | Linux strych 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 GNU/Linux

  • Architecture | amd64

  • SBC model | Native PC (x86_64)

  • Power supply used | original HP t620 PSU

  • SD card used | SSD hard disk

Additional Information (if applicable)

  • Software title | Syncthing
  • Was the software title installed freshly or updated/migrated? – freshly
  • Can this issue be replicated on a fresh installation of DietPi?
    I suppose so – I’ve got almost fresh DietPi installation.

Steps to reproduce

I just trying to install Syncthing by DietPi-Software.

Expected behaviour

Installed and working Syncting.

Actual behaviour

I receive these error message:

Command: runuser -u syncthing – /opt/syncthing/syncthing --generate=/mnt/dietpi_userdata/syncthing

- Exit code: 80

- DietPi version: v9.15.2 (MichaIng/master) | HW_MODEL: 21 | HW_ARCH: 10 | DISTRO: 7

- Error log: syncthing: error: unknown flag --generate

If I’m not mistaken, it’s easy to fix — I just need to remove the --generate parameter. However, it would be nice if the issue were properly fixed. Also, I’m not sure which path I should use to generate the Syncthing config. Should it still be /mnt/dietpi_userdata/syncthing, or should I use the default path where Syncthing generates it without the --generate parameter?

uhh a new major version 2.0 of Syncthing has been released yesterday. Something we need to look into

Syntax seems to be different now

runuser -u syncthing -- /opt/syncthing/syncthing generate --home=/mnt/dietpi_userdata/syncthing

can you check if it is working for you?

Thanks for your reply!

I don’t have much time now (I everything goes right, I’ll make some tests at the evening). But at glance, it looks OK:

2025-08-13 15:14:13 INF Generating key and certificate (cn=syncthing log.pkg=syncthing)
2025-08-13 15:14:13 INF Calculated device ID (device=------- log.pkg=github)

We will adjust install procedure with next version, most likely.

1 Like

Brilliant!

I’ve discovered DietPi a few weeks ago and I’m fascinated. From yesterday not only with the project, but with the community also. Thanks!

I can confirm that this works for new installs, too. You can edit the failed command to the new syntax.

Yes fix and further adjustments will become available on upcoming release

I got the same error too.

Workaround as above.

1 Like