Angular CircleCI build failing: Chrome version must be >= 65.0.3325.0

My builds keep failing with SessionNotCreatedError: session not created exception: Chrome version must be >= 65.0.3325.0

Here is the config.yml file:

version: 2
jobs:
  build:
    working_directory: ~/my_app
    docker:
      - image: circleci/node:8-browsers
    steps:
      - checkout
      - restore_cache:
          key: my_app-{{ .Branch }}-{{ checksum "package.json" }}
      - run: npm install
      - save_cache:
          key: my_app-{{ .Branch }}-{{ checksum "package.json" }}
          paths:
            - "node_modules"
      - run: xvfb-run -a npm run test -- --single-run --no-progress --browser=ChromeNoSandbox
      - run: xvfb-run -a npm run e2e -- --no-progress

Here is the failed build:

#!/bin/bash -eo pipefail
xvfb-run -a npm run e2e -- --no-progress --config=protractor-ci.conf.js

> my_app@0.0.0 e2e /home/circleci/my_app
> ng e2e "--no-progress" "--config=protractor-ci.conf.js"

** NG Live Development Server is listening on localhost:49152, open your browser on http://localhost:49152/ **
Date: 2018-04-20T19:02:30.466Z
Hash: a0f62aecb7c8b4d6ca66
Time: 12616ms
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 3.89 kB [entry] [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 9.93 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 204 kB [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 63.5 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 5.4 MB [initial] [rendered]
(node:698) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

webpack: Compiled successfully.
[19:02:30] I/file_manager - creating folder /home/circleci/my_app/node_modules/protractor/node_modules/webdriver-manager/selenium
[19:02:30] I/update - chromedriver: unzipping chromedriver_2.38.zip
[19:02:30] I/update - chromedriver: setting permissions to 0755 for /home/circleci/my_app/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.38
[19:02:31] I/launcher - Running 1 instances of WebDriver
[19:02:31] I/direct - Using ChromeDriver directly...
[19:02:31] E/launcher - session not created exception: Chrome version must be >= 65.0.3325.0
  (Driver info: chromedriver=2.38.551591 (bcc4a2cdef0f6b942b2bb8049068f65340fa2a69),platform=Linux 4.4.0-119-generic x86_64)
[19:02:31] E/launcher - SessionNotCreatedError: session not created exception: Chrome version must be >= 65.0.3325.0
  (Driver info: chromedriver=2.38.551591 (bcc4a2cdef0f6b942b2bb8049068f65340fa2a69),platform=Linux 4.4.0-119-generic x86_64)
    at Object.checkLegacyResponse (/home/circleci/my_app/node_modules/selenium-webdriver/lib/error.js:505:15)
    at parseHttpResponse (/home/circleci/my_app/node_modules/selenium-webdriver/lib/http.js:509:13)
    at doSend.then.response (/home/circleci/my_app/node_modules/selenium-webdriver/lib/http.js:440:13)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
From: Task: WebDriver.createSession()
    at Function.createSession (/home/circleci/my_app/node_modules/selenium-webdriver/lib/webdriver.js:777:24)
    at Function.createSession (/home/circleci/my_app/node_modules/selenium-webdriver/chrome.js:709:29)
    at Direct.getNewDriver (/home/circleci/my_app/node_modules/protractor/lib/driverProviders/direct.ts:90:25)
    at Runner.createBrowser (/home/circleci/my_app/node_modules/protractor/lib/runner.ts:225:39)
    at q.then.then (/home/circleci/my_app/node_modules/protractor/lib/runner.ts:391:27)
    at _fulfilled (/home/circleci/my_app/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/home/circleci/my_app/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/home/circleci/my_app/node_modules/q/q.js:796:13)
    at /home/circleci/my_app/node_modules/q/q.js:556:49
    at runSingle (/home/circleci/my_app/node_modules/q/q.js:137:13)
    at flush (/home/circleci/my_app/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
[19:02:31] E/launcher - Process exited with error code 199
npm ERR! code ELIFECYCLE
npm ERR! errno 199
npm ERR! my_app@0.0.0 e2e: `ng e2e "--no-progress" "--config=protractor-ci.conf.js"`
npm ERR! Exit status 199
npm ERR! 
npm ERR! Failed at the my_app@0.0.0 e2e 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!     /home/circleci/.npm/_logs/2018-04-20T19_02_31_551Z-debug.log
Exited with code 199

The library you are using requires a newer version than the one that is installed on the image you are using.

Our latest node images come with Google Chrome 64.0.3282.186

You have two options.

  1. Downgrade the library
  2. Install a newer version of chrome yourself
1 Like

Hi,

Iā€™m not sure whether it will help, but I have put up working configuration using the latest Angular Cli here. The image it is using is node 8.11.2-browsers and there is a protractor configuration set to use chrome headless.

cheers
Charlie

2 Likes

Hi

By way of update - the angular cli wiki now has a section on this: here

cheers
Charlie

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.