I can not run ruby scripts on digital-ocean droplet. I tried running with selenium-webdriver and watir gems, but doesn't work.
I tried running with different versions of chromedriver, changed also selenium-webdriver's gem versions, but didn't work. My ruby -v: ruby 2.3.1p112 selenium-webdriver -v: (3.141.0) Chromedriver -v: 2.46
require 'selenium-webdriver'
options = Selenium::WebDriver::Chrome::Options.new(args: ['start-maximized','disable-gpu', 'no-sandbox', 'disable-setuid-sandbox', 'disable-dable-dev-shm-usage'], binary: ('/bin/chromedriver')) options.headless!
driver = Selenium::WebDriver.for(:chrome, options: options)
Error I get: /usr/share/rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/response.rb:69:in `assert_ok': unknown error: Chrome failed to start: exited abnormally (Selenium::WebDriver::Error::UnknownError) unknown error: DevToolsActivePort file doesn't exist)
Thanks for attention!