mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.12k stars 1.52k forks source link

Missing 'marionetteProtocol' field in handshake #497

Closed andreheijstek closed 7 years ago

andreheijstek commented 7 years ago

I get this errormessage when deploying my rails app to Heroku via Travis. I'm using Firefox version 50 and geckdriver 0.14.0 I see that this error has been mentioned before and closed, but as fas as I can see, I'm running with the latest software, but still get this error.

andreastt commented 7 years ago

Please provide a trace-level log so that we can see what is going on here.

andreheijstek commented 7 years ago

Is this travis output sufficient or do you need more?

165 failed

version: v2.5.0 https://github.com/travis-system_info Build system information Build language: ruby Build group: stable Build dist: precise Build id: 205726129 Job id: 205726132 travis-build version: c56b13141 Build image provisioning date and time Thu Feb 5 15:09:33 UTC 2015 Operating System Details Distributor ID: Ubuntu Description: Ubuntu 12.04.5 LTS Release: 12.04 Codename: precise Linux Version 3.13.0-29-generic Cookbooks Version a68419e https://github.com/travis-ci/travis-cookbooks/tree/a68419e GCC version gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. LLVM version clang version 3.4 (tags/RELEASE_34/final) Target: x86_64-unknown-linux-gnu Thread model: posix Pre-installed Ruby versions ruby-1.9.3-p551 Pre-installed Node.js versions v0.10.36 Pre-installed Go versions 1.4.1 Redis version redis-server 2.8.19 riak version 2.0.2 MongoDB version MongoDB 2.4.12 CouchDB version couchdb 1.6.1 Neo4j version 1.9.4 RabbitMQ Version 3.4.3 ElasticSearch version 1.4.0 Installed Sphinx versions 2.0.10 2.1.9 2.2.6 Default Sphinx version 2.2.6 Installed Firefox version firefox 31.0esr PhantomJS version 1.9.8 ant -version Apache Ant(TM) version 1.8.2 compiled on December 3 2011 mvn -version Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00) Maven home: /usr/local/maven Java version: 1.7.0_76, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-oracle/jre Default locale: en_US, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "3.13.0-29-generic", arch: "amd64", family: "unix" fix.CVE-2015-7547 $ export DEBIAN_FRONTEND=noninteractive Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: libc-bin libc-dev-bin libc6-dev Suggested packages: glibc-doc The following packages will be upgraded: libc-bin libc-dev-bin libc6 libc6-dev 4 upgraded, 0 newly installed, 0 to remove and 270 not upgraded. Need to get 8,840 kB of archives. After this operation, 14.3 kB disk space will be freed. Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc6-dev amd64 2.15-0ubuntu10.15 [2,943 kB] Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc-dev-bin amd64 2.15-0ubuntu10.15 [84.7 kB] Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc-bin amd64 2.15-0ubuntu10.15 [1,177 kB] Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc6 amd64 2.15-0ubuntu10.15 [4,636 kB] Fetched 8,840 kB in 0s (32.2 MB/s) Preconfiguring packages ... (Reading database ... 71420 files and directories currently installed.) Preparing to replace libc6-dev 2.15-0ubuntu10.10 (using .../libc6-dev_2.15-0ubuntu10.15_amd64.deb) ... Unpacking replacement libc6-dev ... Preparing to replace libc-dev-bin 2.15-0ubuntu10.10 (using .../libc-dev-bin_2.15-0ubuntu10.15_amd64.deb) ... Unpacking replacement libc-dev-bin ... Preparing to replace libc-bin 2.15-0ubuntu10.10 (using .../libc-bin_2.15-0ubuntu10.15_amd64.deb) ... Unpacking replacement libc-bin ... Processing triggers for man-db ... Setting up libc-bin (2.15-0ubuntu10.15) ... (Reading database ... 71419 files and directories currently installed.) Preparing to replace libc6 2.15-0ubuntu10.10 (using .../libc6_2.15-0ubuntu10.15_amd64.deb) ... Unpacking replacement libc6 ... Setting up libc6 (2.15-0ubuntu10.15) ... Setting up libc-dev-bin (2.15-0ubuntu10.15) ... Setting up libc6-dev (2.15-0ubuntu10.15) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place git.checkout 0.67s$ git clone --depth=50 --branch=master https://github.com/andreheijstek/biblestudy_platform.git andreheijstek/biblestudy_platform Cloning into 'andreheijstek/biblestudy_platform'... remote: Counting objects: 816, done. remote: Compressing objects: 100% (440/440), done. remote: Total 816 (delta 416), reused 650 (delta 338), pack-reused 0 Receiving objects: 100% (816/816), 2.83 MiB | 0 bytes/s, done. Resolving deltas: 100% (416/416), done. Checking connectivity... done. $ cd andreheijstek/biblestudy_platform $ git checkout -qf c66d18623ef8f370b8db5d72be8d766dfe092be9 This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables. If you require sudo, add 'sudo: required' to your .travis.yml See https://docs.travis-ci.com/user/workers/container-based-infrastructure/ for details. rvm 24.84s$ rvm use 2.2.3 --install --binary --fuzzy ruby-2.2.3 is not installed - installing. Searching for binary rubies, this might take some time. Found remote file https://s3.amazonaws.com/travis-rubies/binaries/ubuntu/12.04/x86_64/ruby-2.2.3.tar.bz2 Checking requirements for ubuntu. Requirements installation successful. ruby-2.2.3 - #configure ruby-2.2.3 - #download % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 21.1M 100 21.1M 0 0 78.4M 0 --:--:-- --:--:-- --:--:-- 78.7M No checksum for downloaded archive, recording checksum in user configuration. ruby-2.2.3 - #validate archive ruby-2.2.3 - #extract ruby-2.2.3 - #validate binary ruby-2.2.3 - #setup ruby-2.2.3 - #gemset created /home/travis/.rvm/gems/ruby-2.2.3@global ruby-2.2.3 - #importing gemset /home/travis/.rvm/gemsets/global.gems................................................ ruby-2.2.3 - #generating global wrappers........ ruby-2.2.3 - #uninstalling gem rubygems-bundler-1.4.4. ruby-2.2.3 - #gemset created /home/travis/.rvm/gems/ruby-2.2.3 ruby-2.2.3 - #importing gemset /home/travis/.rvm/gemsets/default.gems.................... ruby-2.2.3 - #generating default wrappers........ chown: changing ownership of /home/travis/.rvm/user/installs': Operation not permitted Using /home/travis/.rvm/gems/ruby-2.2.3 $ export BUNDLE_GEMFILE=$PWD/Gemfile $ ruby --version ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] $ rvm --version rvm 1.26.10 (latest-minor) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] $ bundle --version Bundler version 1.14.5 $ gem --version 2.4.8 before_install.1 0.00s$ export DISPLAY=:99.0 before_install.2 0.01s$ sh -e /etc/init.d/xvfb start Starting virtual X frame buffer: Xvfb. before_install.3 3.58s$ gem update bundler Updating installed gems Nothing to update before_install.4 0.13s$ wget https://github.com/mozilla/geckodriver/releases/download/v0.14.0/geckodriver-v0.14.0-linux64.tar.gz --2017-02-27 09:06:19-- https://github.com/mozilla/geckodriver/releases/download/v0.14.0/geckodriver-v0.14.0-linux64.tar.gz Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112 Connecting to github.com (github.com)|192.30.253.113|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github-cloud.s3.amazonaws.com/releases/25354393/e5539ab0-e7d8-11e6-8736-ab657723733d.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20170227%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170227T090619Z&X-Amz-Expires=300&X-Amz-Signature=ca5902bb7344099d789c966d02816d71c74bb0191ea7a887e2687b6ef887b021&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgeckodriver-v0.14.0-linux64.tar.gz&response-content-type=application%2Foctet-stream [following] --2017-02-27 09:06:19-- https://github-cloud.s3.amazonaws.com/releases/25354393/e5539ab0-e7d8-11e6-8736-ab657723733d.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20170227%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170227T090619Z&X-Amz-Expires=300&X-Amz-Signature=ca5902bb7344099d789c966d02816d71c74bb0191ea7a887e2687b6ef887b021&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgeckodriver-v0.14.0-linux64.tar.gz&response-content-type=application%2Foctet-stream Resolving github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)... 54.231.81.128 Connecting to github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)|54.231.81.128|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1832331 (1.7M) [application/octet-stream] Saving to:geckodriver-v0.14.0-linux64.tar.gz' 100%[======================================>] 1,832,331 --.-K/s in 0.02s
2017-02-27 09:06:19 (94.4 MB/s) - `geckodriver-v0.14.0-linux64.tar.gz' saved [1832331/1832331] before_install.5 0.01s$ mkdir geckodriver before_install.6 0.05s$ tar -xzf geckodriver-v0.14.0-linux64.tar.gz -C geckodriver before_install.7 0.00s$ export PATH=$PATH:$PWD/geckodriver install.bundler 87.89s$ bundle install --jobs=3 --retry=3 --deployment Fetching gem metadata from https://rubygems.org/.......... Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. Installing i18n 0.8.1 Installing rake 12.0.0 Installing minitest 5.10.1 Installing json 1.8.6 with native extensions Installing thread_safe 0.3.6 Installing builder 3.2.3 Installing erubis 2.7.0 Installing mini_portile2 2.1.0 Installing rack 1.6.5 Installing mime-types-data 3.2016.0521 Installing arel 6.0.4 Installing public_suffix 2.0.5 Installing ast 2.3.0 Installing execjs 2.7.0 Installing bcrypt 3.1.11 with native extensions Installing debug_inspector 0.0.2 with native extensions Installing sass 3.4.23 Installing byebug 9.0.6 with native extensions Installing ffi 1.9.17 with native extensions Installing coderay 1.1.1 Installing coffee-script-source 1.12.2 Installing thor 0.19.4 Installing concurrent-ruby 1.0.5 Installing gherkin 4.0.0 Installing cucumber-wire 0.0.1 Installing diff-lcs 1.3 Installing multi_json 1.12.1 Installing multi_test 0.1.2 Installing database_cleaner 1.5.3 Installing orm_adapter 0.5.0 Installing devise-i18n 1.1.1 Installing thread 0.2.2 Installing high_voltage 3.0.0 Installing highline 1.7.8 Installing tins 1.13.2 Installing unicode-display_width 1.1.3 Installing method_source 0.8.2 Installing rspec-support 3.4.1 Installing pg 0.19.0 with native extensions Installing slop 3.6.0 Installing puma 3.7.1 with native extensions Using bundler 1.14.5 Installing rails_serve_static_assets 0.0.5 Installing rails_stdout_logging 0.0.5 Installing rb-readline 0.5.4 Installing rdoc 4.3.0 Installing rubyzip 1.2.1 Installing tilt 2.0.6 Installing websocket 1.2.4 Installing sorted 2.1.2 Installing turbolinks-source 5.0.0 Installing tzinfo 1.2.2 Installing rack-test 0.6.3 Installing warden 1.2.7 Installing mime-types 3.1 Installing addressable 2.5.0 Installing parser 2.4.0.0 Installing nokogiri 1.7.0.1 with native extensions Installing autoprefixer-rails 6.7.5 Installing uglifier 3.0.4 Installing binding_of_caller 0.7.2 with native extensions Installing coffee-script 2.4.1 Installing cucumber-core 1.5.0 Installing sprockets 3.7.1 Installing easy_translate 0.5.0 Installing terminal-table 1.7.3 Installing term-ansicolor 1.4.0 Installing rspec-core 3.4.4 Installing rspec-expectations 3.4.0 Installing rspec-mocks 3.4.1 Installing childprocess 0.6.2 Installing pry 0.10.4 Installing rails_12factor 0.0.3 Installing sdoc 0.4.2 Installing turbolinks 5.0.1 Installing activesupport 4.2.7.1 Installing mail 2.6.4 Installing launchy 2.4.3 Installing loofah 2.0.3 Installing bootstrap-sass 3.3.7 Installing xpath 2.0.0 Installing webdrivers 2.4.0 Installing cucumber 2.4.0 Installing rspec 3.4.0 Installing selenium-webdriver 3.0.5 Installing pry-byebug 3.4.2 Installing globalid 0.3.7 Installing rails-deprecated_sanitizer 1.0.3 Installing activemodel 4.2.7.1 Installing factory_girl 4.8.0 Installing i18n-tasks 0.9.12 Installing jbuilder 2.6.3 Installing pundit 0.3.0 Installing spring 2.0.1 Installing rails-html-sanitizer 1.0.3 Installing activejob 4.2.7.1 Installing capybara 2.12.1 Installing rails-dom-testing 1.0.8 Installing activerecord 4.2.7.1 Installing actionview 4.2.7.1 Installing actionpack 4.2.7.1 Installing orderly 0.0.3 Installing actionmailer 4.2.7.1 Installing sorted-activerecord 0.1.3 Installing railties 4.2.7.1 Installing sprockets-rails 3.2.0 Installing simple_form 3.1.1 Installing coffee-rails 4.1.1 Installing responders 2.3.0 Installing factory_girl_rails 4.8.0 Installing font-awesome-rails 4.7.0.1 Installing jquery-rails 4.2.2 Installing rspec-rails 3.4.2 Installing rails 4.2.7.1 Installing sass-rails 5.0.6 Installing web-console 2.3.0 Installing devise 4.2.0 Bundle complete! 34 Gemfile dependencies, 117 gems now installed. Bundled gems are installed into ./vendor/bundle. Post-install message from i18n-tasks:

Install default configuration:

cp $(i18n-tasks gem-path)/templates/config/i18n-tasks.yml config/

Add an RSpec for missing and unused keys:

cp $(i18n-tasks gem-path)/templates/rspec/i18n_spec.rb spec/ before_script 0.42s$ psql -c 'create database biblestudy_platform_test;' -U postgres CREATE DATABASE 16.27s$ bundle exec rspec .................................................F............................................... Failures: 1) Users can view an overview of all studynotes Grouped by biblebook Failure/Error: visit pericopes_path

 Selenium::WebDriver::Error::UnknownError:
   Missing 'marionetteProtocol' field in handshake
 # ./spec/features/study_notes/viewing_studynotes_overview_spec.rb:24:in `block (2 levels) in <top (required)>'
 # /home/travis/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.14.5/lib/bundler/cli/exec.rb:74:in `load'
 # /home/travis/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.14.5/lib/bundler/cli/exec.rb:74:in `kernel_load'
 # /home/travis/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.14.5/lib/bundler/cli/exec.rb:27:in `run'
 # /home/travis/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.14.5/lib/bundler/cli.rb:335:in `exec'
 # /home/travis/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.14.5/lib/bundler/cli.rb:20:in `dispatch'
 # /home/travis/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.14.5/lib/bundler/cli.rb:11:in `start'
 # /home/travis/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.14.5/exe/bundle:32:in `block in <top (required)>'
 # /home/travis/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.14.5/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
 # /home/travis/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.14.5/exe/bundle:24:in `<top (required)>'

Finished in 8.6 seconds (files took 7.03 seconds to load) 97 examples, 1 failure Failed examples: rspec ./spec/features/study_notes/viewing_studynotes_overview_spec.rb:32 # Users can view an overview of all studynotes Grouped by biblebook [16698:16698:0227/090803:FATAL:setuid_sandbox_client.cc(282)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /usr/lib/chromium-browser/chrome-sandbox is owned by root and has mode 4755. The command "bundle exec rspec" exited with 1. Done. Your build exited with 1.

andreastt commented 7 years ago

There’s nothing that you just pasted that is relevant to debugging this. Please see the README on how to increase the verbosity of geckodriver’s stdout.

andreheijstek commented 7 years ago

Problem solved, I notice a js: true in my spec that triggered Firefox to start, that wasn't needed. So, maybe it's more problem circumvented, but anyway, done for now.

andreastt commented 7 years ago

I don’t quite understand what marionetteProtocol to be missing, but I’m glad your problems are fixed. Since I haven’t seen this anywhere else, I will proceed to close the issue.

Happy to reopen if you think further investigation is needed, but I will need a trace-level log to do anything further.

lock[bot] commented 5 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue.