Skip to content

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

Closed

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) [email protected] 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"
}

Activity

  1. added
    bug
    needs-triage
    on Jan 11, 2025
  2. calmh commented on Jan 11, 2025

    @calmh
    Member

    Setting the type works, but not setting params.

  3. removed
    needs-triage
    on Jan 11, 2025
  4. added a commit that references this issue on May 8, 2025
    8475a9a
  5. added a commit that references this issue on May 9, 2025
    702ed8e
  6. added a commit that references this issue on May 16, 2025
    bacf506
  7. added this to the v1.29.7 milestone on May 21, 2025
  8. added a commit that references this issue on May 26, 2025
    e065eee
  9. added a commit that references this issue on Jun 8, 2025
    8b3462a
  10. added
    frozen-due-to-age
    on Jul 1, 2026
  11. locked and limited conversation to collaborators on Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions