When I first started to evaluate ERPNext I setup Dropbox backup to run weekly. It was working great for about a month and a half, but suddenly stopped working.
My last weekly backup is from December 15th. I do not even get an error email message. To try to get it working again I followed the steps I used during my initial setup and everything “looks” fine but I still do not get a backup…
Does anyone know what I can look at to try to remedy this situation and get it working again?
You should get a traceback in the notification. If you can post that, it will help diagnose the issue. Most of the times, backup fails because the dropbox account is full.
I am getting this error in my mail and my backups have not been working:
Backup Upload Failed
Oops, your automated backup to Dropbox failed.
Error message:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 47, in take_backup_to_dropbox
did_not_upload, error_log = backup_to_dropbox()
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 103, in backup_to_dropbox
upload_file_to_dropbox(filename, “/database”, dropbox_client)
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 158, in upload_file_to_dropbox
file_size = os.path.getsize(encode(filename))
File “/home/frappe/frappe-bench/env/lib/python2.7/genericpath.py”, line 57, in getsize
return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: ‘./site_name/private/backups/20190919_175750-site_name-database.sql.gz’
Please contact your system manager for more information.
Everything seems fine from the front end and backend.
I modified the traceback and removed my site name which is my domain name and replaced it with site_name to conceal the information as it is a live server.
Only thing I changed was replace mydomain.com with site_name in the traceback. Every other data is as was generated by the error. I really don’t see how that obfuscates the problem.