OneDrive - 503 errors

What is the problem you are having with rclone?

A previously working OneDrive Sync has stopped working and I am getting serviceNotAvailable errors. I have checked OneDrive status and created new API keys and re-authorised onedrive to see if that fixes the issue. I have tried with --tpslimit set to 1 as I had seen this fixed similar issues

What is your rclone version (output from rclone version)

rclone v1.53.3

  • os/arch: linux/arm
  • go version: go1.15.5

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

Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-1025-raspi armv7l)

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

OneDrive for Business

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

rclone -vv --tpslimit 1 ls sdn_onedrive:

The rclone config contents with secrets removed.

[sdn_onedrive]
type = onedrive
token = {"access_token":"xxx,","expiry":"2021-01-12T12:35:07.743317531Z"}
drive_id = xxx
drive_type = business
client_id = xxx
client_secret = xxxx

A log from the command with the -vv flag

rclone -vv --tpslimit 1 ls sdn_onedrive:
2021/01/12 11:52:03 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "-vv" "--tpslimit" "1" "ls" "sdn_onedrive:"]
2021/01/12 11:52:03 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/01/12 11:52:03 INFO  : Starting HTTP transaction limiter: max 1 transactions/s with burst 1
2021/01/12 11:52:03 DEBUG : Creating backend with remote "sdn_onedrive:"
2021/01/12 11:52:03 DEBUG : pacer: low level retry 1/10 (error serviceNotAvailable: Service unavailable)
2021/01/12 11:52:03 DEBUG : pacer: Rate limited, increasing sleep to 20ms
2021/01/12 11:52:04 DEBUG : pacer: low level retry 2/10 (error serviceNotAvailable: Service unavailable)
2021/01/12 11:52:04 DEBUG : pacer: Rate limited, increasing sleep to 40ms
2021/01/12 11:52:05 DEBUG : pacer: low level retry 3/10 (error serviceNotAvailable: Service unavailable)
2021/01/12 11:52:05 DEBUG : pacer: Rate limited, increasing sleep to 80ms
2021/01/12 11:52:06 DEBUG : pacer: low level retry 4/10 (error serviceNotAvailable: Service unavailable)
2021/01/12 11:52:06 DEBUG : pacer: Rate limited, increasing sleep to 160ms
2021/01/12 11:52:07 DEBUG : pacer: low level retry 5/10 (error serviceNotAvailable: Service unavailable)
2021/01/12 11:52:07 DEBUG : pacer: Rate limited, increasing sleep to 320ms
2021/01/12 11:52:08 DEBUG : pacer: low level retry 6/10 (error serviceNotAvailable: Service unavailable)
2021/01/12 11:52:08 DEBUG : pacer: Rate limited, increasing sleep to 640ms
2021/01/12 11:52:09 DEBUG : pacer: low level retry 7/10 (error serviceNotAvailable: Service unavailable)
2021/01/12 11:52:09 DEBUG : pacer: Rate limited, increasing sleep to 1.28s
2021/01/12 11:52:10 DEBUG : pacer: low level retry 8/10 (error serviceNotAvailable: Service unavailable)
2021/01/12 11:52:10 DEBUG : pacer: Rate limited, increasing sleep to 2s
2021/01/12 11:52:11 DEBUG : pacer: low level retry 9/10 (error serviceNotAvailable: Service unavailable)
2021/01/12 11:52:12 DEBUG : pacer: low level retry 10/10 (error serviceNotAvailable: Service unavailable)
2021/01/12 11:52:12 Failed to create file system for "sdn_onedrive:": failed to get root: serviceNotAvailable: Service unavailable

Weirdly after two days of not working (and OneDrive not showing any status errors) it appears to have started working again! :expressionless:

OK, the issue is back. Is anyone else having issues with OneDrive?

I have noted that other users say onedrive gets overloaded at particular times of day or weekday so it might be worth trying to find a quiet time.