--max-transfers not exiting with soft/cautious

What is the problem you are having with rclone?

Trying to sync from B2 to pCloud, with a soft cutoff for --max-transfer. It pauses, but never stops. I waited an hour. I'm transferring a Restic repository, so no file is much over 4MB, and any existing transfers should have been finished fairly quickly.

What is your rclone version (output from rclone version)

rclone v1.54.1

Which OS you are using and how many bits (eg Windows 7, 64 bit)

macOS Catalina

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

B2 --> pCloud

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

 rclone -P --stats-one-line --fast-list --delete-after --max-transfer=1000000000B --cutoff-mode=soft --log-level DEBUG sync b2:akrabu-restic pc:Backup/restic-repo


 rclone -P --stats-one-line --fast-list --delete-after --max-transfer=1000000000B --cutoff-mode=soft --log-level DEBUG sync b2:akrabu-restic pc:Backup/restic-repo

(hard exits properly)

The rclone config contents with secrets removed.

type = b2
account =
key =
hard_delete = true

type = pcloud
token = {"access_token":"xxxxxxxxxx","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}

A log from the command with the -vv flag

2021/03/11 21:04:18 DEBUG : rclone: Version "v1.54.1" starting with parameters ["rclone" "-P" "--stats-one-line" "--fast-list" "--delete-after" "--max-transfer=1000000000B" "--cutoff-mode=cautious" "-vv" "sync" "b2:akrabu-restic" "pc:Backup/restic-repo"]
2021/03/11 21:04:18 DEBUG : Using config file from "/Users/smitmark/.config/rclone/rclone.conf"
2021/03/11 21:04:18 DEBUG : Creating backend with remote "b2:akrabu-restic"
2021/03/11 21:04:19 DEBUG : Creating backend with remote "pc:Backup/restic-repo"


2021-03-11 20:40:41 INFO  : data/0f/0f7d61bf9728360708096bb5270d8dae40f37b72766356b923b8b17ad3b388da: Copied (new)
2021-03-11 20:40:42 DEBUG : data/0f/0f8bcd6955b6176fb87a3e62723068a5faa3a6e7083223bf2ccd72c8f38f4953: SHA-1 = bad58ffa07346a224c3811058d15d7908428dc07 OK
2021-03-11 20:40:42 INFO  : data/0f/0f8bcd6955b6176fb87a3e62723068a5faa3a6e7083223bf2ccd72c8f38f4953: Copied (new)
2021-03-11 20:40:42 NOTICE: Max transfer limit reached as set by --max-transfer - stopping transfers
2021-03-11 20:40:42 DEBUG : data/0f/0f86d22f56f07d7ef6ece49d7c8e3b006666905b053d16188813e10946dda84a: SHA-1 = eb92ebf73fcd6681274aeca490d1a26a250f8182 OK
2021-03-11 20:40:42 INFO  : data/0f/0f86d22f56f07d7ef6ece49d7c8e3b006666905b053d16188813e10946dda84a: Copied (new)
2021-03-11 20:40:42 DEBUG : data/0f/0f90fd2068b3c86341e050cb9420e916b82b6858b8cf611338f20bdb7b12b8c1: SHA-1 = 1e31e98016c3d282d240a3fa0fe8e43d6d0daa60 OK
2021-03-11 20:40:42 INFO  : data/0f/0f90fd2068b3c86341e050cb9420e916b82b6858b8cf611338f20bdb7b12b8c1: Copied (new)
2021-03-11 20:40:43 DEBUG : data/0f/0f9344c13a59d13165df88d12833eeb20e1774b917b4a627211b35aac720dbe5: SHA-1 = 3a8cd590d049d1eddd9d504873194130a5cd74f8 OK
2021-03-11 20:40:43 INFO  : data/0f/0f9344c13a59d13165df88d12833eeb20e1774b917b4a627211b35aac720dbe5: Copied (new)
953.594M / 44.387 GBytes, 2%, 8.498 MBytes/s, ETA 1h27m16s (xfr#215/10223)

(it pauses here indefinitely with nothing updating, and I have to CTRL+C to exit)

Exactly what I was looking for. You´re a lifesaver, thanks!

Hmm, instead of pressing CTRL-C can you press CTRL-\ and paste the resulting backtrace (it may be quite long!)

If CTRL-\ doesn't work in macOS then you'll need to kill -QUIT the process from a different terminal.

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