Rcd rc sync logging

What is the problem you are having with rclone?

rc sync/sync returns an empty array instead of list of copied files.

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

rclone v1.62.2
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-71-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.2
- go/linking: static
- go/tags: none

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

local test folders

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

rcd backend

rclone rcd --rc-user testu --rc-pass password --rc-web-gui --rc-web-gui-no-open-browser --rc-enable-metrics --rc-addr $IP:5572 &

rc sync

rclone rc sync/sync srcFs=/srv/backup/ dstFs=/srv/backup2/ --url=$IP:5572 --rc-user=testu --rc-pass=password --rc-enable-metrics --log-file /srv/rclone_logs/`date -I`.log --log-level INFO
Actual Output
{}
Expected output
2023/06/15 13:21:00 INFO  : test3: Copied (new)
2023/06/15 13:21:00 INFO  : test4: Copied (new)
2023/06/15 13:21:00 INFO  : test: Copied (new)
2023/06/15 13:21:00 INFO  : test5: Copied (new)
2023/06/15 13:21:00 INFO  : test2: Copied (new)
2023/06/15 13:21:00 INFO  : test1: Copied (new)
2023/06/15 13:21:00 INFO  : test8: Copied (new)
2023/06/15 13:21:00 INFO  : test7: Copied (new)
2023/06/15 13:21:00 INFO  : test6: Copied (new)
2023/06/15 13:21:00 INFO  : test9: Copied (new)
2023/06/15 13:21:00 INFO  : 
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Transferred:           10 / 10, 100%
Elapsed time:         0.0s

Is it an expected behavior that rc sync/sync returns an empty JSON object instead of a list of actual transferred items?
I would need a list of what have been transferred but I can't get it to work like it works with rclone sync --log-level INFO. What am I missing here?

you have to ask:) core-stats

1 Like

For me core-stats doesn't show the list of transferred file but total number of transfers.

{
	"bytes": 0,
	"checks": 0,
	"deletes": 0,
	"elapsedTime": 59660.441234734,
	"errors": 0,
	"fatalError": false,
	"renames": 0,
	"retryError": false,
	"speed": 0,
	"transferTime": 0.000637648,
	"transfers": 10
}

However, core/transferred gives back a detailed list like:

{
	"transferred": [
		{
			"bytes": 0,
			"checked": false,
			"completed_at": "2023-06-15T13:06:23.649426465Z",
			"error": "open /srv/backup2/test: permission denied",
			"group": "job/4822",
			"name": "test",
			"size": 0,
			"started_at": "2023-06-15T13:06:23.649313422Z"
		},
		{
			"bytes": 0,
			"checked": false,
			"completed_at": "2023-06-15T13:07:12.021755458Z",
			"error": "",
			"group": "job/4862",
			"name": "test6",
			"size": 0,
			"started_at": "2023-06-15T13:07:12.021638262Z"
		}
	]
}

I can work with this. Thanks for your help! :slight_smile:

yes core/stats was just a hint where to look:)

I also think you can still if needed to use --log-file and parse data from there.

Please note that rc interface for sure can be improved - any suggestions and PRs even more are welcomed:)

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