title: Start Chrome in Ubuntu server
body: <p>I did an youtube bot and I<code>m trying to make it work on a server 24/7 with ubuntu, I</code>m getting an error everytime, I already tried all solutions from the internet and got nowhere here is the error
  I<code>m using google chrome stable at Google Chrome 83.0.4103.61 and chromedriver specified to it, so I really don</code>t even imagine what is wrong with this code right now, so I`m trying to figure it out but had no success</p>
  
  <pre><code>  Traceback (most recent call last):
    File "newproxy.py", line 45, in &lt;module&gt;
      a = youtube_bot()
    File "newproxy.py", line 25, in __init__
      self.driver = webdriver.Chrome(executable_path=RC.chromedriver_path,options=options)
    File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chrome/webdriver.py", line 76, in __init__
      RemoteWebDriver.__init__(
    File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
      self.start_session(capabilities, browser_profile)
    File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
      response = self.execute(Command.NEW_SESSION, parameters)
    File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
      self.error_handler.check_response(response)
    File "/usr/local/lib/python3.8/dist-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/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
  </code></pre>
  
  <p>here is the code that its starting chrome</p>
  
  <pre><code>from selenium import webdriver
  import time
  from selenium.webdriver.chrome.options import Options
  from RC import RC
  
  
  class youtube_bot():
  
  def __init__(self):
  
      options = Options()
  
      options.add_experimental_option("detach", True)
      options.add_argument("--headless")
      PROXY = "216.244.74.138:19006"
      options.add_argument('--proxy-server=%s' % PROXY)
      webdriver.DesiredCapabilities.CHROME['proxy'] = {
          "httpProxy": PROXY,
          "ftpProxy": PROXY,
          "sslProxy": PROXY,
          "noProxy": None,
          "proxyType": "MANUAL",
          "autodetect": False
      }
      self.driver = webdriver.Chrome(executable_path=RC.chromedriver_path,options=options)
      self.driver.get(RC.youtube_link)
  
  def open_youtube_video(self):
      time.sleep(20)
      #paste youtube inside of self.driver.get
      try:
          self.driver.find_element_by_xpath('/html/body/ytd-app/div/ytd-page-manager/ytd-watch-flexy/div[4]/div[1]/div/div[1]/div/div/div/ytd-player/div/div/div[4]/button').click()
          print('Video running')
      except:
          pass
      time.sleep(2)
      print("ok")
  </code></pre>