Hi Cédrik

On Saturday, August 20, 2016 at 1:30:04 AM UTC-5, Cédric Krier wrote:
>
> On 2016-08-04 10:27, Fabián wrote: 
> > In a test environment, Tryton is configured for converting invoice 
> reports 
> > to PDF. 
> > 
> > This is the scenario: 
> > 
> > - User create invoice 
> > - When button "Pay" it's clicked, it sends automatically to the 
> customer's 
> > email the invoice in PDF format. 
> > - After is sending (in the same click in button "Pay"), automatically it 
> is 
> > opened the PDF report for printing. 
> > - Normally in server there is a temporary process [1] that disappears 
> > immediatly when both process (send PDF and open PDF) are done. 
> > - Many times Tryton hang up. Seems as it happens in the process when 
> > convert ODT to PDF. In server I see there a lot of processes in 
> background. 
> > I put a few of them [2]. When processes are hang up, it is no possible 
> to 
> > pay any invoice because of the problem. 
> > 
> > Changing the behavior for only send the PDF to email, there is not much 
> > hang ups, but the problem persist. 
>
> The conversion is made by using unoconv which is not completely reliable. 
> Some had better behaviour using socket instead of pipe, see 
> https://bugs.tryton.org/issue2703 
>

I tested with the suggestion you gave me.

Now, there is not so much hangs up, but now sometimes I get this error [2].
If I try to open the same report a second time, it works. Sometimes in the 
third 
trying I can get the PDF report.

The error I get it no frequently.

Do you think the problem it is because of unoconv?

I get the same error when trying to open the invoice (PDF) directly from 
invoice module of core.


[2]
*Traceback (most recent call last):*
*  File "/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch*
*    response['result'] = dispatch_method(method, params)*
*  File "/trytond/protocols/jsonrpc.py", line 179, in _dispatch*
*    res = dispatch(*args)*
*  File "/trytond/protocols/dispatcher.py", line 161, in dispatch*
*    result = rpc.result(meth(*c_args, **c_kwargs))*
*  File "/trytond/modules/own_module/ownmodule.py", line XXXX, in execute*
*    res = super(OwnReport, cls).execute(ids, data)*
*  File "/trytond/report/report.py", line 144, in execute*
*    type, data = cls.parse(action_report, records, data, {})*
*  File "/trytond/modules/own_module/ownmodue.py", line XXXX in parse*
*    localcontext=localcontext)*
*  File "/trytond/report/report.py", line 300, in parse*
*    data = cls.unoconv(data, report.template_extension, output_format)*
*  File "/trytond/report/report.py", line 320, in unoconv*
*    raise Exception(stderrdata)*
*Exception: None*


Thanks

-- 
Best regards



> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: [email protected] <javascript:> 
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/b4af006d-4dda-4e51-923e-b17001c52e83%40googlegroups.com.

Reply via email to