Core/command does not respect flags from rcd

What is the problem you are having with rclone?

I am not sure if this is a bug or the expected behavior, but I am using the RC api and finding that backend commands are not respecting the initialization flags; notably config.

My config file is below but it is just a demo

In one terminal: $rcd -vv --rc-no-auth --config config.cfg

Then in the others:

$ rclone rc config/listremotes
	"remotes": [

$ rclone rc core/command command=listremotes
	"error": false,
	"result": "**my normal config**"

Is this the expected behavior?

If not, is there a way, without knowing the flags used to start rcd, t get the same global flags?

Run the command 'rclone version' and share the full output of the command.

	"arch": "arm64",
	"decomposed": [
	"goTags": "cmount",
	"goVersion": "go1.21.5",
	"isBeta": false,
	"isGit": false,
	"linking": "dynamic",
	"os": "darwin",
	"version": "v1.65.1"

Which cloud storage system are you using? (eg Google Drive)


The command you were trying to run (eg rclone copy /tmp remote:tmp)

See above

The rclone config contents with secrets removed.

N/A except that it is one specified. But for the sake of completeness

type = alias
remote = myremote:

A log from the command with the -vv flag

2024/01/12 15:21:22 DEBUG : rc: "config/listremotes": with parameters map[]
2024/01/12 15:21:22 DEBUG : Using config file from "/Users/jwinokur/git_home/dfb/config.cfg"
2024/01/12 15:21:22 DEBUG : rc: "config/listremotes": reply map[remotes:[demo]]: <nil>

2024/01/12 15:20:28 DEBUG : rc: "core/command": with parameters map[_request:0x1400083e400 _response:0x14000924000 command:listremotes]
2024/01/12 15:20:28 DEBUG : rc: "core/command": reply map[error:false result:**my normal config**]: <nil>

Why are you using core/command? This in my opinion is a horrendous bodge I merged in a weak moment :wink:

There should be rc commands for everything you need to do so I'd recommend you use those, and if there aren't rc commands then please make an issue!

Okay. The specific command was config paths. Am I correct that it’s missing?

1 Like

I made an issue: Add support for "config paths" to the rc API · Issue #7568 · rclone/rclone · GitHub

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.