Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在服务器上不能启动 #1515

Closed
lv-jie opened this issue Jul 31, 2018 · 9 comments

Comments

Projects
None yet
6 participants
@lv-jie
Copy link

commented Jul 31, 2018

14:22:07 INFO Wechaty start() v0.18.5 is starting...
14:22:07 INFO Wechaty initPuppet() using puppet: default
14:22:07 INFO Wechaty initPuppet() inited puppet: Puppet#0(default)
14:22:07 ERR PuppetPuppeteerBridge start() exception: Error: Failed to launch chrome!
/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/puppeteer/.local-chromium/linux-575458/chrome-linux/chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

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

14:22:07 ERR PuppetPuppeteer initBridge() exception: Error: Failed to launch chrome!
/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/puppeteer/.local-chromium/linux-575458/chrome-linux/chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

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

Error: no page
at Bridge. (/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/bridge.js:253:23)
at Generator.next ()
at /home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/bridge.js:26:71
at new Promise ()
at __awaiter (/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/bridge.js:22:12)
at Bridge.stop (/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/bridge.js:250:16)
at PuppetPuppeteer. (/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/puppet-puppeteer.js:219:35)
at Generator.throw ()
at rejected (/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/puppet-puppeteer.js:23:65)
at
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
14:22:07 ERR PuppetPuppeteer start() exception: Error: Error: Error: Failed to launch chrome!
/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/puppeteer/.local-chromium/linux-575458/chrome-linux/chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

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

Error: Error: Error: Error: Failed to launch chrome!
/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/puppeteer/.local-chromium/linux-575458/chrome-linux/chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

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

at PuppetPuppeteer.puppet.on.error (/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/dist/src/wechaty.js:415:44)
at emitOne (events.js:116:13)
at PuppetPuppeteer.emit (events.js:211:7)
at PuppetPuppeteer.emit (/home/webgame/nodeSever/hongbao/node_modules/_wechaty-puppet@0.8.5@wechaty-puppet/dist/src/puppet.js:168:22)
at PuppetPuppeteer.<anonymous> (/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/puppet-puppeteer.js:106:22)
at Generator.throw (<anonymous>)
at rejected (/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/puppet-puppeteer.js:23:65)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)

14:22:07 ERR Wechaty start() exception: Error: Error: Error: Failed to launch chrome!
/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/puppeteer/.local-chromium/linux-575458/chrome-linux/chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

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

Error: Error: Error: Error: Failed to launch chrome!
/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/puppeteer/.local-chromium/linux-575458/chrome-linux/chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

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

at PuppetPuppeteer.puppet.on.error (/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/dist/src/wechaty.js:415:44)
at emitOne (events.js:116:13)
at PuppetPuppeteer.emit (events.js:211:7)
at PuppetPuppeteer.emit (/home/webgame/nodeSever/hongbao/node_modules/_wechaty-puppet@0.8.5@wechaty-puppet/dist/src/puppet.js:168:22)
at PuppetPuppeteer.<anonymous> (/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/puppet-puppeteer.js:106:22)
at Generator.throw (<anonymous>)
at rejected (/home/webgame/nodeSever/hongbao/node_modules/_wechaty@0.18.5@wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/puppet-puppeteer.js:23:65)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
@huan

This comment has been minimized.

Copy link
Member

commented Jul 31, 2018

If you are using Ubuntu Linux, try to run:

sudo apt-get install libxss1
@huan

This comment has been minimized.

Copy link
Member

commented Jul 31, 2018

Merge to #1152

@huan huan added the duplicate label Jul 31, 2018

@huan huan closed this Jul 31, 2018

@heiyanshooter

This comment has been minimized.

Copy link

commented Sep 20, 2018

centos的用户可以安装这些依赖

1.yum install libXScrnSaver*

2.yum install epel-release

3.yum install libappindicator-gtk3

原文:https://blog.csdn.net/f1370335844/article/details/80460071

@PIPIPIKa

This comment has been minimized.

Copy link

commented Jun 10, 2019

I use ubuntu in Windows. And igot the same erro. But after i running "apt-get install libxss1" i still get these errors.---->

@PIPIPIKa

This comment has been minimized.

Copy link

commented Jun 10, 2019

node bot.js
23:40:06 INFO Wechaty start() v0.26.1 is starting...
23:40:07 ERR PuppetPuppeteerBridge start() exception: Error: Failed to launch chrome!
/root/node_modules/wechaty/node_modules/puppeteer/.local-chromium/linux-662092/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

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

23:40:07 ERR PuppetPuppeteer initBridge() exception: Error: Failed to launch chrome!
/root/node_modules/wechaty/node_modules/puppeteer/.local-chromium/linux-662092/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

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

23:40:07 ERR PuppetPuppeteer initBridge() this.bridge.stop() rejection: Error: no page
23:40:07 ERR PuppetPuppeteer start() exception: Error: Error: Error: Failed to launch chrome!
/root/node_modules/wechaty/node_modules/puppeteer/.local-chromium/linux-662092/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

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

Error: Error: Error: Error: Failed to launch chrome!
/root/node_modules/wechaty/node_modules/puppeteer/.local-chromium/linux-662092/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

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

at PuppetPuppeteer.puppet.on.error (/root/node_modules/wechaty/dist/src/wechaty.js:437:44)
at PuppetPuppeteer.emit (events.js:198:13)
at PuppetPuppeteer.EventEmitter.emit (domain.js:448:20)
at PuppetPuppeteer.emit (/root/node_modules/wechaty-puppet/dist/src/puppet.js:164:22)
at PuppetPuppeteer.<anonymous> (/root/node_modules/wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/puppet-puppeteer.js:106:22)
at Generator.throw (<anonymous>)
at rejected (/root/node_modules/wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/puppet-puppeteer.js:23:65)
at process._tickCallback (internal/process/next_tick.js:68:7)

23:40:07 ERR Wechaty start() exception: Error: Error: Error: Failed to launch chrome!
/root/node_modules/wechaty/node_modules/puppeteer/.local-chromium/linux-662092/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

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

(node:95) UnhandledPromiseRejectionWarning: Error: Error: Error: Error: Failed to launch chrome!
/root/node_modules/wechaty/node_modules/puppeteer/.local-chromium/linux-662092/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

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

at PuppetPuppeteer.puppet.on.error (/root/node_modules/wechaty/dist/src/wechaty.js:437:44)
at PuppetPuppeteer.emit (events.js:198:13)
at PuppetPuppeteer.EventEmitter.emit (domain.js:448:20)
at PuppetPuppeteer.emit (/root/node_modules/wechaty-puppet/dist/src/puppet.js:164:22)
at PuppetPuppeteer.<anonymous> (/root/node_modules/wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/puppet-puppeteer.js:106:22)
at Generator.throw (<anonymous>)
at rejected (/root/node_modules/wechaty/node_modules/wechaty-puppet-puppeteer/dist/src/puppet-puppeteer.js:23:65)
at process._tickCallback (internal/process/next_tick.js:68:7)

(node:95) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:95) [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.

@matrixhome

This comment has been minimized.

Copy link

commented Jun 12, 2019

I use ubuntu in Windows. And igot the same erro. But after i running "apt-get install libxss1" i still get these errors.---->

i still get these errors too.

@PIPIPIKa

This comment has been minimized.

Copy link

commented Jun 12, 2019

@timqian

This comment has been minimized.

Copy link

commented Jun 19, 2019

libxss1 seems not enough, try install all the following libs(works for me)

sudo apt-get install gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

ref: GoogleChrome/puppeteer#3443 (comment)

@PIPIPIKa

This comment has been minimized.

Copy link

commented Jun 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.