My Google Drive and Calendar were working fine before I backed up and restored the fresh V12 system. I have tried deleting the Google settings, reinstalling each setting, performing bench migrate and reboots but have been unsuccessful getting the Google backup and calendar integrations to work again. Has anyone experienced this type of error or have an idea how to fix it?
This is the error in the log:
Queue / Worker Job Created
failed
frappe.integrations.doctype.google_drive.google_drive.upload_system_backup_to_google_driveTraceback (most recent call last):
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/rq/worker.py”, line 793, in perform_job
rv = job.perform()
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/rq/job.py”, line 599, in perform
self._result = self._execute()
File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/rq/job.py”, line 605, in _execute
return self.func(self.args, **self.kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 102, in execute_job
method(**kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/google_drive/google_drive.py”, line 188, in upload_system_backup_to_google_drive
validate_file_size()
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/offsite_backup_utils.py”, line 79, in validate_file_size
latest_file = get_latest_backup_file()
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/offsite_backup_utils.py”, line 52, in get_latest_backup_file
latest_file = get_latest('.sql.gz’)
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/offsite_backup_utils.py”, line 50, in get_latest
return max(file_list, key=os.path.getctime)
ValueError: max() arg is an empty sequence07-07-2020 21:19:27
Started Queued Failed Finished
Last refreshed 2020-07-07 21:20:58