K
K
Kirill2020-10-12 21:31:17
Python
Kirill, 2020-10-12 21:31:17

Error -4 Selenium - Service geckodriver unexpectedly exited?

Trying to transfer a working script from Windows to vds debian for the 3rd time leads to one result:
selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: -4
Permissions for geckodriver - 777
Already googled and overgoogled everything (probably). What is the possible problem?

Complete error

Traceback (most recent call last):
File "/usr/local/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/local/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/var/www/manswersclassbot/bot/management/commands/ffparser.py", line 51, in pars
driver_pars = webdriver.Firefox()
File "/var/www/manswersclassbot/env/lib/python3.8/site-packages/selenium/webdriver/firefox/webdriver.py", line 164, in __init__
self.service.start()
File "/var/www/manswersclassbot/env/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 98, in start
self.assert_process_still_running()
File "/var/www/manswersclassbot/env/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 109, in assert_process_still_running
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: -4

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill, 2020-12-23
@kustiktm_kirill

In general, I solved the problem by installing Ubuntu instead of Debian.
I don’t know why, but it didn’t work on Debian.

S
Sergey Karbivnichy, 2020-10-12
@hottabxp

Check that Firefox and geckodriver versions match. Also check that Selenium is running in headless mode.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question