Report this

What is the reason for this report?

How to run selenium in digitalocean?

Posted on July 2, 2017

I’m now trying to run node app. My app running with selenium webdriver(chrome). I made droplet (ubuntu 16.04, nodejs 6.11, 512M RAM, 20G HDD). but when I start the app, an error occured and selenium not run. error log is like below.

Error: Server terminated early with status 127 at Error (native) at earlyTermination.catch.e (/home/master/Project/react-jobscrapper/node_modules/selenium-webdriver/remote/index.js:252:52) at process._tickDomainCallback (internal/process/next_tick.js:135:7) From: Task: WebDriver.createSession() at Function.createSession (/home/master/Project/react-jobscrapper/node_modules/selenium-webdriver/lib/webdriver.js:777:24) at Function.createSession (/home/master/Project/react-jobscrapper/node_modules/selenium-webdriver/chrome.js:719:29) at createDriver (/home/master/Project/react-jobscrapper/node_modules/selenium-webdriver/index.js:167:33) at Builder.build (/home/master/Project/react-jobscrapper/node_modules/selenium-webdriver/index.js:639:16) at kakaoCrawler.executeCrawling (/home/master/Project/react-jobscrapper/server/crawler/kakaoCrawler.js:108:11) at /home/master/Project/react-jobscrapper/server/crawler/kakaoCrawler.js:32:10 at Array.forEach (native) at /home/master/Project/react-jobscrapper/server/crawler/kakaoCrawler.js:31:15 at process._tickDomainCallback (internal/process/next_tick.js:135:7) at Function.Module.runMain (module.js:606:11) at Object.<anonymous> (/home/master/Project/react-jobscrapper/node_modules/babel-cli/lib/_babel-node.js:154:22) at Module._compile (module.js:570:32) at Object.Module._extensions…js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3)

I setted selenium headless option(‘headless’, ‘disable-gpu’) but selenium doesn’t run. somebody help me…



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

I can help you get further, but then you will have an issue with chromedriver hanging… hope this helps, maybe you can solve my issue? :)

  1. Create your droplet - I chose the $5 a month, Ubuntu 16.04.2 x64
  2. Login and update

apt-get update

  1. Apparently DO droplets lack entropy, so install this for lots of delicious entropy apt-get install haveged and then start it /etc/init.d/haveged start

  2. install unzip

apt-get install unzip

  1. Now follow this guide. https://gist.github.com/ziadoz/3e8ab7e944d02fe872c3454d17af31a5

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.