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

网站404怎么解决电商网站建设方案

网站404怎么解决,电商网站建设方案,包装设计公司浙江,上海人事人才网背景 业务应用需要将系统从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://www.dtcms.com/wzjs/410399.html

相关文章:

  • 网站后台模板html北京关键词快速排名
  • 谢岗镇网站建设舆情危机公关公司
  • app软件开发哪家靠谱官方进一步优化
  • 佛山百度网站排名优化站长之家seo查询官方网站
  • 做网站和做网页有什么区别爱站网关键词
  • 濮阳网站建设883664百度在线识图
  • 长春做网站 信赖吉网传媒长春网络科技公司排名
  • 关于企业网站建设的提案百度竞价点击价格公式
  • 建设银行网站用什么字体怎么寻找网站关键词并优化
  • 2021年10月新闻摘抄网站搜索优化官网
  • 网站建设更新新品上市的营销方案
  • 茶文化网站建设毕业论文好看的网站模板
  • 做网站是什么意思网址收录大全
  • 南头英文网站建设怎么做产品推广和宣传
  • 天水网站seo南宁网
  • 网站建设项目评审意见农产品推广方案
  • 做网站价格报价费用多少钱网站推广和优化的原因
  • 福州公司网站设计免费做网站推广的软件
  • 做国际生意的网站有哪些抖音优化是什么意思
  • 有哪些h5做的网站新品推广计划与方案
  • 企业网站怎么做百度正规优化公司哪家好
  • 竞价托管公司路由器优化大师
  • 鹤壁网站建设seo方式包括
  • 乐从做网站制作网站需要多少费用
  • 南昌专业做网站的最有效的推广方法
  • 怎么做html网站营业推广是什么
  • 成都网站制作怎么收费平谷头条新闻
  • 惠州品牌网站建设爱站网关键词排名
  • 如何设置网站默认首页百度排行榜
  • 政府网站建设的建议seo站长网怎么下载