-
Notifications
You must be signed in to change notification settings - Fork 134
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
Message: session not created: Chrome failed to start: exited normally. #235
Comments
I have the exact same error after publishing the docker image on AWS Lambda. Do anyone has an idea on how to solve this? |
Did you follow exactly README's steps with initial files, or customized steps or files? |
Indeed @umihico, on my side adding the exact chrome options for selenium made it work. Thanks! |
Thanks for your work on this!
main.py is unchanged from the repo. I build it with After having previously created the Via the Web console, I then create a new Lambda function from that image, UPDATE: Changing the configuration to 2048MB memory fixed it. Thanks again! |
Hi there,
I tried building your Dockerfile with your main.py but got the following error:
{"errorMessage": "Message: session not created: Chrome failed to start: exited normally.\n (chrome not reachable)\n (The process started from chrome location /opt/chrome/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)\nStacktrace:\n#0 0x00400077a873 <unknown>\n#1 0x0040004708c6 <unknown>\n#2 0x0040004a4d34 <unknown>\n#3 0x0040004a0d3d <unknown>\n#4 0x0040004e9aed <unknown>\n#5 0x0040004dd343 <unknown>\n#6 0x0040004ae593 <unknown>\n#7 0x0040004aef5e <unknown>\n#8 0x00400073e85b <unknown>\n#9 0x0040007427b5 <unknown>\n#10 0x00400072c581 <unknown>\n#11 0x004000743342 <unknown>\n#12 0x00400071188f <unknown>\n#13 0x004000769738 <unknown>\n#14 0x00400076990b <unknown>\n#15 0x0040007799c4 <unknown>\n#16 0x004002c7e7f2 start_thread\n", "errorType": "SessionNotCreatedException", "requestId": "39439a25-ae7e-463b-a4d6-8920e8cf2355", "stackTrace": [" File \"/var/task/main.py\", line 24, in handler\n chrome = webdriver.Chrome(options=options, service=service)\n", " File \"/var/lang/lib/python3.12/site-packages/selenium/webdriver/chrome/webdriver.py\", line 45, in __init__\n super().__init__(\n", " File \"/var/lang/lib/python3.12/site-packages/selenium/webdriver/chromium/webdriver.py\", line 61, in __init__\n super().__init__(command_executor=executor, options=options)\n", " File \"/var/lang/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py\", line 208, in __init__\n self.start_session(capabilities)\n", " File \"/var/lang/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py\", line 292, in start_session\n response = self.execute(Command.NEW_SESSION, caps)[\"value\"]\n", " File \"/var/lang/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py\", line 347, in execute\n self.error_handler.check_response(response)\n", " File \"/var/lang/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py\", line 229, in check_response\n raise exception_class(message, screen, stacktrace)\n"]}%
This also happens with the published image. Do you have any idea how to solve it?
Thanks
The text was updated successfully, but these errors were encountered: