Skip to content

Cli commands for defaults folder config don't set value for versioning #9916

@ShPakvel

Description

@ShPakvel

What happened?

Following cli commands for defaults folder config don't set value for versioning.
From GUI it is possible to set this values for default folder config.
And similar commands for specific folder created also work.

syncthing cli config defaults folder versioning type set simple
syncthing cli config defaults folder versioning params set keep 5
syncthing cli config defaults folder versioning params set cleanoutDays 0

Here is example of similar commands for specific folder that work.

syncthing cli config folders specific_folder_name versioning type set simple
syncthing cli config folders specific_folder_name versioning params set keep 5
syncthing cli config folders specific_folder_name versioning params set cleanoutDays 0

I am testing it inside official syncthing docker image container. "image: syncthing/syncthing:latest".

version from cli:

/ # syncthing cli show version
{
  "arch": "amd64",
  "codename": "Gold Grasshopper",
  "container": true,
  "date": "2025-01-09T20:47:10Z",
  "extra": "",
  "isBeta": false,
  "isCandidate": false,
  "isRelease": true,
  "longVersion": "syncthing v1.29.1 \"Gold Grasshopper\" (go1.23.4 linux-amd64) docker@github.syncthing.net 2025-01-09 20:47:10 UTC [noupgrade]",
  "os": "linux",
  "stamp": "1736455630",
  "tags": [
    "noupgrade"
  ],
  "user": "docker",
  "version": "v1.29.1"
}

Syncthing version

v1.29.1

Platform & operating system

Limux amd64

Browser version

No response

Relevant log output

/ # syncthing cli config defaults folder versioning type set simple
/ # syncthing cli config defaults folder versioning type get
simple
/ # syncthing cli config defaults folder versioning params set keep 5
/ # syncthing cli config defaults folder versioning params get keep
syncthing: error: unsupported kind: invalid [utils.go:94]
/ # syncthing cli config defaults folder versioning params set cleanoutDays 0
/ # syncthing cli config defaults folder versioning params get cleanoutDays
syncthing: error: unsupported kind: invalid [utils.go:94]
/ # syncthing cli config defaults folder versioning dump-json
{
  "type": "simple",
  "params": {},
  "cleanupIntervalS": 3600,
  "fsPath": "",
  "fsType": "basic"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA problem with current functionality, as opposed to missing functionality (enhancement)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions