Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

出现chrome不可用的错误。Message: unknown error: cannot connect to chrome at 127.0.0.1:50131 from chrome not reachable #12

Closed
neomx7 opened this issue Feb 21, 2023 · 1 comment

Comments

@neomx7
Copy link

neomx7 commented Feb 21, 2023

我启动main的镜像,出现了以下错误,
(我进入镜像发现chrome是安装好的,不知道哪里出错了 )

[2023-02-21 03:34:01 +0000] [118] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/ggevent.py", line 146, in init_process
super().init_process()
File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/chatgpt-html/main.py", line 12, in
chatbot = Chatbot(config)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/revChatGPT/Unofficial.py", line 72, in init
self.__email_login()
File "/usr/local/lib/python3.11/site-packages/revChatGPT/Unofficial.py", line 481, in __email_login
driver = uc.Chrome(
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/undetected_chromedriver/init.py", line 441, in init
super(Chrome, self).init(
File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 80, in init
super().init(
File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 104, in init
super().init(
File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in init
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.11/site-packages/undetected_chromedriver/init.py", line 704, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:50131
from chrome not reachable
Stacktrace:
#0 0x55d9dc042d93
#1 0x55d9dbe1115d
#2 0x55d9dbdffa2b
#3 0x55d9dbe3dc63
#4 0x55d9dbe352fc
#5 0x55d9dbe7a4f4
#6 0x55d9dbe71353
#7 0x55d9dbe40e40
#8 0x55d9dbe42038
#9 0x55d9dc0968be
#10 0x55d9dc09a8f0
#11 0x55d9dc07af90
#12 0x55d9dc09bb7d
#13 0x55d9dc06c578
#14 0x55d9dc0c0348
#15 0x55d9dc0c04d6
#16 0x55d9dc0da341
#17 0x7f81c064fea7 start_thread

@slippersheepig
Copy link
Owner

刚用最新代码跑了一遍,重现了这个问题。应该是cloudflare那边patched了,作者项目主页和wiki也没有unofficial的使用方法了,仅仅代码里还有保留。感谢反馈,main分支已不可用。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants