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

这是不是依赖图形界面 #22

Closed
yxxhero opened this issue Sep 22, 2019 · 9 comments
Closed

这是不是依赖图形界面 #22

yxxhero opened this issue Sep 22, 2019 · 9 comments
Labels
bug Something isn't working

Comments

@yxxhero
Copy link

yxxhero commented Sep 22, 2019

这是不是依赖图形界面

@tikazyq
Copy link
Collaborator

tikazyq commented Sep 22, 2019

拉取最新的docker或者在系统设置中把chrome浏览器模式设置为关闭

@tikazyq
Copy link
Collaborator

tikazyq commented Sep 22, 2019

这是docker下的bug,没有安装x11

@yxxhero
Copy link
Author

yxxhero commented Sep 22, 2019

您好 我是在服务器centos上弄的 我需要安装x11么 在docker里 还有您的那个chrome插件安装后会导致整个chrome报错

@tikazyq
Copy link
Collaborator

tikazyq commented Sep 22, 2019

docker不用装x11

chrome尽量用最新版本76

@yxxhero
Copy link
Author

yxxhero commented Sep 22, 2019

我的78版本
以下是在docker里的报错
(node:23) UnhandledPromiseRejectionWarning: Error: Failed to launch chrome!
(chrome:62): Gtk-WARNING **: 07:01:03.576: cannot open display:
TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
at onClose (/app/node_modules/puppeteer-core/lib/Launcher.js:348:14)
at ChildProcess.helper.addEventListener (/app/node_modules/puppeteer-core/lib/Launcher.js:338:60)
at emitTwo (events.js:131:20)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
at emitWarning (internal/process/promises.js:65:17)
at emitPendingUnhandledRejections (internal/process/promises.js:109:11)
at process._tickCallback (internal/process/next_tick.js:190:7)
(node:23) Error: Failed to launch chrome!
(chrome:62): Gtk-WARNING **: 07:01:03.576: cannot open display:
TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
at onClose (/app/node_modules/puppeteer-core/lib/Launcher.js:348:14)
at ChildProcess.helper.addEventListener (/app/node_modules/puppeteer-core/lib/Launcher.js:338:60)
at emitTwo (events.js:131:20)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

@tikazyq

@tikazyq
Copy link
Collaborator

tikazyq commented Sep 22, 2019

在“系统设置”页面里,将“Chrome浏览器调试”设置为“关闭”

@yxxhero
Copy link
Author

yxxhero commented Sep 22, 2019

可以了 但是现在点击 更新cooike状态 提示超时 504 麻烦您了 这是怎么回事

@tikazyq
Copy link
Collaborator

tikazyq commented Sep 22, 2019

加微信私聊 tikazyq1

@tikazyq tikazyq added the bug Something isn't working label Sep 23, 2019
@tikazyq
Copy link
Collaborator

tikazyq commented Sep 23, 2019

fixed in ac8b088

@tikazyq tikazyq closed this as completed Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants