Open nbarsch opened 1 year ago
I now get the error: Error in wdman::selenium(port = port, verbose = verbose, version = version, : Selenium server couldn't be started
This happened with a firefox update. Any suggestions?
I now also get the error: "Selenium server couldn't be started" It used to work some days ago.
To reproduce you can use my (almost minimal) dockerfile. Tested with Docker version 20.10.16, build 20.10.16-0ubuntu1
Hope this helps for debugging. Feedback for optimization of dockerfile also welcome.
Greetings, BerndGit
Hi nbarsch!
Thanks!
In Ubuntu 22.04 the default firefox now comes via the dumpster fire that is Snap. To make RSelenium work with browser="firefox" by default without loading a custom profile, the apt version of firefox is required instead of the snap version.
When trying using the default firefox that comes with 22.04, RSelenium firefox launch fails:
A popup appears with "Your Firefox profile cannot be loaded. It may be missing or inaccessible."
The following error appears in R: Selenium message:Process unexpectedly closed with status 1 Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T21:30:10' System info: host: 'mycomputer', ip: 'removed', os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.0-40-generic', java.version: '11.0.15' Driver info: driver.version: unknown remote stacktrace:
Could not open firefox browser. Client error message: Summary: UnknownError Detail: An unknown server-side error occurred while processing the command. Further Details: run errorDetails method Check server log for further details.
To fix this, the easiest way is to uninstall the dumpster fire snap version and install the apt version (following this https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04):
After re-installing using the apt version above, RSelenium can be launched as normal in R: