我有函数tracking
使用Cloud Scheduler,每天运行一次,部署在Google Cloud function中。
在这个函数中,我使用了puppeteer,大多数函数tracking
运行得很好,但有时,我的函数会出现错误
Error: Failed to launch the browser process!
[0220/073301.661396:ERROR:address_tracker_linux.cc(201)] Could not bind NETLINK socket: Permission denied (13)
[0220/073301.661935:ERROR:file_path_watcher_linux.cc(71)] Failed to read /proc/sys/fs/inotify/max_user_watches
Inconsistency detected by ld.so: ../elf/dl-tls.c: 481: _dl_allocate_tls_init: Assertion `listp->slotinfo[cnt].gen <= GL(dl_tls_generation)' failed!
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md
at onClose (/srv/node_modules/puppeteer/lib/Launcher.js:750:14)
at ChildProcess.helper.addEventListener (/srv/node_modules/puppeteer/lib/Launcher.js:740:61)
at emitTwo (events.js:131:20)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
这是的错误频率
- Puppeteer版本:v2.0.0,昨天更新了最新的v2.1.1
- 平台/操作系统版本:谷歌云功能
- Node.js版本:8
我搜索了木偶师的所有问题,但无法解决我的案件。请帮我
谢谢
您需要将您的木偶师版本降级到2.0.0,在部署应用程序时,似乎有什么东西会导致木偶师失败。
你可以查看https://github.com/puppeteer/puppeteer/issues/5379#issuecomment-587185091
因为弹性豆茎为我工作降级木偶版。