RSelenium icon indicating copy to clipboard operation
RSelenium copied to clipboard

RSelenium error in Ubuntu server

Open ghost opened this issue 7 years ago • 1 comments
trafficstars

Hi,

I have installed the RSelenium package in my Ubuntu server hosted in AWS. However whenever I try to access any webpage with it I get error saying "DevToolsActivePort file doesn't exist".

Below is the complete message:

> library(RSelenium)
> rD = rsDriver()
checking Selenium Server versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking chromedriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking geckodriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking phantomjs versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
[1] "Connecting to remote server"

Selenium message:unknown error: DevToolsActivePort file doesn't exist
  (Driver info: chromedriver=2.40.565383 (76257d1ab79276b2d53ee976b2c3e3b9f335cde7),platform=Linux 4.4.0-128-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.16 seconds
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T15:15:08.936Z'
System info: host: 'ubuntu-s-2vcpu-4gb-blr1-01', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-128-generic', java.version: '9-internal'
Driver info: driver.version: unknown

Could not open chrome browser.
Client error message:
	 Summary: UnknownError
 	 Detail: An unknown server-side error occurred while processing the command.
	 Further Details: run errorDetails method
Check server log for further details.

And Session-info :

> sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.4 LTS

Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RSelenium_1.7.3

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.17     XML_3.99-0       binman_0.1.0     assertthat_0.2.0
 [5] rappdirs_0.3.1   bitops_1.0-6     R6_2.2.2         jsonlite_1.5    
 [9] semver_0.2.0     httr_1.3.1       curl_3.2         xml2_1.2.0      
[13] subprocess_0.8.2 tools_3.4.4      wdman_0.2.2      yaml_2.1.19     
[17] compiler_3.4.4   caTools_1.17.1   openssl_1.0.1   

I have searched over net for solution (e.g. http://withr.me/set-up-selenium-headless-on-ubuntu-16.04/) however couldnt succeed.

Can someone help me to get it running in Ubuntu server.

However running RSelenium in local Laptop is working completely fine.

Appreciate your insightful help.

ghost avatar Jun 19 '18 16:06 ghost

I'm experiencing this issue too. I can only run the remote server in headless mode '--headless'.

beedawg1985 avatar Sep 01 '20 14:09 beedawg1985