symfony / panther

A browser testing and web crawling library for PHP and Symfony
MIT License
2.91k stars 213 forks source link

Failed to read marionette port error when using createFirefoxClient() #610

Open wanwin opened 7 months ago

wanwin commented 7 months ago

Hi!

On a server running on Debian 11, after executing $client = Client::createFirefoxClient('/var/www/vhosts/my_domain/htdocs/drivers/geckodriver'); with PANTHER_FIREFOX_BINARY='/usr/bin/firefox' (before installing Firefox and setting that variable, I was getting another error: "Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line") set in .env file, I'm always getting the same error specified in the issue's title.

Could you please tell me how to fix that error? I've read people experiencing the same problem with Selenium, but nothing involving Panther and after trying different solutions without success I feel that I've reached a dead end.

In case it helps, here you have the version of the different components that I have installed:

Firefox -> 119.0.1 (downloaded from https://archive.mozilla.org/pub/firefox/releases/119.0.1/linux-x86_64/es-ES/firefox-119.0.1.tar.bz2, because I installed it first through apt but after experiencing the mentioned error, I read in this thread that installing the package the other way was less troubleful).

Geckodriver -> 0.33.0 (https://github.com/mozilla/geckodriver/releases/download/v0.33.0/geckodriver-v0.33.0-linux64.tar.gz).

Panther -> 1.1.2.

Thank you in advance!