You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
syncthing cli --help doesn't work without a valid home path with cert.pem #7588
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
So the thing here is that the CLI code actually talks to Syncthing in order to build the --help output, because it lists the config commands and such which depend on the actual config returned by Syncthing. Though if we can't talk to Syncthing to build the config we could show some general options and explain the situation.
Though if we can't talk to Syncthing to build the config we could show some general options and explain the situation.
What to do about the 401 Unauthorized error?
The configuration that I tried running the syncthing cli --home=<path-to-home> --help command on is just my test instance of Syncthing with no HTTPS enabled, and also no user and no password set.
@tomasz1986 This PR should fix your issues: #7591
I don't know where the 401 comes from - if that persists with the PR lets debug that on the forum first.
Had a look again, and we do indeed need the config to get the list of devices, as when we construct the command line, we create commands for managing devices. :(
Making some comments on the PR on how I think this could be worked around.
>syncthing-windows-386-v1.16.2-dev.32.g41179660.exe cli --help
NAME:
syncthing-windows-386-v1.16.2-dev.32.g41179660.exe cli - Syncthing command line interface
USAGE:
syncthing-windows-386-v1.16.2-dev.32.g41179660.exe cli command [command options] [arguments...]
COMMANDS:
config Configuration modification command group
show Show command group
operations Operation command group
errors Error command group
debug Debug command group
OPTIONS:
--gui-address value Override GUI address (e.g. "http://192.0.2.42:8443") (default: "URL")
--gui-apikey value Override GUI API key (default: "API-KEY")
--home value Set configuration and data directory (default: "PATH")
--conf value Set configuration directory (config and keys) (default: "PATH")
--help, -h show help
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Apr 21, 2021
So the thing here is that the CLI code actually talks to Syncthing in order to build the
--helpoutput, because it lists the config commands and such which depend on the actual config returned by Syncthing. Though if we can't talk to Syncthing to build the config we could show some general options and explain the situation.AudriusButkevicius commentedon Apr 21, 2021
I don't think it needs to do that? Or atleast didn't need it before?
calmh commentedon Apr 21, 2021
Well I can't speak to the necessity or the history, but that appears to be what it does now.
tomasz1986 commentedon Apr 21, 2021
What to do about the
401 Unauthorizederror?The configuration that I tried running the
syncthing cli --home=<path-to-home> --helpcommand on is just my test instance of Syncthing with no HTTPS enabled, and also no user and no password set.imsodin commentedon Apr 22, 2021
@tomasz1986 This PR should fix your issues: #7591
I don't know where the 401 comes from - if that persists with the PR lets debug that on the forum first.
AudriusButkevicius commentedon Apr 22, 2021
Had a look again, and we do indeed need the config to get the list of devices, as when we construct the command line, we create commands for managing devices. :(
Making some comments on the PR on how I think this could be worked around.
tomasz1986 commentedon May 11, 2021
I think that this one has been fixed, right?
Now the output of
syncthing cli --helpisimsodin commentedon May 11, 2021
Yes, that was fixed by #7591 which was missing a
#in the commit message - thanks for noticing.