Allowed Dropbox access but backup not working

In my dropbox developer account I create an App that can create file & datastore, copy key and secret to site_config.json.

Then from ERPNext web-panel under integration folder i have configured Dropbox Backup by adding daily schedule along with my Email ID, but when i have checked scheduler logs find below errors:

Method: daily_long, Handler: frappe.integrations.doctype.dropbox_backup.dropbox_backup.take_backups_daily
Traceback (innermost last):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/tasks.py”, line 114, in scheduler_task
frappe.get_attr(handler)()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_backup/dropbox_backup.py”, line 30, in take_backups_daily
take_backups_if(“Daily”)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_backup/dropbox_backup.py”, line 38, in take_backups_if
take_backups_dropbox()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_backup/dropbox_backup.py”, line 52, in take_backups_dropbox
send_email(False, “Dropbox”, error_message)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_backup/dropbox_backup.py”, line 75, in send_email
frappe.sendmail(recipients=recipients, subject=subject, message=message)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 359, in sendmail
cc=cc, message_id=message_id, in_reply_to=in_reply_to)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/init.py”, line 25, in sendmail
send(mail)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 26, in send
smtpserver.sess.sendmail(email.sender, email.recipients + (email.cc or []),
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 145, in sess
raise frappe.OutgoingEmailError, err_msg

from command line if i run bench “bench backup” and “bench backup --with-files” it will create files successfully under sites/site/private/backups.

Can somebody guide me how i resolve this dropbox backup issue.

Seems that your Email Account is not setup. Dropbox backup failed and tried to send an email to inform you, but as no email account does exist… You get this nice error in error! :smile:

Create a new Email Account from Setup > Email > Email Account.
And then you should receive an email with a detailed error log on why your backup failed.

I have setup Email functionality approx few hours back but yet not getting any email.

Is there is any way to hit dropbox backup schedule manually to get that email?

when configuring Dropbox backups, only schedule like"daily/weekly" mentioned but not seen the time frame in which it will hit in 24 hours, Is there is any way to check and configure this?

Also wondering if some how my email functionality break or stops working, Is there is any other way to track backup failure or success report?

@indyservers

Check the Scheduler Log table for your site MySQL Database