Failed to authorize using the OAuth service: Resource temporarily unavailable

I noticed that my Docker backups to OneDrive had stopped working back in October, so I checked the Duplicati logs and came across this error:

"2025-03-13 15:42:21 -07 - [Error-Duplicati.Library.Main.Controller-FailedOperation]: The operation Backup has failed with error: Failed to authorize using the OAuth service: Resource temporarily unavailable (duplicati-oauth-handler.appspot.com:443). If the problem persists, try generating a new authid token from: https://duplicati-oauth-handler.appspot.com?type=onedrivev2\nUserInformationException: Failed to authorize using the OAuth service: Resource temporarily unavailable (duplicati-oauth-handler.appspot.com:443). If the problem persists, try generating a new authid token from: https://duplicati-oauth-handler.appspot.com?type=onedrivev2"

I can telnet to the OAuth server just fine. I’ve tried restarting the Docker container, creating a new backup, regenerating new AuthIDs and re-adding Duplicati access on OneDrive itself, but the same issue still persists.

Hi @flypinoy7, welcome to the forum :wave:

This sounds like a network issue, so I am guessing that this is some kind of network issue on your end. I can’t rule out an issue of the server, but I can see lots of activity, and you can visit the site and see that it is working.

Based on some searching for the error, I have found a thread that says this can happen if the DNS settings prevent a lookup of the hostname:

Can you try using nslookup from within the container to see if you can resolve the domain name?

Thanks! I’m actually running Pi-hole in another container on the host so there might be something with the configs that are causing the issues.

Hi, I got the same error message too, since 03/22/2025.

I also run a pi-hole in another container, but when I run nslookup command inside my duplicati container, there seems no problem:

root@40f353c9aee9:/# nslookup duplicati-oauth-handler.appspot.com 
Server:         127.0.0.11 
Address:        127.0.0.11#53  

Non-authoritative answer: 
Name:   duplicati-oauth-handler.appspot.com 
Address: 142.250.199.116 
Name:   duplicati-oauth-handler.appspot.com 
Address: 2404:6800:4004:823::2014 

curl duplicati-oauth-handler.appspot.com also works.

So I am quiet confusing of the error message.

Hi @gzfrozen, welcome to the forum :waving_hand:

That seems like quite a long time to have the error?

My best guess is that the token is somehow invalidated by the provider. The error message should be forwarded to the client, but this is not possible in all cases, as some error messages contains sensitive data.

I suggest creating a new AuthID, then revoking the old one (just to be sure).

@kenkendk

Thank you for your advice.

I edit the backup to revoke the authid and use a new one. It seems that despite the new authid could pass the connection test in setting edit UI, the backup would still failed with the same error.

How ever, if I create a new backup with another new authid, the new backup would work fine.

Further more, I use the authid that backup successfully in the config, and the old backup would still fail with the same error message.

By the way because I use duplicati in a docker container so I use the web UI to edit and create backups. Wonder if this bug is related to the web UI.

@kenkendk I also export the backup config and reimport the config to create a new backup with a new authid, and it still failed with the same error.

The following is the config I exported (sensitive information free).

{
  "CreatedByVersion": "2.1.0.5",
  "Schedule": {
    "ID": 1,
    "Tags": [
      "ID=2"
    ],
    "Time": "2025-08-17T19:00:00Z",
    "Repeat": "1D",
    "LastRun": "2025-08-16T19:00:00Z",
    "Rule": "",
    "AllowedDays": null
  },
  "Backup": {
    "ID": "2",
    "Name": "Raspberry Pi Server Data",
    "Description": "",
    "Tags": [],
    "TargetURL": "onedrivev2://backup/raspberrypi/server_data?authid=xxxxxxxx",
    "DBPath": "/data/Duplicati/WTVMUTDOSH.sqlite",
    "Sources": [
      "/backup_source/heimall/",
      "/backup_source/pihole/",
      "/backup_source/uptime-kuma/",
      "/backup_source/vaultwarden/",
      "/backup_source/wg-easy/",
      "/backup_source/guacamole/"
    ],
    "Settings": [
      {
        "Filter": "",
        "Name": "encryption-module",
        "Value": "aes",
        "Argument": null
      },
      {
        "Filter": "",
        "Name": "compression-module",
        "Value": "zip",
        "Argument": null
      },
      {
        "Filter": "",
        "Name": "dblock-size",
        "Value": "50mb",
        "Argument": null
      },
      {
        "Filter": "",
        "Name": "retention-policy",
        "Value": "1W:1D,4W:1W,12M:1M",
        "Argument": null
      },
      {
        "Filter": "",
        "Name": "passphrase",
        "Value": "xxxxxxxxx",
        "Argument": null
      },
      {
        "Filter": "",
        "Name": "--run-script-after",
        "Value": "/root/scripts/start_containers.sh",
        "Argument": null
      },
      {
        "Filter": "",
        "Name": "--run-script-before-required",
        "Value": "/root/scripts/stop_containers.sh",
        "Argument": null
      }
    ],
    "Filters": [],
    "Metadata": {
      "LastBackupDate": "20250321T190023Z",
      "BackupListCount": "6",
      "TotalQuotaSpace": "1131723882496",
      "FreeQuotaSpace": "891205713920",
      "AssignedQuotaSpace": "-1",
      "TargetFilesSize": "2084202020",
      "TargetFilesCount": "100",
      "TargetSizeString": "1.94 GB",
      "SourceFilesSize": "3009883442",
      "SourceFilesCount": "2047",
      "SourceSizeString": "2.80 GB",
      "LastBackupStarted": "20250321T190000Z",
      "LastBackupFinished": "20250321T190307Z",
      "LastBackupDuration": "00:03:07.3835855",
      "LastCompactDuration": "00:00:00.8501904",
      "LastCompactStarted": "20250321T190257Z",
      "LastCompactFinished": "20250321T190258Z",
      "LastErrorDate": "20250817T153738Z",
      "LastErrorMessage": "Failed to authorize using the OAuth service: Resource temporarily unavailable (duplicati-oauth-handler.appspot.com:443). If the problem persists, try generating a new authid token from: https://duplicati-oauth-handler.appspot.com?type=onedrivev2"
    },
    "IsTemporary": false
  },
  "DisplayNames": {
    "/backup_source/heimall/": "heimall",
    "/backup_source/pihole/": "pihole",
    "/backup_source/uptime-kuma/": "uptime-kuma",
    "/backup_source/vaultwarden/": "vaultwarden",
    "/backup_source/wg-easy/": "wg-easy",
    "/backup_source/guacamole/": "guacamole"
  }
}