How to run selenium on google cloud vm-instance, [duplicate]
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
This question already has an answer here:
The process started from chrome location C:..ChromeApplicationchrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed
2 answers
Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed
5 answers
I'm setting up a selenium script in google cloud vm-instance. I have tried running it using Mozilla Firefox 60.4.0 and geckodriver-v0.23.0
Doing this i get the error:
Traceback (most recent call last):
File "main.py", line 7, in <module>
driver = webdriver.Firefox()
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 174, in __init__
keep_alive=True)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities
I then tried using chromium 71.0.3578.80-1~deb9u1 and chromedriver 2.45 but the error i get is:
Traceback (most recent call last):
File "main.py", line 7, in <module>
driver = webdriver.Chrome()
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
desired_capabilities=desired_capabilities)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5),platform=Linux 4.9.0-8-amd64 x86_64)
How can i get selenium running.
google-chrome is installed in /usr/bin/google-chrome
firefox is installed in /usr/bin/firefox
python python-3.x selenium google-compute-engine
marked as duplicate by DebanjanB
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Jan 4 at 15:31
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
The process started from chrome location C:..ChromeApplicationchrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed
2 answers
Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed
5 answers
I'm setting up a selenium script in google cloud vm-instance. I have tried running it using Mozilla Firefox 60.4.0 and geckodriver-v0.23.0
Doing this i get the error:
Traceback (most recent call last):
File "main.py", line 7, in <module>
driver = webdriver.Firefox()
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 174, in __init__
keep_alive=True)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities
I then tried using chromium 71.0.3578.80-1~deb9u1 and chromedriver 2.45 but the error i get is:
Traceback (most recent call last):
File "main.py", line 7, in <module>
driver = webdriver.Chrome()
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
desired_capabilities=desired_capabilities)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5),platform=Linux 4.9.0-8-amd64 x86_64)
How can i get selenium running.
google-chrome is installed in /usr/bin/google-chrome
firefox is installed in /usr/bin/firefox
python python-3.x selenium google-compute-engine
marked as duplicate by DebanjanB
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Jan 4 at 15:31
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Im using debian for my operation and i have confirmed chrome is in the correct directory
– Muhika Thomas
Jan 6 at 5:36
add a comment |
This question already has an answer here:
The process started from chrome location C:..ChromeApplicationchrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed
2 answers
Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed
5 answers
I'm setting up a selenium script in google cloud vm-instance. I have tried running it using Mozilla Firefox 60.4.0 and geckodriver-v0.23.0
Doing this i get the error:
Traceback (most recent call last):
File "main.py", line 7, in <module>
driver = webdriver.Firefox()
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 174, in __init__
keep_alive=True)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities
I then tried using chromium 71.0.3578.80-1~deb9u1 and chromedriver 2.45 but the error i get is:
Traceback (most recent call last):
File "main.py", line 7, in <module>
driver = webdriver.Chrome()
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
desired_capabilities=desired_capabilities)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5),platform=Linux 4.9.0-8-amd64 x86_64)
How can i get selenium running.
google-chrome is installed in /usr/bin/google-chrome
firefox is installed in /usr/bin/firefox
python python-3.x selenium google-compute-engine
This question already has an answer here:
The process started from chrome location C:..ChromeApplicationchrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed
2 answers
Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed
5 answers
I'm setting up a selenium script in google cloud vm-instance. I have tried running it using Mozilla Firefox 60.4.0 and geckodriver-v0.23.0
Doing this i get the error:
Traceback (most recent call last):
File "main.py", line 7, in <module>
driver = webdriver.Firefox()
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 174, in __init__
keep_alive=True)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities
I then tried using chromium 71.0.3578.80-1~deb9u1 and chromedriver 2.45 but the error i get is:
Traceback (most recent call last):
File "main.py", line 7, in <module>
driver = webdriver.Chrome()
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
desired_capabilities=desired_capabilities)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/opt/bitnami/apps/django/django_projects/ENV/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5),platform=Linux 4.9.0-8-amd64 x86_64)
How can i get selenium running.
google-chrome is installed in /usr/bin/google-chrome
firefox is installed in /usr/bin/firefox
This question already has an answer here:
The process started from chrome location C:..ChromeApplicationchrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed
2 answers
Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed
5 answers
python python-3.x selenium google-compute-engine
python python-3.x selenium google-compute-engine
edited Jan 6 at 5:41
Muhika Thomas
asked Jan 4 at 13:16
Muhika ThomasMuhika Thomas
345
345
marked as duplicate by DebanjanB
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Jan 4 at 15:31
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by DebanjanB
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Jan 4 at 15:31
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Im using debian for my operation and i have confirmed chrome is in the correct directory
– Muhika Thomas
Jan 6 at 5:36
add a comment |
Im using debian for my operation and i have confirmed chrome is in the correct directory
– Muhika Thomas
Jan 6 at 5:36
Im using debian for my operation and i have confirmed chrome is in the correct directory
– Muhika Thomas
Jan 6 at 5:36
Im using debian for my operation and i have confirmed chrome is in the correct directory
– Muhika Thomas
Jan 6 at 5:36
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Im using debian for my operation and i have confirmed chrome is in the correct directory
– Muhika Thomas
Jan 6 at 5:36