-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 Bug]: Message: session not created: probably user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir #15450
Comments
@FJSF, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Try launching chromium from the command line and see what happens (make sure it's the same one your script is using). That error just means chrome/chromium failed to launch (for whatever reason). We really need to get chromedriver to return a better error message, because that message is returned whenever any internal error occurs and it's misleading and useless. Also, please post the code you are using (your pastebin just shows the script you called it with) |
@cgoldberg
The code that now i try to run is a simple one (ignore the import library because i copied from an other code):
|
This is not a Selenium-specific issue. @cgoldberg is being very kind in helping out. Please try and see this thread too #15327. In case you find some useful suggestions. |
@FJSF so yea... that's the issue. If you can't launch chrome on that system, there's no way selenium can launch it. I'm going to close this, since it's a chrome/chromium issue. You can try reporting it to chromium developers to figure out why it won't launch. |
What happened?
Hi, i am currently trying to run a python script that navigate on the web with selenium and get the html of the product page on a web site and then do scraping to collect info. The info are stored in a database mariadb.
I am on a Rasberry pi 5 on Ubuntu, the version of Chromium is Chromium 133.0.6943.141 snap and the version of the chromedriver is ChromeDriver 133.0.6943.141 (2a5d6da0d6165d7b107502095a937fe7704fcef6-refs/branch-heads/6943@{#1912}). As the title said i can't run the script without getting the error:
My chrome options are:
options = Options()
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--headless=new')
options.add_argument('--disable-gpu')
options.add_argument('--disable-extensions')
options.add_argument('--remote-debugging-port=9222') # Specify a port
options.add_argument('--disable-setuid-sandbox')
options.add_argument("--incognito")
options.add_argument("--disable-application-cache")
options.add_argument("--enable-do-not-track")
options.add_argument("--disable-popup-blocking")
options.binary_location = '/snap/bin/chromium'
service = Service('/usr/bin/chromedriver')
I saw in a github report that maybe there is a problem when running as root, i checked and i am not running as root, i tried to run the chromedriver and:
so i checked with
ps -aux | grep
chromedriver and i got:then i tried to run the same command to check with chromium before i could get the error and:
I lost hope.
ps: i have a pastebin with the code: https://pastebin.com/aL4QiGV4 (dont read the message README because is from another error with cron)
How can we reproduce the issue?
Relevant log output
Operating System
Linux ubuntu 6.8.0-1018-raspi #20-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 12:35:36 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux
Selenium version
selenium==4.28.1
What are the browser(s) and version(s) where you see this issue?
Chromium 133.0.6943.141 snap
What are the browser driver(s) and version(s) where you see this issue?
ChromeDriver 133.0.6943.141 (2a5d6da0d6165d7b107502095a937fe7704fcef6-refs/branch-heads/6943@{#1912})
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: