当前位置: 首页 > wzjs >正文

电商网站前端架构设计厦门有家装饰

电商网站前端架构设计,厦门有家装饰,阿里云网站建设,wordpress的搭建环境背景 业务应用需要将系统从centos切换ubuntu,其中A应用在准备好相应的ubuntu镜像后,在mac本机启容器,执行测试脚本报错 "Error: Protocol error (Target.setDiscoverTargets): Target closed." 排查 1.看Chromium 错误日志 添加dumpio: true,这会把 Chromium 启动…

背景

业务应用需要将系统从centos切换ubuntu,其中A应用在准备好相应的ubuntu镜像后,在mac本机启容器,执行测试脚本报错

"Error: Protocol error (Target.setDiscoverTargets): Target closed."

排查

1.看Chromium 错误日志

   添加dumpio: true,这会把 Chromium 启动过程的 stderr 输出都打到控制台

const browser = await puppeteer.launch({headless: true,args: [...],dumpio: true
});

2.执行后,关键报错如下

[0612/162451.208800:FATAL:zygote_main_linux.cc(163)] Check failed: sandbox::ThreadHelpers::IsSingleThreaded().
[0612/162451.595965:ERROR:file_path_watcher_linux.cc(318)] inotify_init() failed: Function not implemented (38)
qemu: unknown option 'type=gpu-process'DevTools listening on ws://127.0.0.1:33643/devtools/browser/cab2bfec-926e-4e7b-b53e-46157b3a6032
[0612/162451.770694:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 1 time(s)
qemu: unknown option 'type=gpu-process'
[0612/162451.831737:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 2 time(s)
qemu: unknown option 'type=gpu-process'
[0612/162451.861199:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 3 time(s)
qemu: unknown option 'type=gpu-process'
[0612/162451.874366:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 4 time(s)
qemu: unknown option 'type=gpu-process'
[0612/162451.884288:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 5 time(s)
qemu: unknown option 'type=gpu-process'
[0612/162451.893254:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 6 time(s)
qemu: unknown option 'type=gpu-process'
[0612/162451.908820:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 7 time(s)
qemu: unknown option 'type=gpu-process'
[0612/162451.936704:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 8 time(s)
qemu: unknown option 'type=gpu-process'
[0612/162451.995340:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 9 time(s)
[0612/162451.995588:FATAL:gpu_data_manager_impl_private.cc(918)] The display compositor is frequently crashing. Goodbye.(node:499) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Protocol error (Target.setDiscoverTargets): Target closed.
(node:499) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

3.根据报错关键字搜索查到类似issue(https://github.com/puppeteer/puppeteer/issues/7746),提供的解决方案有两种

方案测试结果引申
1Docker desktop启用beta功能:'Use Rosetta for x86/amd64 emulation on Apple Silicon' mac机系统版本不满足,无法测试

1.Rosetta 2介绍

2.ARM 和 x86_64是什么关系
 

2chromium args参数增加--single-process

1.经测试,该方案可行

2.--no-sandbox参数也必须


文章转载自:

http://cdBWzoAQ.bhdhL.cn
http://tqnrloGr.bhdhL.cn
http://Tpt7nwSE.bhdhL.cn
http://Fe7VCHlx.bhdhL.cn
http://8QIP7em6.bhdhL.cn
http://lHfXdwkM.bhdhL.cn
http://dqRanq2k.bhdhL.cn
http://T1qj4AyM.bhdhL.cn
http://KUQ9hjO4.bhdhL.cn
http://xEALUyid.bhdhL.cn
http://GjT9lI8t.bhdhL.cn
http://D9NzSsDV.bhdhL.cn
http://N6WPx3lp.bhdhL.cn
http://rKngn1QY.bhdhL.cn
http://W7xh9IwK.bhdhL.cn
http://xmvp33tV.bhdhL.cn
http://XaLgubfj.bhdhL.cn
http://F9AXvONd.bhdhL.cn
http://4LnuUVdW.bhdhL.cn
http://tsuqvQxI.bhdhL.cn
http://7gL6mdqu.bhdhL.cn
http://ObSrMz0n.bhdhL.cn
http://C1dOcRyP.bhdhL.cn
http://8rDIKcOI.bhdhL.cn
http://2mhFSeI7.bhdhL.cn
http://TFoWHndj.bhdhL.cn
http://TxNXqGJd.bhdhL.cn
http://4Xx1ZUOP.bhdhL.cn
http://ts11fQeM.bhdhL.cn
http://2l9V3bh9.bhdhL.cn
http://www.dtcms.com/wzjs/751826.html

相关文章:

  • 工程招聘网站延安网站建设报价
  • 潍坊市安丘建设局网站宁波网站建设工作室
  • 长沙做网站最好的公司有哪些外卖网站建设可行性分析
  • 无锡游戏网站建设公司wordpress免费 主题
  • 嘉兴网站如何制作wordpress 搭建app
  • 网站设计师专业邯郸网络安装
  • 太平阳电脑网网站模板小程序开发需要多少钱?
  • 网站建设信息平台买域名不建网站
  • 九江本土专业网站建设免费免费网站模板
  • 外贸网站如何推广出去泉州全网营销优化
  • 网站建设企公司app与网站建设方案
  • 站长网网站模板中山大兴网站建设
  • 网站建设具备什么条件福建建设中心网站
  • 淄川响应式网站建设企业网站的结构以及内容.
  • 淘宝客网站要多大空间网站做兼容处理怎么设置
  • 用什么软件做购物网站做定制网站怎么样
  • 做网站公司排行网站开发的有关公司
  • 可以看网站的手机浏览器珠海微信网站开发
  • 腾讯做网站上传wordpress二级菜单代码
  • 网站建设费用上海北京市建筑网站
  • 护肤品网站建设需求分析企业宣传册模板
  • 磁力搜索网站怎么做的国外设计素材app
  • wordpress福利整站源码郑州安卓app开发
  • 行政机关网站建设关于集团官方网站内容建设的报告
  • 西部网站邮箱登录城乡建设部官方网站
  • 网站策划专员怎么做家庭网站
  • 最近几年做电影网站怎么样微信网页制作的软件
  • 如何把做的网站变成链接定制型网站建设服务器
  • 网站上的动效是用ae做的宁波人流网
  • 棋牌网站建设要多少钱廊坊市 广阳区城市建设局网站