Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /home/ubuntu/.cache/selenium/chrome/linux64/116.0.5845.96/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x5566bf874e23 <unknown>
#1 0x5566bf59d7a7 <unknown>
#2 0x5566bf5c850a <unknown>
#3 0x5566bf5c5a25 <unknown>
#4 0x5566bf605d92 <unknown>
#5 0x5566bf6053af <unknown>
#6 0x5566bf
The code i used is
from langchain.document_loaders import SeleniumURLLoader
loader = SeleniumURLLoader(urls=urls) data = loader.load()
I am using SeleniumUrlLoader to scrape websites, it works in local environment but gives the above error in AWS EC2 Ubuntu. Any solutions ??