Когда выгружаю Telegram бота на selenium на сервер выдаёт ошибку.
Не могу понять проблема с Chrome или WebDriver.
Выдаёт вот такую ошибку.
Task exception was never retrieved
future: exception=WebDriverException()>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/dispatcher.py", line 415, in _process_polling_updates
for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/dispatcher.py", line 235, in process_updates
return await asyncio.gather(*tasks)
File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/handler.py", line 116, in notify
response = await handler_obj.handler(*args, **partial_data)
File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/dispatcher.py", line 256, in process_update
return await self.message_handlers.notify(update.message)
File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/handler.py", line 116, in notify
response = await handler_obj.handler(*args, **partial_data)
File "main.py", line 66, in product
browser = webdriver.Chrome(service=service, options=options_chrome)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
super().__init__(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chromium/webdriver.py", line 106, in __init__
super().__init__(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 288, in __init__
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 381, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x55a3f5fe1fe3
#1 0x55a3f5d20d36
#2 0x55a3f5d49b20
#3 0x55a3f5d45a9b
#4 0x55a3f5d87af7
#5 0x55a3f5d8711f
#6 0x55a3f5d7e693
#7 0x55a3f5d5103a
#8 0x55a3f5d5217e
#9 0x55a3f5fa3dbd
#10 0x55a3f5fa7c6c
#11 0x55a3f5fb14b0
#12 0x55a3f5fa8d63
#13 0x55a3f5f7bc35
#14 0x55a3f5fcc138
#15 0x55a3f5fcc2c7
#16 0x55a3f5fda093
#17 0x7fce3f4fe609 start_thread
Помогите пожалуйста понять в чём проблема.
-
Вопрос задан
-
52 просмотра