Skip to content
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

User data directory error when running bot #3

Closed
khangbeo opened this issue Aug 10, 2024 · 5 comments
Closed

User data directory error when running bot #3

khangbeo opened this issue Aug 10, 2024 · 5 comments

Comments

@khangbeo
Copy link

I followed the installation guide and downloaded the latest versions of Chrome, ChromeDriver, and Python. Upon running the bot, I ran into the following error where the bot failed to open Chrome. This occur while I have an open Chrome session. Next, I tried to run the bot with all Chrome instances closed and ran into a second error that told me that Chrome crashed.

1st Error:

Runtime error: Error running the bot: Failed to initialize browser: Message: invalid argument: user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir
Stacktrace:
        GetHandleVerifier [0x00CD8923+23283]
        (No symbol) [0x00C9E934]
        (No symbol) [0x00BD0733]
        (No symbol) [0x00BFED91]
        (No symbol) [0x00BFBAE9]
        (No symbol) [0x00C3D9ED]
        (No symbol) [0x00C3D21A]
        (No symbol) [0x00C341B6]
        (No symbol) [0x00C08017]
        (No symbol) [0x00C0890D]
        GetHandleVerifier [0x00DCA5E3+1013683]
        GetHandleVerifier [0x00DD3E3C+1052684]
        GetHandleVerifier [0x00DCD4A4+1025652]
        GetHandleVerifier [0x00CFEA2B+179195]
        (No symbol) [0x00CA6833]
        (No symbol) [0x00CA3198]
        (No symbol) [0x00CA3337]
        (No symbol) [0x00C9B4BE]
        BaseThreadInitThunk [0x77AFFCC9+25]
        RtlGetAppContainerNamedObjectPath [0x77DD80CE+286]
        RtlGetAppContainerNamedObjectPath [0x77DD809E+238]

2nd Error:

Runtime error: Error running the bot: Failed to initialize browser: Message: session not created: Chrome failed to start: crashed.
  (chrome not reachable)
  (The process started from chrome location C:\Users\Kbeo\AppData\Local\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
        GetHandleVerifier [0x00CD8923+23283]
        (No symbol) [0x00C9E934]
        (No symbol) [0x00BD0733]
        (No symbol) [0x00C01075]
        (No symbol) [0x00BFBAE9]
        (No symbol) [0x00C3D9ED]
        (No symbol) [0x00C3D21A]
        (No symbol) [0x00C341B6]
        (No symbol) [0x00C08017]
        (No symbol) [0x00C0890D]
        GetHandleVerifier [0x00DCA5E3+1013683]
        GetHandleVerifier [0x00DD3E3C+1052684]
        GetHandleVerifier [0x00DCD4A4+1025652]
        GetHandleVerifier [0x00CFEA2B+179195]
        (No symbol) [0x00CA6833]
        (No symbol) [0x00CA3198]
        (No symbol) [0x00CA3337]
        (No symbol) [0x00C9B4BE]
        BaseThreadInitThunk [0x77AFFCC9+25]
        RtlGetAppContainerNamedObjectPath [0x77DD80CE+286]
        RtlGetAppContainerNamedObjectPath [0x77DD809E+238]
@feder-cr
Copy link
Owner

unistall ChromeDriver, reistall chrome and find and delete this file /home/.config/google-chrome/linkedin_profile

@khangbeo
Copy link
Author

khangbeo commented Aug 11, 2024

Where should ChromeDriver be placed? I'm trying to follow the steps here to ensure correct file path but not sure how that can be configured for the bot
https://developer.chrome.com/docs/chromedriver/get-started

Also, where can I find the path: /home/.config/google-chrome/linkedin_profile

@feder-cr
Copy link
Owner

try to

unistall chromedriver
unistalll chrome
delete folder C:\Users[Your Username]\AppData\Local\Google
delete folder C:\home.config\google-chrome
Reinstall chrome
Start bot

@feder-cr
Copy link
Owner

@khangbeo

@feder-cr
Copy link
Owner

@khangbeo solved?
join the telegram group, so we can discuss it more easily - > https://t.me/AIhawkCommunity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants