Score:3

Could not start a new session. Response code 500. Message: Failed to read marionette port

ke flag

I am trying to use Selenium with Java and Firefox but I am getting the below issue.

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: Failed to read marionette port
  • ubuntu 22.04 LTS
  • Geckodriver version: 0.330
  • Firefox version: 116.0.3
Score:3
cn flag

I think there is bug in firefox binary installed using apt/snap, I faced same issue when I installed firefox from apt package respository. I solved this by downloading firefox from official mozilla source and symlinked binary to /usr/bin/firefox/

First remove firefox from you system.

apt remove firefox

Download firefox from official source. (You may need to replace download URL)

wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/116.0.3/linux-x86_64/en-US/firefox-116.0.3.tar.bz2

Extract downloaded archive to location you want. I am using opt to extract archive.

tar -xf firefox-116.0.3.tar.bz2 --directory /opt/

Then symlink firefox binary to /usr/bin

ln -s /opt/firefox/firefox /usr/bin/firefox
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.