title: WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: 64 error using Selenium Geckodriver Firefox in FreeBSD jail
body: <p>For some tests, I've set up a plain new TrueNAS 12.3 FreeBSD Jail and started it, then installed <code>python3</code>, <code>firefox</code>, <code>geckodriver</code> and <code>pip</code> using the following commands:</p>
  <pre><code>pkg install python3 firefox geckodriver py38-pip
  pip install --upgrade pip
  setenv CRYPTOGRAPHY_DONT_BUILD_RUST 1
  pip install cryptography==3.4.7
  pip install selenium
  </code></pre>
  <p>Afterwards, when I want to use Selenium with Firefox in my Python code, it does not work:</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.firefox.options import Options
  options = Options()
  options.headless = True
  driver = webdriver.Firefox(options=options)
  </code></pre>
  <p>it brings</p>
  <pre><code>Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;/usr/local/lib/python3.8/site-packages/selenium/webdriver/firefox/webdriver.py&quot;, line 174, in __init__
      self.service.start()
    File &quot;/usr/local/lib/python3.8/site-packages/selenium/webdriver/common/service.py&quot;, line 98, in start
      self.assert_process_still_running()
    File &quot;/usr/local/lib/python3.8/site-packages/selenium/webdriver/common/service.py&quot;, line 110, in assert_process_still_running
      raise WebDriverException(
  selenium.common.exceptions.WebDriverException: Message: Service geckodriver unexpectedly exited. Status code was: 64
  </code></pre>
  <p>Funnily, on another Jail that I've set up approximately a year ago (approximately in the mentioned way as well), it just works and does not throw the error (so different versions maybe?)!</p>
  <p>This is the only content of <code>geckodriver.log</code>:</p>
  <pre><code>geckodriver: error: Found argument '--websocket-port' which wasn't expected, orisn't valid in this context
  
  USAGE:
      geckodriver [FLAGS] [OPTIONS]
  
  For more information try --help
  </code></pre>
  <p>Is there anything I could try to get it working? I've already seen <a href="https://stackoverflow.com/q/39163331/4249849">this question</a>, but it seems fairly outdated.</p>
  <p>Firefox 95.0.2, geckodriver 0.26.0, Python 3.8.12, Selenium 4.1.0</p>