Problem with restic rclone ondrive setup

Hi,

I have some trouble to do backups using restic/ rclone/onedrive combination.

rclone alone (sync, copy, ls, lsd, …) works fine with onedrive.

But when I try to include restic in the chain, I get following errors.

Can somebody help, google could unfortunately not.

restic -r rclone:onedrive:/Backup init

enter password for new repository:
enter password again:

rclone: 2024/10/07 10:26:07 NOTICE: keys/: Failed to cancel multipart upload: unauthenticated: Unauthenticated (upload failed due to: unauthenticated: Unauthenticated)

rclone: 2024/10/07 10:26:07 ERROR : keys/: Post request put error: unauthenticated: Unauthenticated

rclone: 2024/10/07 10:26:07 ERROR : keys/: Post request rcat error: unauthenticated: Unauthenticated

Fatal: create key in repository at rclone:onedrive:/Backup failed: server response unexpected: 500 Internal Server Error (500)

restic version
restic 0.16.4 compiled with go1.22.2 on linux/amd64

rclone --version
rclone v1.60.1-DEV

1 Like

Update both programs to their latest versions and try again. No point to do IT archeology.

1 Like

rclone version v1.60.1-DEV is a perfectly good version for Ubuntu 24.04 / Linuxmint 22 or other Ubuntu derivatives based on Ubuntu 24.04.

Using your browser and logging into your onedrive account, (https:// onedrive.live.com/… ), can you see a folder Backup? If yes, you either have created this directory yourself, or restic has done this for you. If not, I would recommend to create the directory.

Investigating this folder Backup, can you see any of the following files or directories: config (the only file), data, index, snapshots, locks and keys?

It is awfully outdated rclone version from 2022 (17 releases behind) with multiple issues and bugs resolved by now. It is Ubuntu problem that they are not updating their repository. I guess they only maintain OS components with other stuff left to rot.

You can check rclone release notes how many OneDrive related changes have been made since 1.60.1. I would not be even surprised if some remotes do not work any more whth this antic.

The same applies to restic - v0.16.4 should not be used by anybody who cares about their backups.

In addition both these programs are single binaries without any extra dependencies. Using them still is either laziness or lack of Linux knowledge IMO.

Yes that solved it. I updated rclone manually and now it is working. Thanks for the help.

Did not expect Ubuntu to use versions that outdated.

Problem is that Ubuntu version of restic does not support self-update

Never use selfupdate for any program installed from distro repo. It can potentially create mess you will have to deal with at some stage.

sudo apt remove restic rclone

and then download both directly from their product websites.

Ok, thanks

And keep both updated by periodically running self updates:)

For example upcoming rclone v1.69 (ETA by October 20, 2024) will fix one of very old rclone/onedrive issues which should make throttling more bearable:

Both projects (rclone and restic) are under active development with improvements and fixes released often.

I set up the server just recently, and just faced similar issues with nodejs and typescript.

I got a bit annoyed, deleted ubuntu and started fresh with opensuse tumbleweed rolling release. I might get other issues, but at least all packages are up to date. Since it is running in a VM with regular snapshots, I do not care much about instability issues due to short time incompabilities.

Thanks a lot again for the good support.

1 Like

:ok_hand::ok_hand::ok_hand: my fav distro as well.

That version isn’t that broken (0.16.4 or better 0.16.5 is still reasonable to use, unless you need a feature of the newer versions). Although I have to agree that newer versions are far more error tolerant than older restic version. Anything before 0.12.0 / 0.13.0 is definitely a bad idea, but newer is even better.