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.