axetroy / sms-boom

利用chrome的headless模式,模拟用户注册进行短信轰炸机
489 stars 145 forks source link

在ubuntu 16.04 跑出现的错误 #49

Open HarryF514 opened 6 years ago

HarryF514 commented 6 years ago
[13768]: start.
Error: Failed to launch chrome!
/usr/lib/node_modules/smsboomer/node_modules/puppeteer/.local-chromium/linux-515411/chrome-linux/chrome: error while loading shared libraries: libXcomposite.so.1: cannot open shared object file: No such file or directory

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

    at onClose (/usr/lib/node_modules/smsboomer/node_modules/puppeteer/lib/Launcher.js:211:14)
    at Interface.helper.addEventListener (/usr/lib/node_modules/smsboomer/node_modules/puppeteer/lib/Launcher.js:200:50)
    at Interface.emit (events.js:185:15)
    at Interface.close (readline.js:379:8)
    at Socket.onend (readline.js:152:10)
    at Socket.emit (events.js:185:15)
    at endReadableNT (_stream_readable.js:1101:12)
    at process._tickCallback (internal/process/next_tick.js:114:19)
[13768]: Exit with code 0.

一般怎么样处理这个问题?

HarryF514 commented 6 years ago

根据这个好像修复了问题。https://github.com/astefanutti/decktape/issues/126

但是出现新的错误:

[16544]: start.
Error: Failed to launch chrome!
[0315/142956.003146:ERROR:zygote_host_impl_linux.cc(90)] 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 onClose (/usr/lib/node_modules/smsboomer/node_modules/puppeteer/lib/Launcher.js:211:14)
    at Interface.helper.addEventListener (/usr/lib/node_modules/smsboomer/node_modules/puppeteer/lib/Launcher.js:200:50)
    at Interface.emit (events.js:185:15)
    at Interface.close (readline.js:379:8)
    at Socket.onend (readline.js:152:10)
    at Socket.emit (events.js:185:15)
    at endReadableNT (_stream_readable.js:1101:12)
    at process._tickCallback (internal/process/next_tick.js:114:19)
[16544]: Exit with code 0.
WindomZ commented 6 years ago

Running as root without --no-sandbox

在Ubuntu16.04下正常,可以在非root下运行

sakuyamaij commented 6 years ago

@harryyuanfeng 我也是这个问题,加了行代码后解决了 https://github.com/sakuyamaij/sms-boom/commit/79e2de8449fe1b079ccf63dc7c8cee7f9b53abc9

hebaoying commented 5 years ago

你好,请问怎样在 ubuntu 上安装。。

CJY0208 commented 4 years ago

@harryyuanfeng 我也是这个问题,加了行代码后解决了 https://github.com/sakuyamaij/sms-boom/commit/79e2de8449fe1b079ccf63dc7c8cee7f9b53abc9

@sakuyamaij 你好,我遇到了同样的问题,但附带的链接打不开了,请问是怎样解决的呀?