Duplicacy GUI unresponsive due to inaccessible storage

When you open the Restore page, the first Storage location is pre-selected and Duplicacy immediately attempts to load the Backup IDs in that storage.

However, when that Storage is inaccessible, Duplicacy gets stuck trying to load it anyway.
I know this Storage to be inaccessible (I had to re-download the GCD token). I do not want Duplicacy to attempt to load this Storage, but since it’s pre-selected, it never gives me the choice to select a different Storage.

For context, here is the logs:

2025/10/22 15:52:21 DEBUG PASSWORD_ENV_VAR Reading the environment variable DUPLICACY_GCD_TOKEN
2025/10/22 15:52:21 DEBUG GCD_RETRY [0] Get "https://www.googleapis.com/drive/v3/files?alt=json&fields=files%28name%2C+mimeType%2C+id%2C+size%29&prettyPrint=false&q=name+%3D+%27HAVEN%27+and+%27root%27+in+parents+and+trashed+%3D+false+&spaces=drive": oauth2: cannot fetch token: 400 Bad Request
2025/10/22 15:52:21 CLI: Response: ; retrying after 2.98 seconds (backoff: 2, attempts: 1)
2025/10/22 15:52:24 DEBUG GCD_RETRY [0] Get "https://www.googleapis.com/drive/v3/files?alt=json&fields=files%28name%2C+mimeType%2C+id%2C+size%29&prettyPrint=false&q=name+%3D+%27HAVEN%27+and+%27root%27+in+parents+and+trashed+%3D+false+&spaces=drive": oauth2: cannot fetch token: 400 Bad Request
2025/10/22 15:52:24 CLI: Response: ; retrying after 1.96 seconds (backoff: 4, attempts: 2)
2025/10/22 15:52:27 DEBUG GCD_RETRY [0] Get "https://www.googleapis.com/drive/v3/files?alt=json&fields=files%28name%2C+mimeType%2C+id%2C+size%29&prettyPrint=false&q=name+%3D+%27HAVEN%27+and+%27root%27+in+parents+and+trashed+%3D+false+&spaces=drive": oauth2: cannot fetch token: 400 Bad Request
2025/10/22 15:52:27 CLI: Response: ; retrying after 0.15 seconds (backoff: 8, attempts: 3)
2025/10/22 15:52:27 DEBUG GCD_RETRY [0] Get "https://www.googleapis.com/drive/v3/files?alt=json&fields=files%28name%2C+mimeType%2C+id%2C+size%29&prettyPrint=false&q=name+%3D+%27HAVEN%27+and+%27root%27+in+parents+and+trashed+%3D+false+&spaces=drive": oauth2: cannot fetch token: 400 Bad Request
2025/10/22 15:52:27 CLI: Response: ; retrying after 27.39 seconds (backoff: 16, attempts: 4)
2025/10/22 15:52:55 DEBUG GCD_RETRY [0] Get "https://www.googleapis.com/drive/v3/files?alt=json&fields=files%28name%2C+mimeType%2C+id%2C+size%29&prettyPrint=false&q=name+%3D+%27HAVEN%27+and+%27root%27+in+parents+and+trashed+%3D+false+&spaces=drive": oauth2: cannot fetch token: 400 Bad Request
2025/10/22 15:52:55 CLI: Response: ; retrying after 6.13 seconds (backoff: 32, attempts: 5)
2025/10/22 15:53:01 DEBUG GCD_RETRY [0] Get "https://www.googleapis.com/drive/v3/files?alt=json&fields=files%28name%2C+mimeType%2C+id%2C+size%29&prettyPrint=false&q=name+%3D+%27HAVEN%27+and+%27root%27+in+parents+and+trashed+%3D+false+&spaces=drive": oauth2: cannot fetch token: 400 Bad Request
2025/10/22 15:53:01 CLI: Response: ; retrying after 127.35 seconds (backoff: 64, attempts: 6)

This seems like a GUI design problem. It probably shouldn’t have any Storage pre-selected.

2 Likes

I’ve noticed this too.

@gchen Can you make the first entry in the pull-down menu on the Restore page a dummy option like “Please select a storage” - same as the second pull-down “Please select a backup ID to list revision”?

This is annoying because on some systems, my primary storage location is offline or unreachable, so we have to twiddle our thumbs until it times out. :slight_smile: