El 07/06/17 a les 11:35, Cédric Krier ha escrit:
> On 2017-06-06 14:55, Sergi Almacellas Abellana wrote:
>> El 02/06/17 a les 10:56, Sergi Almacellas Abellana ha escrit:
>>> El 30/05/17 a les 11:29, Sergi Almacellas Abellana ha escrit:
>>>>
>>>> Still investigating, will provide more information when I have
>>>> collected it.
>>> I managed to reproduce it another time today and from the cron logs I
>>> see that the thread task is not finishing correctly, so that's why new
>>> task never run.
>>>
>>> Still not sure about the details, but I believe it's on our side.
>> Now I'm sure about the cause of the error. Our processes, sends some
>> email notification, which may cause the process wait forever in case of
>> some network outage.
>
> The sendmail was not designed to allow failure, especially with the 2PC.
> If there is an exception, the emails are lost.
For us losing the email is not a big problem, but the big problem is
blocking the process, leaving transactions opened and so on...
> For me, if you want to send email with Tryton, you should have a email
> server running on the same machine. This way, this server will be in
> charge of the retry when the network comes back etc.
> I suggest to use OpenSMTPd because it is very light and easy to
> configure.
Thanks for the suggestion, I was aware of such mechanism, but currently
we prefer to allow failures to keep the system simple. But I do not
discard to use a local smtp server on the (near) future.