[Html2PdfConverter] Html2Pdf Farm / Front Ends Problem

Forge Component
(68)
Published on 5 Feb (2 weeks ago) by Miguel 'Kelter' Antunes
68 votes
Published on 5 Feb (2 weeks ago) by Miguel 'Kelter' Antunes

Hi Guys,

I'm having a problem running the componente in a front end server.

In my controller it works fine, but when using it in a front end I got the error:


Could not find file 'C:\Windows\TEMP\Something.pdf'.


I already checked and saw it is not generating the file, in this folder.


I know in the past we had an option for farms server in administration page, but seems it was removed
https://www.outsystems.com/forums/discussion/40295/after-updating-i-no-longer-see-the-option-for-farm-environment/

I'm using OutSystems version 10 and just uploaded the files and not any dll.

Like I said it is working fine with this config in My controller server.

Is there anything I need to do to use it in my front end also?

Thanks


Have you done the settings on each machine? You should confirm if the binaries which runs to create the documents are available in all machines on the farm environment and the configurations since they are stored in database should be the same. 

The document are always converted on the TEMP directory and them read as binary on the output of the logic. If the document wasn't found on the TEMP directory you have a problem with the binaries, or with permissions or something else on the server side.

Confirm that:

- You have the binaries in all machines:

- The folder c:\windows\temp is writable.

Raphael Ranieri wrote:

Hi Guys,

I'm having a problem running the componente in a front end server.

In my controller it works fine, but when using it in a front end I got the error:


Could not find file 'C:\Windows\TEMP\Something.pdf'.


I already checked and saw it is not generating the file, in this folder.


I know in the past we had an option for farms server in administration page, but seems it was removed
https://www.outsystems.com/forums/discussion/40295/after-updating-i-no-longer-see-the-option-for-farm-environment/

I'm using OutSystems version 10 and just uploaded the files and not any dll.

Like I said it is working fine with this config in My controller server.

Is there anything I need to do to use it in my front end also?

Thanks




Helllo, Rossi.

Yes I had the binaries in both machine, and the folder was writable.

I have already solved the issue, it had two problems.

First, one of the Front Ends was configured to not run timers, and the binaries are initialized in a timer.
So I had to activate timers in this front end and run the one that initialize the binaries manually.
After solving that, the temp files was not being created yet, and I decided to update the binaries to the last version and add the dll's.

With the dll's it worked.
I don't know why in my controller it was working without the dll's.

However it already solved the problem!

Thanks for the help