title: Error when running angular e2e test on gitlab CI
body: <p>I'm having a not very meaningful error on my gitlab CI server when running e2e tests.</p>
  
  <pre><code>[22:40:18] I/launcher - Running 1 instances of WebDriver
  [22:40:18] I/local - Starting selenium standalone server...
  [22:40:18] E/launcher - Error: Error: Server terminated early with status 1
      at earlyTermination.catch.e (/selenium-webdriver/remote/index.js:252:52)
      at &lt;anonymous&gt;
      at process._tickCallback (internal/process/next_tick.js:188:7)
  [22:40:18] E/launcher - Process exited with error code 100
  npm ERR! code ELIFECYCLE
  npm ERR! errno 100
  npm ERR! guide-scanner-web@0.0.0 e2e-ci: `ng e2e --conf protractor-ci.conf.js`
  npm ERR! Exit status 100
  npm ERR! 
  npm ERR! Failed at the guide-scanner-web@0.0.0 e2e-ci script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /root/.npm/_logs/2017-11-28T22_40_19_015Z-debug.log
  ERROR: Job failed: exit code 1
  </code></pre>
  
  <p>Here is the protractor.conf.js</p>
  
  <pre><code>const { SpecReporter } = require('jasmine-spec-reporter');
  
  exports.config = {
    allScriptsTimeout: 11000,
    specs: [
      './e2e/**/*.e2e-spec.ts'
    ],
    capabilities: {
      'browserName': 'chrome',
      'chromeOptions': {
        args: ["--headless", '--no-sandbox', "--disable-gpu", "--window-size=800x600"]
      }
    },
    chromeDriver: '/selenium-grid/chromedriver_2.33',
    seleniumServerJar: "/selenium-grid/selenium-server-standalone-3.7.1.jar",
    baseUrl: 'http://localhost:4200/',
    framework: 'jasmine',
    jasmineNodeOpts: {
      showColors: true,
      defaultTimeoutInterval: 30000,
      print: function() {}
    },
    onPrepare() {
      require('ts-node').register({
        project: 'e2e/tsconfig.e2e.json'
      });
      jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
    }
  };
  </code></pre>
  
  <p>the job desciption in my gitlab-ci.yml</p>
  
  <pre><code>before_script:
    - npm install
  
  e2e:
    stage: testing
    script:
      - apt-get update -y
      - apt-get install default-jre -y
      - npm install -g webdriver-manager
      - webdriver-manager update --out_dir /selenium-grid
      - npm run e2e
  </code></pre>
  
  <p>And here is my package.json:</p>
  
  <ul>
  <li>"@angular/language-service": "^5.0.0" </li>
  <li>"@types/jasmine": "~2.5.53"</li>
  <li>"@types/jasminewd2": "~2.0.2"</li>
  <li>"@types/node": "~6.0.60"</li>
  <li>"codelyzer": "~3.2.2"</li>
  <li>"jasmine-core": "~2.6.2"</li>
  <li>"jasmine-spec-reporter": "~4.1.0"</li>
  <li>"karma": "~1.7.0"</li>
  <li>"karma-chrome-launcher": "~2.1.1"</li>
  <li>"karma-cli": "~1.0.1"</li>
  <li>"karma-coverage-istanbul-reporter": "^1.2.1"</li>
  <li>"karma-jasmine": "~1.1.0"</li>
  <li>"karma-jasmine-html-reporter": "^0.2.2"</li>
  <li>"protractor": "~5.1.2"</li>
  <li>"ts-node": "~3.2.0"</li>
  <li>"tslint": "~5.7.0"</li>
  <li>"typescript": "~2.4.2"</li>
  </ul>
  
  <p>I've been struggling on setting up the CI for a little while now so any suggestions will be very much appreciated ^^'</p>