title: Selenium,Django, On Ubuntu 20.04 digital ocean VPD
body: <p>I have created the web scraper and integrated it with Django. Everything is working perfectly fine. Now I want to host that Django app with webscraper on the VPS so that he can access it anywhere. I am using <code>gunicorn</code> and <code>nginx</code> too. I tried that Django app with <code>webdriver.remote()</code> using <code>seleniumgrid</code> its working fine on my normal windows environment, but as soon as I put it on my ubuntu vps it works only in half of cases - like  all my Django stuff is accessible and operational, but when my django calls the scraper, it just passes without any response.</p>
  <pre><code>def chromedriver_setup():
      user_agent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.50 Safari/537.36'
      # proxies = proxies = [{&quot;_id&quot;:&quot;62cd1bf852694154bb14f2e7&quot;,&quot;ip&quot;:&quot;178.32.148.251&quot;,&quot;anonymityLevel&quot;:&quot;elite&quot;,&quot;asn&quot;:&quot;AS16276&quot;,&quot;city&quot;:&quot;Gravelines&quot;,&quot;country&quot;:&quot;FR&quot;,&quot;created_at&quot;:&quot;2022-07-12T07:00:08.515Z&quot;,&quot;google&quot;:True,&quot;isp&quot;:&quot;OVH SAS&quot;,&quot;lastChecked&quot;:1657848951,&quot;latency&quot;:5.13,&quot;org&quot;:&quot;MICHOTTE Maxime&quot;,&quot;port&quot;:&quot;8080&quot;,&quot;protocols&quot;:[&quot;socks4&quot;],  &quot;speed&quot;:37,&quot;updated_at&quot;:&quot;2022-07-15T01:35:51.569Z&quot;  },{&quot;_id&quot;:&quot;60d613cdce5b3bb0e932edce&quot;,&quot;ip&quot;:&quot;64.227.62.123&quot;,&quot;port&quot;:&quot;80&quot;,&quot;anonymityLevel&quot;:&quot;elite&quot;,&quot;asn&quot;:&quot;AS14061&quot;,&quot;city&quot;:&quot;Santa Clara&quot;,&quot;country&quot;:&quot;US&quot;,&quot;created_at&quot;:&quot;2021-06-25T17:35:09.953Z&quot;,&quot;google&quot;:True,  &quot;isp&quot;:&quot;DigitalOcean, LLC&quot;,&quot;lastChecked&quot;:1657847332,&quot;latency&quot;:153,&quot;org&quot;:&quot;DigitalOcean, LLC&quot;,&quot;protocols&quot;:[&quot;http&quot;],  &quot;speed&quot;:306,&quot;updated_at&quot;:&quot;2022-07-15T01:08:52.862Z&quot;  ,&quot;upTime&quot;:99.98473981382573,&quot;upTimeSuccessCount&quot;:6552,&quot;upTimeTryCount&quot;:6553}]
      # random_ip = random.choice(proxies)
      # PROXY = str(random_ip[&quot;ip&quot;] + &quot;:&quot; + random_ip[&quot;port&quot;])
      option = webdriver.ChromeOptions()
      option.add_argument(&quot;--headless&quot;)
      option.add_argument(f'user-agent={user_agent}')
  
      option.add_argument(&quot;--window-size=1920,1080&quot;)
      option.add_argument(&quot;--start-maximized&quot;)
      option.add_argument(&quot;--disable-gpu&quot;)
      # # option.add_argument('--proxy-server=%s' % PROXY)
      option.add_experimental_option(&quot;excludeSwitches&quot;, [&quot;enable-automation&quot;])
      option.add_experimental_option('useAutomationExtension', False)
      option.add_argument(&quot;--disable-blink-features=AutomationControlled&quot;)
      option.add_experimental_option(&quot;detach&quot;, True)
      print(&quot;chrome driver setup passed&quot;)
      driver = webdriver.Remote(
          command_executor='192.168.72.1:4444',
          desired_capabilities = DesiredCapabilities.CHROME,
          options=option,
      )
      return driver
  </code></pre>
  <p>Is there any way I can solve that issue or test i..?</p>