Closed lancezhaozai closed 2 years ago
remove your manual options especially profile directory. make sure nothing chrome related is running, so pkill -f google-chome
remove your manual options especially profile directory. make sure nothing chrome related is running, so pkill -f google-chome
I had removed profile directory and make sure nothing chrome related is alive in system, I had done what you mentioned and yes it did resolved the errors, but wont work for bypassing Akamai and CF, last night I was able to connect to the opened chrome session that I manually launch, and UC able to bypass Akamai and CF perfectly, with profile directory, because profile directory intend to reuse the opened chrome session and connect to it, it works that way last night, but right now it got the error I mentioned
Do you mind I send you everything to reproduce the error and idea? because with UC connected to chrome session, it really works
that is in fact what uc does. launching chrome and manually connects to it. it's quite simple here: chrome does not start and therefore uc cannot connect . you need to find out what command line is used by uc (debug=True) then copy it to a terminal and see the output.
oh: you can run only 1 instance per userdatadir .
the code:
From chrome://version: Chrome version: 102.0.5005.61 (Official Build) (64-bit) Executable Path | /opt/google/chrome/google-chrome Profile Path | /home/user/.config/google-chrome/Default
undetected-chromedriver==3.1.5.post4
Problem: last night the code was fine, everything work, I able to launch UC directly from python and get pass CF and akamai. but today I restarted my workstation, and have above errors
Scenario 1. UC unable to work totally and shows "Chrome is being controlled by automated test software", and got the above errors
Scenario 2. I launch chrome manually, then launching UC in code, the chrome windows pop without "Chrome is being controlled by automated test software" and works by clicking and input data MANUALLY, but still got above errors
Scenario 3. I change the --user-data-dir=/home/user/.config/google-chrome to --user-data-dir=/home/user/.config/google-chrome/Default, now it cannot get pass CF and akamai
I tried other threads and stackoverflow possible fix in order to overcome this issue but no luck, so I believe yesterday I just got lucky and got pass chrome session and connected it, it seems has something to do with the chrome session like
https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/155
but I cannot find the root cause and get it solve
Edit 1: I had tried old version of chrome and old version of UC, it got even more errors like "The directory is being used", so i decided to step back to last worked code