All builds suddenly failing due to selenium and chrome issue

My travis CI builds worked fine until today and now all builds are suddenly failing and produce this message;

Selenium::WebDriver::Error::SessionNotCreatedError:
       session not created exception: Chrome version must be >= 67.0.3396.0
         (Driver info: chromedriver=2.41.578700 (2f1ed5f9343c13f73144538f15c00b370eda6706),platform=Linux 4.4.0-101-generic x86_64)

I made only the smallest change that should have had nothing to do with this.

My travis .yml file

dist: trusty
addons:
  chrome: stable
  postgresql: "9.6"
language: ruby
rvm:
  - 2.7.0
services:
  - postgresql
script:
  - bundle exec rake
before_script:
  - RAILS_ENV=test ./bin/rails assets:precompile
  - psql -c 'create database sumo_city_test;' -U postgres
before_install:
  - nvm install 8.16.0

Is it an issue in my chrome: stable or other setup issues? All tests pass locally.

1 Like

I tend to think this is an issue with Chrome.

Agreed! But what a frustrating issue it is!

I “fixed” it by switching to Firefox for testing. Thanks for the response!

Can you expand the log for install_chrome in your build and see if there is an error? There is an error for us (that I will probably post as a new thread):

0.30s$ wget --no-verbose -O /tmp/$(basename $CHROME_SOURCE_URL) $CHROME_SOURCE_URL
2020-05-08 21:48:52 URL:https://dl.google.com/dl/linux/direct/google-chrome-stable_current_amd64.deb [66985784/66985784] -> "/tmp/google-chrome-stable_current_amd64.deb" [1]
dpkg-deb: error: archive '/tmp/google-chrome-stable_current_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /tmp/google-chrome-stable_current_amd64.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /tmp/google-chrome-stable_current_amd64.deb

Chrome doesn’t support Trusty

Thanks for that. I guess I don’t understand - Why would it work until a two days ago? I had run 100+ builds with it…

I opened it up and I have that same error:

Installing Google Chrome stable
0.48s$ wget --no-verbose -O /tmp/$(basename $CHROME_SOURCE_URL) $CHROME_SOURCE_URL
2020-05-07 18:07:16 URL:https://dl.google.com/dl/linux/direct/google-chrome-stable_current_amd64.deb [66985784/66985784] -> "/tmp/google-chrome-stable_current_amd64.deb" [1]
dpkg-deb: error: archive '/tmp/google-chrome-stable_current_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /tmp/google-chrome-stable_current_amd64.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /tmp/google-chrome-stable_current_amd64.deb
Imprint