Error 403: Insufficient Permission. When using Cloud Backups with Google Drive

Thanks for that Local log @Chris9 !

When I look at the errors within the local-lightning.log file, I’m seeing errors that look like this:

{"thread":"main","class":"BackupAddonBackupService","level":"error","stack":"Error: Error: Command failed: \"%%userDataPath%%\\addons\\@getflywheel-local-addon-backups\\vendor\\win32\\restic.exe\" --repo rclone::drive:LocalBackups/46b12782-af3f-4a98-b4e9-60b45e112c35 -o rclone.program=\"../../AppData/Roaming/Local/addons/@getflywheel-local-addon-backups/vendor/win32/rclone.exe\" init --json\nrclone: 2021/12/13 22:42:18 NOTICE: Config file \"C:\\\\Users\\\\Warren\\\\.config\\\\rclone\\\\rclone.conf\" not found - using defaults\nrclone: 2021/12/13 22:42:18 Failed to create file system for \":drive:LocalBackups/46b12782-af3f-4a98-b4e9-60b45e112c35\": couldn't find root directory ID: googleapi: Error 403: Insufficient Permission: Request had insufficient authentication scopes., insufficientPermissions\nFatal: create repository at rclone::drive:LocalBackups/46b12782-af3f-4a98-b4e9-60b45e112c35 failed: error talking HTTP to rclone: Get \"http://localhost/file-5577006791947779410\": unexpected EOF\n\n\n    at Object.<anonymous> (%%userDataPath%%\\addons\\@getflywheel-local-addon-backups\\lib\\main.js:720:19)\n    at Generator.throw (<anonymous>)\n    at rejected (%%userDataPath%%\\addons\\@getflywheel-local-addon-backups\\lib\\main.js:536:65)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (internal/process/task_queues.js:93:5)","message":"Error: Command failed: \"%%userDataPath%%\\addons\\@getflywheel-local-addon-backups\\vendor\\win32\\restic.exe\" --repo rclone::drive:LocalBackups/46b12782-af3f-4a98-b4e9-60b45e112c35 -o rclone.program=\"../../AppData/Roaming/Local/addons/@getflywheel-local-addon-backups/vendor/win32/rclone.exe\" init --json\nrclone: 2021/12/13 22:42:18 NOTICE: Config file \"C:\\\\Users\\\\Warren\\\\.config\\\\rclone\\\\rclone.conf\" not found - using defaults\nrclone: 2021/12/13 22:42:18 Failed to create file system for \":drive:LocalBackups/46b12782-af3f-4a98-b4e9-60b45e112c35\": couldn't find root directory ID: googleapi: Error 403: Insufficient Permission: Request had insufficient authentication scopes., insufficientPermissions\nFatal: create repository at rclone::drive:LocalBackups/46b12782-af3f-4a98-b4e9-60b45e112c35 failed: error talking HTTP to rclone: Get \"http://localhost/file-5577006791947779410\": unexpected EOF\n\n","timestamp":"2021-12-13T14:42:18.769Z"}

The main part that’s important to note is the part coming from Google Drive:

couldn't find root directory ID: googleapi: Error 403: Insufficient Permission: Request had insufficient authentication scopes., insufficientPermissions

It looks like for some reason, GoogleDrive can’t find the root directory ID.

When you look within your Google Drive account, do you have a LocalBackups folder? Does it also have a unique hash for the folder that contains the backups?