Webdriver Exception:Process unexpectedly closed with status: 1
I am using selenium 4.19.0, and Firefox as the webdriver with headless configuration. My code works perfectly fine in my local machine. However, When I deploy it to railway I get the following error:
selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1
Solution:Jump to solution
Because Firefox is not installed in your container.
I would highly recommend using browserless instead, simply deploy browserless into your project and then check out the example here https://www.browserless.io/docs/selenium-library
This would also have the benefits of not needing to install Firefox or it's needed system dependencies making your build and publish times faster!...
5 Replies
Project ID:
ca15a8b2-bbe5-4c66-b6d9-d7ee51bfe682
ca15a8b2-bbe5-4c66-b6d9-d7ee51bfe682
Solution
Because Firefox is not installed in your container.
I would highly recommend using browserless instead, simply deploy browserless into your project and then check out the example here https://www.browserless.io/docs/selenium-library
This would also have the benefits of not needing to install Firefox or it's needed system dependencies making your build and publish times faster!
I don't want to use browserless since it's not free to use. How can I install firefox in railway?
my recommendation was to run browserless on railway