[JSReport Azure, C# .Net 6] Error rendering report: instance has been daemonized and initialized successfully



  • Environment:

    Platform: Azure - Linux
    Language: C# .Net 6
    JSReport Version: 2.11.0
    Recipe: html-to-xlsx

    Hi, I'm having the following exception when trying to render a report using html-to-xlsx recipe:

    "Error rendering report: instance has been daemonized and initialized successfully (pid: 703428)rendering has finished with errors:A critical error occurred while trying to execute the render command (2). Error while executing html-to-xlsx recipe. Failed to launch chrome!/agione-temp/compile/jsreport-2.11.0-BkQPrWToP/chrome/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directoryTROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md (1). caused by error (2):-> stackError: at onCriticalError (/snapshot/jsreport/node_modules/jsreport-cli/lib/commands/render.js:302:19) at /snapshot/jsreport/node_modules/jsreport-cli/lib/commands/render.js:256:14 at processTicksAndRejections (internal/process/task_queues.js:97:5)caused by error (1):-> stackError: Error while executing html-to-xlsx recipe. Failed to launch chrome!/agione-temp/compile/jsreport-2.11.0-BkQPrWToP/chrome/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directoryTROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md"

    I would appreciate any guidance on how to resolve this error and successfully render the report. Please let me know if you require any further information.

    Thank you for your assistance!



  • When using the jsreport binary, you will need to make sure all the chrome dependency libs are installed. This is specific to your linux distribution.
    https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-doesnt-launch-on-linux

    This lines from the v2 doc could help

    apt-get update && apt-get install -y --no-install-recommends libgconf-2-4 gnupg git curl wget ca-certificates libgconf-2-4 && \
        wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
        sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
        apt-get update && \  
        apt-get install -y lsb-release google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst libxtst6 libxss1 --no-install-recommends
    
    # debian needs this additional install
    apt-get install -y libx11-6 libx11-xcb
    

    In general it is typically better to run standalone jsreport and communicate with it with jsreport.Client nuget. The standalone installation guides can be found here
    https://jsreport.net/on-prem


Log in to reply
 

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