zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported



  • I have deployed jsreport to a Linux function app on azure using my personal account and all was well as a test. Now when I try and publish using devops to an azure function app on our app service plan (Linux) I get this error when running the api/myreport ?

    Error: Failed to launch chrome!
    [0427/153829.365434:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

    TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md

        at Interface.<anonymous> (/home/site/wwwroot/node_modules/puppeteer/lib/Launcher.js:337:50)
        at Interface.emit (events.js:326:22)
        at Interface.close (readline.js:416:8)
        at Socket.onend (readline.js:194:10)
        at Socket.emit (events.js:326:22)
        at endReadableNT (_stream_readable.js:1223:12)
        at processTicksAndRejections (internal/process/task_queues.js:84:21)
    


  • Try to add this to the config

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


  • Thanks for the advice, can i check.....

    prod.config.json?

    "extensions": {
    

    In here?



  • I have just added it above "extensions" and it is now working. Many thanks for the super quick response.

    Marco


Log in to reply
 

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