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

在阿里云的容器服务里启动puppeteer启动报错 #7

Closed
yay2008 opened this issue Jun 24, 2020 · 5 comments
Closed

在阿里云的容器服务里启动puppeteer启动报错 #7

yay2008 opened this issue Jun 24, 2020 · 5 comments

Comments

@yay2008
Copy link

yay2008 commented Jun 24, 2020

这是容器日志
{"source":"Server","message":"Server running at http://127.0.0.1:80/","level":"info","hostname":"rebirth-0","material_url":"https://github.com/","timestamp":"2020-06-24 15:17:51"}
(node:21) UnhandledPromiseRejectionWarning: TimeoutError: Timed out after 30000 ms while trying to connect to Chrome! The only Chrome revision guaranteed to work is r706915
at Timeout.onTimeout (/etc/www/node_modules/puppeteer-core/lib/Launcher.js:359:14)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
(node:21) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:21) [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.

@BlackHole1
Copy link
Contributor

是以Docker的方式启动的么?还是?

@BlackHole1
Copy link
Contributor

BlackHole1 commented Jun 24, 2020

如果以非Docker形式启动或不是以Mac系统启动的话,会有问题的,因为当初在设计程序的时候,没有打算考虑这种情况

@yay2008
Copy link
Author

yay2008 commented Jun 28, 2020

是基于Docker的, 容器服务的介绍, Kubernetes里也试过,一样的问题

@BlackHole1
Copy link
Contributor

可以贴下你docker run的命令么,我在本地做个测试。
如: docker run -dit -P -v /tmp/rebirth:/root -e ENV=XXX rebirth

@BlackHole1
Copy link
Contributor

刚刚在本地使用:
docker run -dit -P --name rebirth_alo7 -v pwd/rebirth_alo7/logs:/etc/www/logs -v pwd/rebirth_alo7/video:/root/Downloads -e MATERIAL_URL="https://www.alo7.com/en/" -e START_VNC="yes" alo7docker/rebirth

测试没有问题,是自己构建的 docker images 么?

@yay2008 yay2008 closed this as completed Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants