Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
1725 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
jun 24
3611
0
abr 19
2578
0
nov 23
1320
0
oct 22
2848
3
jul 19
4962