Common Errors
No undetected chromedriver binary were found
No undetected chromedriver binary were found
Error Message:Cause: You’re using multiprocessing without properly initializing the patcher.Solution:Call See Multiprocessing Setup for more details.
Patcher.patch() before spawning processes and use user_multi_procs=True:you cannot reuse the ChromeOptions object
you cannot reuse the ChromeOptions object
Error Message:Cause: Attempting to use the same
ChromeOptions instance for multiple drivers.Solution:Create a new options object for each driver:PermissionError when accessing chromedriver
PermissionError when accessing chromedriver
Error Message:Cause: Multiple processes are trying to modify the same binary file, or the file is still in use.Solutions:
- For multiprocessing: Use
user_multi_procs=True
- For single process: Ensure previous driver is properly closed
- Manual cleanup:
Chrome fails to start as root
Chrome fails to start as root
Error Message:Cause: Chrome refuses to run as root without the Better solution: Don’t run as root. Create a dedicated user:
--no-sandbox flag.Solution:The library adds this automatically by default. If you’re still seeing this, ensure you haven’t disabled it:SessionNotCreatedException: session not created
SessionNotCreatedException: session not created
Error Message:Cause: ChromeDriver version doesn’t match your Chrome browser version.Solution:Undetected automatically downloads the correct version. This error usually indicates:
- Manual driver path specified incorrectly:
- Unusual Chrome installation location:
- Force re-download:
Browser detected as bot
Browser detected as bot
Symptom: Your browser is still being detected by Cloudflare, DataDome, or other anti-bot systems.Possible Causes & Solutions:
- Too many customizations:
- Headless mode:
- Behavioral patterns:
- IP reputation:
- Use residential proxies instead of datacenter IPs
- Rotate IP addresses
- Respect rate limits
Temp profile not deleted
Temp profile not deleted
Symptom: Temporary user data directories accumulate in Manual cleanup:
/tmp or AppData.Cause: Driver not properly closed with quit().Solution:Always call quit() using try/finally:Could not connect to Chrome
Could not connect to Chrome
Error Message:Causes & Solutions:
- Chrome crashed during startup:
- Port already in use:
- Firewall blocking:
- Check that localhost/127.0.0.1 is not blocked
- Ensure Chrome can bind to random high ports
TimeoutException during page load
TimeoutException during page load
Error Message:Solutions:
- Increase page load timeout:
- Use eager loading strategy:
- Wait for specific elements instead:
Platform-Specific Issues
Linux
Missing shared libraries
Missing shared libraries
Display issues in headless environments
Display issues in headless environments
Error: Or use headless mode:
Could not initialize GTKSolution:Windows
Antivirus blocking ChromeDriver
Antivirus blocking ChromeDriver
Symptom: ChromeDriver is deleted or quarantined immediately after download.Solution:Add exception for the undetected data directory:
- Default location:
%APPDATA%\Roaming\undetected - Add to antivirus exclusions
Path too long error
Path too long error
Error: Or enable long paths in Windows:
OSError: [WinError 206] The filename or extension is too longSolution:macOS
macOS Gatekeeper blocking ChromeDriver
macOS Gatekeeper blocking ChromeDriver
Error:
"chromedriver" cannot be opened because the developer cannot be verifiedSolution:Docker Issues
Running in Docker containers
Running in Docker containers
Common issues: Shared memory, display, Chrome installationSolution:Use this Dockerfile template:Python code:
Performance Issues
Slow page loads
Slow page loads
Solutions:
- Disable images:
- Use eager loading:
- Disable unnecessary features:
High memory usage
High memory usage
Solutions:
- Limit concurrent instances:
- Use headless mode:
- Clean up properly:
- Increase Docker memory limit:
Debugging Tips
Enable Debug Logging
Save Screenshots on Error
Check Chrome Version
Test Bot Detection
Getting Help
If you’re still experiencing issues:- Check the GitHub issues: undetected-chromedriver issues
- Provide details: Chrome version, OS, Python version, full error traceback
- Minimal reproducible example: Simplify your code to the minimum that reproduces the issue
Next Steps
- Review Basic Usage for correct patterns
- Check Multiprocessing Setup for concurrent execution
- Explore Custom Options for configuration details