Skip to content
Advertisement

chrome not reachable Selenium webDriverException

Option values when creating drivers

JavaScript

On the remote server(ubuntu on EC2) via ssh, Attempt to run Python scripts using selenium via nohup python3 ~~. py> ~/log.out & It works well when maintaining the ssh connection with the server. But an error occurs a few seconds after disconnecting the ssh

selenium.common.exceptions.WebDriverException: Message: chrome not reachable (Session info: headless chrome=102.0.5005.61)

How do I complete the script even after I close the ssh connection?

I’ve already tried to terminate Chrome and Web Driver processes before executing the script

brower and web driver version info

JavaScript

Advertisement

Answer

Try running screen, hitting enter and then entering the nohup-command

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement