Skip to Content
Menu
This question has been flagged

When clicking In a Purchase Order or Sales Order, clicking on "Send by Email" hangs all functions.  120 second server timeout.


Considerations:

- All Incoming and Outgoing servers, ports and aliases are all configured correctly (sales@ auto creates CRM sales leads; support@ auto creates helpdesk tickets, etc.)

- All other email sending functions work - sending direct emails from Contact page, Helpdesk emails, etc.  


Finding the error in the server log file: grep -i “error” odoo-server.log 


2023-12-19 22:16:39,554 809 ERROR stagingl.myserver.ca odoo.service.server : WorkerHTTP (4143) timeout after 120s

2023-12-19 22:16:39,572 4186 INFO stagingl.myserver.ca odoo.service.server : worker WorkerHTTP (4186 ) alive


Odoo v16.

Avatar
Discard
Best Answer

We have only 1 worker on Odoo.sh and don't experience any problems.  I guess it depends on the number of users and processes accessing the server.

Avatar
Discard
Author Best Answer

Alright, I was really looking forward to answering this one for the community, as I have seen a lot of similar posts without an actual solution.  For those still struggling, I hope this can be one of the solutions for you and save you a lot of time.

The issue here, is that prior to sending a PO or SO email, the system generates a PDF.  To generate that PDF you need at least two workers configured on your server, and checking the log for any mail connections would be fruitless for this.

Therefore, increasing the number of workers for the server was the solution.

Update your odoo.conf:

----
.
.
.
workers = XX
addons_path = ......

----

Here is a related article to assist in calculating the appropriate number of workers for your server: https://www.odoo.com/nl_NL/forum/help-1/how-do-i-add-worker-to-odoo-176488

(as I don't have the karma points to add a link, there it is above in plain text)

Avatar
Discard
Related Posts Replies Views Activity
2
Jun 24
3588
0
Apr 19
2576
0
Nov 23
1316
0
Oct 22
2823
3
Jul 19
4957