chrome pdf generation timed out



  • Gaaaar, that fixed it. I've been trying to find a solution for a couple of days-worth of time for the past week, so thank you!



  • I have the same issue. The 'launchOptions' did not help in my case.

    When using jsreport.exe version 18.15.0.0 as the report server, I get this error:
    0_1727339203761_jsreport issue.png

    When using jsreport.exe version 16.12.0.0 my (very simple) report is generated as pdf just fine:
    0_1727339449897_jsreport issue_ok.png

    I'm using "@jsreport/nodejs-client": "^4.0.2" as the report client.

    Please help/advise.
    Thanks in advance.



  • I have the same problem as well

    It breaks on large pdfs (100 pages plus), hasn't worked since version 4.2

    Updating the timeout and adding --no-sandbox didn't fix it

    I'm assuming the issue is either due ton the chrome update in 4.4 via puppeteer or the refactor in 4.3

    However, 4.3 is broken (throws a js error) so it's hard to narrow down which one is the problem.

    Unfortunately I can't provide any of the templates / custom code, but it would be great if there's another solution someone found to this.



  • I have now tried with the minimal possible example I could think of:
    0_1727681323256_jsreport issue2.png

    Any ideas why it is not working?



  • I've tried to download the latest jsreport binary from here
    https://github.com/jsreport/jsreport/releases/tag/4.6.0

    I then extracted the jsreport.exe and placed in the same folder file jsreport.config.json with content

    {
    
       "chrome": { "launchOptions": { "args": ["--no-sandbox"] } }
    }
    

    and request.json as you have it. The render command then works fine
    jsreport.exe render --request=request.json --out=out.pdf

    Without the config, it times out. I have win 11.

    Perhaps try to delete folder c:\Users\[your user]\AppData\Local\Temp\jsreport and try again.



  • Thank Jan for your suggestions!

    I have tried:

    • run cmd as administrator
    • run jsreport in c:\temp folder (where request.json is in same folder)
    • deleting then jsreport temp folder under Users (and version 4.6 stuff is recreated when I run the command)
    • having same content in request.json as you (and same command line parameters)
    • runing in Windows 11

    0_1727765134403_jsreport issue3.png

    Still same problem😢

    Any other suggestions?
    Any help is very appreciated!



  • Please try also run the normal installation from npm https://jsreport.net/on-prem Does that work?

    Also, try to run the following command. The path there is the chrome installation folder with the npm install

    icacls %USERPROFILE%/.cache/puppeteer/chrome /grant *S-1-15-2-1:(OI)(CI)(RX)
    


  • Running the server as a on-prem installation works! The client can generate a report! 😊

    Changing the grants of the chrome folder did not help:
    0_1727867671801_upload-0630f603-8059-4af4-ac59-f956acecd07d

    Using jsreport binaries (jsreport.exe) is still not working in my setup.



  • Changing the grants of the chrome folder did not help:

    Please try to change the %USERPROFILE%/.cache/puppeteer/chrome to the chrome directory extracted from jsreport.exe. Something like this

    c:\Users\xxx\AppData\Local\Temp\jsreport\compile\jsreport-4.6.0-b51a1z0mo\chrome
    


  • Voilà! It now works!
    Must have been a granting issue for the folder!
    Thanks a lot!
    0_1727868671997_jsreport issue5.png
    It also work without the "--no-sandbox" option


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.