ClericPy / ichrome

Chrome controller for Humans, based on Chrome Devtools Protocol(CDP) and python3.7+.
https://pypi.org/project/ichrome/
MIT License
228 stars 29 forks source link

ChromeWorker failed to start when runnning with gunicorn. #62

Closed oosugi84 closed 2 years ago

oosugi84 commented 2 years ago
[2021-09-23 10:42:03 +0000] [24978] [INFO] Starting gunicorn 20.1.0
[2021-09-23 10:42:03 +0000] [24978] [INFO] Listening at: http://0.0.0.0:19528 (24978)
[2021-09-23 10:42:03 +0000] [24978] [INFO] Using worker: gevent
[2021-09-23 10:42:03 +0000] [24982] [INFO] Booting worker with pid: 24982
[2021-09-23 10:42:03 +0000] [24983] [INFO] Booting worker with pid: 24983
[2021-09-23 10:42:03 +0000] [24984] [INFO] Booting worker with pid: 24984
INFO  2021-09-23 10:43:53 [ichrome] pool.py(470): [enqueue](0) ChromeTask(<9234>, PENDING, id=1, tab=None), timeout=None, data=<ichrome.pool._TabWorker object at 0x000000000875ae58>

The program works well with django dev python manage.py runserver 0.0.0.0:19528 Thank you very much for any help!

ClericPy commented 2 years ago

I don't know what happened here.

ChromeWorker depends on fastapi, or you can handle the ChromeDaemon instances by yourself because the ChromeWorker is an experimental attempt for now.