Streamlit-Selenium icon indicating copy to clipboard operation
Streamlit-Selenium copied to clipboard

How does the docker image work in conjunction with Undetected Chromedriver?

Open mansidak opened this issue 2 years ago • 4 comments

I dig deep into how your code works and figured this might be happened due to the way the docker file has been configured? FYI, I get the following error: 'WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.'

Your code has been a real lifesaver - it allowed me to finish a project using Streamlit and Selenium with relative ease. However, I had to use undetected_chromedriver instead of the regular WebDriver, and an issue has arisen after running the app with multiple users: it starts to break, and sometimes even reboots itself, attempting to re-install the package dependencies.

I looked into the issue further and think it might have something to do with how the Dockerfile is configured. The error I see is

bcbc051e0e491a1d653fdaf71264a1a280db7dec

Could you advise on how to resolve this issue?

mansidak avatar Feb 14 '23 13:02 mansidak

I haven't used undetected_chromedriver yet, so i can give no quick answer. And also this is way too little information to give any advice. Please share a link to your github project, then i can have a look at it.

Franky1 avatar Feb 14 '23 14:02 Franky1

I'm having a similar problem, I'm using undetected-chromedriver(uc) in my project uc is also a chromedriver, I put chromium and chromium-driver in the package.txt file, but it still fails when I run it in streamlit share.

About undetected-chromedriver, its github homepage is https://github.com/ultrafunkamsterdam/undetected-chromedriver

goldengrape avatar Feb 16 '23 19:02 goldengrape

@goldengrape Can you share a github repo about what you have tried so far?

Franky1 avatar Feb 20 '23 23:02 Franky1

@Franky1 https://github.com/goldengrape/ChatGPT_Text_Feeder it runs well locally, maybe I should get rid of that Undetected Chromdriver, replace with normal Chromdriver

goldengrape avatar Feb 25 '23 05:02 goldengrape