New email domain timeout on ERPNext latest (v15.10.3)

Attempting to create a new email domain times out. This was reproduced on ERPNext version 15 on 3 separate instances: self-hosted, locally via frappe_docker and on Frappe Cloud instance (currently on trial).

We have the “Less secure apps” setting enabled on Google Workspace / Gmail fyi.

See attached screenshots as well as the error logs from the self-hosted instance below.

Can someone please help?



2024/02/10 17:35:23 [error] 4#4: *441 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 10.89.0.104, server: frontend, request: "POST /api/method/frappe.desk.form.save.savedocs HTTP/1.1", upstream: "http://10.89.0.93:8000/api/method/frappe.desk.form.save.savedocs", host: "localhost:8080", referrer: "http://localhost:8080/app/email-domain/new-email-domain-zuhznjvwwb"
[frontend]     | 10.89.0.104 - - [10/Feb/2024:17:35:23 +0000] "POST /api/method/frappe.desk.form.save.savedocs HTTP/1.1" 504 167 "http://localhost:8080/app/email-domain/new-email-domain-zuhznjvwwb" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"

For anyone encountering this issue, it turns out the missing ports seemed to be causing this issue. Using imap port 993 and smtp port 587 resolved the timeout issue.

1 Like