/home/site/wwwroot/QtBinariesLinux/Syncfusion.WebKitWrapper: Permission denied Azure

Hi,

I have followed all steps in order to get the pdf converter to work with Azure from here: https://www.syncfusion.com/kb/10731/how-to-convert-html-to-pdf-in-azure-app-service-linux-using-net-core


The folder exists on Azure, I have confirmed this. I get the below error when attempting to convert:

{"Success":false,"Code":500,"Message":"/usr/bin/xvfb-run: 184: /usr/bin/xvfb-run: /home/site/wwwroot/QtBinariesLinux/Syncfusion.WebKitWrapper: Permission denied\n"}


I have tried on both B1 and S1 plans. I will however note, when running this command:

apt-get update && apt-get -y install xvfb && apt-get -y install fontconfig && apt-get -y install libssl1.0-dev && apt-get -y install libx11-dev libx11-xcb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-shm0-dev libxcb-util0-dev libxcb-xfixes0-dev libxcb-xkb-dev libxcb1-dev libxfixes-dev libxrandr-dev libxrender-dev


I do encounter an issue:

E: Package 'libssl1.0-dev' has no installation candidate


Any help will be much appreciated.



6 Replies

JO Jonathan September 27, 2021 01:34 PM UTC

To add some further details. I'm using .NET Core 5, WebKitPath



GK Gowthamraj Kumar Syncfusion Team September 27, 2021 01:54 PM UTC

Hi Jonathan, 
 
Thank you for your contacting Syncfusion support.

The libssl1.0-dev package is not supported in docker image with .net 5.0. We can generate the PDF in .net 5.0 using libssl files without installing libssl1.0-dev package. Please refer below steps,  
  1. apt-get update
  2. apt-get install xvfb
  3. Need to add OPENSSL shared objects files in QtBinariesLinux folder. (attached the files in below link)
  4. apt-get install libx11-dev libx11-xcb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-shm0-dev libxcb-util0-dev libxcb-xfixes0-dev libxcb-xkb-dev libxcb1-dev libxfixes-dev libxrandr-dev libxrender-dev
  
 
We have attached a required OPENSSL (libssl) shared objects, can you please add these files in the QtBinariesLinux folder. Then try the conversion with .net 5.0 and let us know the result. Please find the libssl files from the below link,   
 
  • Download and extract the file from the above link.
  • Copy the libcrypto.so and libssl.so files to QtBinariesLinux folder.
  • Then try the conversion and check the resultant PDF document.
Please let us know if you need any further assistance with this. 
 
Regards, 
Gowthamraj K 



JO Jonathan replied to Gowthamraj Kumar September 27, 2021 02:14 PM UTC

Thank-you for the prompt reply.


I am however still getting the same error:


{"Success":false,"Code":500,"Message":"/usr/bin/xvfb-run: 184: /usr/bin/xvfb-run: /home/site/wwwroot/QtBinariesLinux/Syncfusion.WebKitWrapper: Permission denied\n"}




JO Jonathan September 27, 2021 02:35 PM UTC



imggggg.PNG



JO Jonathan September 27, 2021 04:02 PM UTC

UPDATE: ​Wow. After spending all day trying different options it appears I have a solution. When deploying to Azure through Visual Studio 2019 (Publish)  they seem to deploy the web application as a website package and append  WEBSITE_RUN_FROM_PACKAGE to the configuration.


The solution is to upload the files manually. I believe there is no to not deploy as package from VS Studio.


I would strongly recommend updating the documentation alerting users of this as I imagine users are more than likely going to deploy thro



GK Gowthamraj Kumar Syncfusion Team September 28, 2021 06:57 AM UTC

Hi Jonathan, 
 
Thank you for your update. We are glad to know that your problem has been solved. 
 
We will add the details in our UG documentation and created the task for the same. We will update the details, once it is reflected in live. Please let us know if you need any further assistance with this. 
 
Regards, 
Gowthamraj K 


Loader.
Up arrow icon