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

SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally #3

Open
udupicloud opened this issue Dec 3, 2024 · 0 comments

Comments

@udupicloud
Copy link

Hi @reda-marzouk608,

Tried to install on Ubuntu 22.04 LTS with CLI Mode. When I try to scrape some of the Amazon or any links, I get below error.
Can you help me fix the issue.

Regards,
Mark.

ERROR MESSAGE - Below
SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally. (session not created: DevToolsActivePort file doesn't exist) (The process started from chrome location /opt/google/chrome/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.) Stacktrace: #0 0x55b705f1631a #1 0x55b705a2c6e0 #2 0x55b705a63dc8 #3 0x55b705a5f926 #4 0x55b705aab6f6 #5 0x55b705aaad46 #6 0x55b705a9f203 #7 0x55b705a6dcc0 #8 0x55b705a6ec9e #9 0x55b705ee3d0b #10 0x55b705ee7c92 #11 0x55b705ed0b3c #12 0x55b705ee8807 #13 0x55b705eb60df #14 0x55b705f05578 #15 0x55b705f05740 #16 0x55b705f15196 #17 0x7feab39deac3
Traceback:
File "/root/anaconda3/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 85, in exec_func_with_error_handling
result = func()
^^^^^^
File "/root/anaconda3/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 576, in code_to_exec
exec(code, module.dict)
File "/root/scrape-master/streamlit_app.py", line 117, in
st.session_state['driver'] = setup_selenium(attended_mode=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/scrape-master/scraper.py", line 65, in setup_selenium
driver = webdriver.Chrome(service=service, options=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/lib/python3.12/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
super().init(
File "/root/anaconda3/lib/python3.12/site-packages/selenium/webdriver/chromium/webdriver.py", line 66, in init
super().init(command_executor=executor, options=options)
File "/root/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 241, in init
self.start_session(capabilities)
File "/root/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 329, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 384, in execute
self.error_handler.check_response(response)
File "/root/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
raise exception_class(message, screen, stacktrace)

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

1 participant