【问题标题】:Failed to launch chrome [FATAL:zygote_host_impl_linux.cc(116)] No usable sandbox无法启动 chrome [致命:zygote_host_impl_linux.cc(116)] 没有可用的沙箱
【发布时间】:2021-07-15 04:29:27
【问题描述】:

无法启动 chrome!\n[0702/102126.236473:FATAL:zygote_host_impl_linux.cc(116)] 没有可用的沙箱!更新您的内核或查看https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md 以获取有关使用 SUID 沙箱进行开发的更多信息。如果你想危险地生活并需要立即解决,你可以尝试使用 --no-sandbox。\n#0 0x55e0286ccaf9 ...不会生成核心文件。\n\n\n故障排除:https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md\n\n onClose ( /home/ec2-user/credence/microservices/reporting-server/node_modules/puppeteer/lib/Launcher.js:342:14)\n 在 Interface.helper.addEventListener (/home/ec2-user/credence/microservices/reporting -server/node_modules/puppeteer/lib/Launcher.js:331:50)\n 在 Interface.emit (events.js:203:15)\n 在 Interface.close (readline.js:397:8)\n 在Socket.onend (readline.js:173:10)\n 在 Socket.emit (events.js:203:15)\n 在 endReadableNT (_stream_readable.js:1143:12)\n 在 process._tickCallback(内部/进程/next_tick.js:63:19)

【问题讨论】:

    标签: node.js linux puppeteer redhat


    【解决方案1】:

    在启动 puppeteer 时,传递参数 --no-sandbox:

    await puppeteer.launch({ headless: true, args: ['--no-sandbox'] })
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-30
      • 1970-01-01
      • 1970-01-01
      • 2013-10-23
      • 1970-01-01
      • 1970-01-01
      • 2013-05-17
      • 1970-01-01
      相关资源
      最近更新 更多