我正在尝试在AWS EC2的Ubuntu环境上使用RSelenium。我从here安装了RSelenium软件包,并从存档中安装了相关软件包。
在R Studio中调用库并使用以下命令调用驱动程序后:
library(RSelenium)
driver<- 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-1061-aws x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.06 seconds
Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:32:19.891Z'
System info: host: 'ip-172-31-17-205', ip: '172.31.17.205', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-1061-aws', java.version: '1.8.0_171'
Driver info: driver.version: unknown
Error: Summary: UnknownError
Detail: An unknown server-side error occurred while processing the command.
Further Details: run errorDetails method
我参考此post作为解决方案。但是,我不确定在哪里可以找到配置文件,以及是否将行--disable-dev-shm-usage
添加到默认启动标志是否正确。