Offsite backup fails
See original GitHub issueDescription of the issue
Backup fails to offsite location such as Google drive
Traceback (most recent call last):
File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/rq/worker.py", line 975, in perform_job
rv = job.perform()
File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/rq/job.py", line 696, in perform
self._result = self._execute()
File "/home/frappe/frappe-bench/env/lib/python3.7/site-packages/rq/job.py", line 719, in _execute
return self.func(*self.args, **self.kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 100, in execute_job
method(**kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/google_drive/google_drive.py", line 187, in upload_system_backup_to_google_drive
validate_file_size()
File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/offsite_backup_utils.py", line 88, in validate_file_size
file_size = get_file_size(latest_file, unit="GB")
File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/offsite_backup_utils.py", line 74, in get_file_size
file_size = os.path.getsize(file_path)
File "/opt/bitnami/python/lib/python3.7/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Seems to be the same as this issue https://discuss.erpnext.com/t/backup-error-typeerror-stat-path-should-be-string-bytes-os-pathlike-or-integer-not-nonetype/66473
I’m using v13-beta6, however the backup was always working daily until a few days ago
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (3 by maintainers)
Top Results From Across the Web
6 Reasons Why Your Backups Are Failing - OTAVA
6 Reasons Why Your Backups Are Failing · Let's walk through the common problems that cause the backup failures · 1. Poor Monitoring...
Read more >Data backup failure: Top 5 causes and tips for prevention
Every part of your infrastructure responsible for backups can fail. This includes tape drives, libraries, disk arrays, backup servers and the ...
Read more >Cannot connect to the Offsite Backup Server
PROBLEM. Trying to add an 'Offsite Backup Server' as an Offsite Location but you're unable to connect. CAUSE.
Read more >Backup Failed - How To Save Your Data (And Your Company ...
If you have suffered a backup failure at the same time as your system going down, options may be limited. These include expensive...
Read more >Solved: Offsite backup failing - VOX
I'm seeing these error notifications on our offsite backup. Originally, our backups were being sent to an SFTP server, but then we realized ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@deantheiceman It’s really just called “System Settings”, there you can set the number of backups. Then there is “backups”, from which you can trigger a manual backup. It will send you an email with a download link when it’s finished. I guess that’s most likely the step that might have fixed it.
Nonetheless, this really is a bug and should be addressed.
I got notifications about failed backups at least.
I am not sure what I did to solve it. I changed the number of backups in the system settings and then manually downloaded a backup. After that the S3 backup started working again…