25 lines
1.0 KiB
Markdown
25 lines
1.0 KiB
Markdown
# Selenium Undetected Standalone-Chromedriver
|
|
|
|
Selenium Standalone-Chromedriver with Undected-Chromedriver applied
|
|
|
|
## Bug
|
|
|
|
```txt
|
|
Could not start a new session. Response code 500. Message: session not created: probably user data directory is already in use,
|
|
```
|
|
|
|
Go into the `/home/seluser` director in the container and run `rm -rf ~/.config/google-chrome/Singleton*`
|
|
|
|
One-liner : `rm -rf /home/seluser/.config/google-chrome/Singleton* && exit`
|
|
|
|
If it doesn't work, the log can be found in the seluser chrome profile folder in the file `chrome_debug.log`
|
|
|
|
```txt
|
|
Could not start a new session. Response code 500. Message: session not created: Chrome instance exited. Examine ChromeDriver verbose log to determine the cause.
|
|
```
|
|
|
|
The log can be found in the seluser chrome profile folder in the file `chrome_debug.log`.
|
|
|
|
If the log file only says that the chrome profile folder seems to be in use by another chrome application, there is probably a problem with a file in the chrome profile folder like a version change.
|
|
The best thing to do is to delete the folder.
|