frappe / frappe_docker

Docker images for production and development setups of the Frappe framework and ERPNext
MIT License
1.2k stars 1.2k forks source link

Automatic email sending not working #1395

Open 0xab3d opened 2 months ago

0xab3d commented 2 months ago

Hello,

When I send an email it keeps failing on the automatic/scheduled send. However, if I click on Send Now it works. Could anyone be able to help! Also, how could I make an immediate email send?

0xab3d commented 2 months ago

Log when the email is scheduled

File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_queue/email_queue.py", line 167, in send message = ctx.build_message(recipient.recipient) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_queue/email_queue.py", line 314, in build_message message = self.include_attachments(message) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_queue/email_queue.py", line 387, in include_attachments print_format_file = frappe.attach_print(**attachment) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 2225, in attach_print else get_print(doctype, name, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 2179, in get_print response = get_response_without_exception_handling("printview", 200) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/frappe/frappe-bench/apps/frappe/frappe/website/serve.py", line 46, in get_response_without_exception_handling _endpoint, renderer_instance = path_resolver.resolve() ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/frappe/frappe-bench/apps/frappe/frappe/website/path_resolver.py", line 68, in resolve renderer_instance = renderer(endpoint, self.http_status_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/frappe/frappe-bench/apps/frappe/frappe/website/page_renderers/static_page.py", line 30, in __init__ self.set_file_path() File "/home/frappe/frappe-bench/apps/frappe/frappe/website/page_renderers/static_page.py", line 37, in set_file_path file_path = frappe.get_app_path(app, "www") + "/" + self.path ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1505, in get_app_path return get_pymodule_path(app_name, *joins) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1535, in get_pymodule_path return abspath(join(dirname(get_module(scrub(modulename)).__file__ or ""), *joins)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1476, in get_module return importlib.import_module(modulename) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked

github-actions[bot] commented 5 days ago

This issue has been automatically marked as stale. You have a week to explain why you believe this is an error.