Closed shamazmazum closed 4 years ago
How are you managing your ruby gems? It appears that the residual Typhoeus 1.3.1 is problematic in your case. (See https://github.com/typhoeus/typhoeus/issues/654)
Unfortunately, I don't think there is a way to specify optional runtime dependency in Rubygems, so we have to work around this problem.
The error message comes from this line https://github.com/typhoeus/typhoeus/blob/v1.3.1/lib/typhoeus/adapters/faraday.rb#L106 which is not compatible with Faraday 1.0.x
You need to update Typhoeus to v1.4.0 (as explained above) or uninstall it entirely; travis
should work without it now (version 1.10.0 onward).
Thanks, removed typhoeus, because after updating there is another message:
SSL peer certificate or SSH remote key was not OK
for a full error report, run travis report --pro
An error occurred running `travis login --pro`:
Faraday::ConnectionFailed: SSL peer certificate or SSH remote key was not OK
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/adapters/faraday.rb:106:in `block in request'
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/request/callbacks.rb:146:in `block in execute_callbacks'
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/request/callbacks.rb:145:in `each'
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/request/callbacks.rb:145:in `execute_callbacks'
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/request/operations.rb:35:in `finish'
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/easy_factory.rb:164:in `block in set_callback'
from /usr/local/lib/ruby/gems/2.6/gems/ethon-0.11.0/lib/ethon/easy/response_callbacks.rb:68:in `block in complete'
from /usr/local/lib/ruby/gems/2.6/gems/ethon-0.11.0/lib/ethon/easy/response_callbacks.rb:68:in `each'
from /usr/local/lib/ruby/gems/2.6/gems/ethon-0.11.0/lib/ethon/easy/response_callbacks.rb:68:in `complete'
from /usr/local/lib/ruby/gems/2.6/gems/ethon-0.11.0/lib/ethon/easy/operations.rb:33:in `perform'
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/request/operations.rb:16:in `run'
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/request/cacheable.rb:18:in `run'
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/request/block_connection.rb:31:in `run'
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/request/stubbable.rb:25:in `run'
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/request/before.rb:26:in `run'
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/adapters/faraday.rb:82:in `perform_request'
from /usr/local/lib/ruby/gems/2.6/gems/typhoeus-1.4.0/lib/typhoeus/adapters/faraday.rb:72:in `call'
from /usr/local/lib/ruby/gems/2.6/gems/faraday-1.0.1/lib/faraday/request/retry.rb:148:in `call'
from /usr/local/lib/ruby/gems/2.6/gems/faraday-1.0.1/lib/faraday/request/url_encoded.rb:25:in `call'
from /usr/local/lib/ruby/gems/2.6/gems/faraday-1.0.1/lib/faraday/rack_builder.rb:153:in `build_response'
from /usr/local/lib/ruby/gems/2.6/gems/faraday-1.0.1/lib/faraday/connection.rb:492:in `run_request'
from /usr/local/lib/ruby/gems/2.6/gems/faraday-1.0.1/lib/faraday/connection.rb:198:in `get'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/client/session.rb:210:in `public_send'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/client/session.rb:210:in `block in raw'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/client/session.rb:283:in `block in instrumented'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/client/session.rb:284:in `block in instrumented'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/client/session.rb:285:in `instrumented'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/client/session.rb:208:in `raw'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/client/session.rb:187:in `get_raw'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/client/session.rb:135:in `config'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/cli/api_command.rb:126:in `load_gh'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/cli/login.rb:49:in `github'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/cli/login.rb:31:in `login'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/cli/login.rb:44:in `run'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/cli/command.rb:200:in `execute'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/lib/travis/cli.rb:64:in `run'
from /usr/local/lib/ruby/gems/2.6/gems/travis-1.9.1/bin/travis:18:in `<top (required)>'
from /usr/local/bin/travis:23:in `load'
from /usr/local/bin/travis:23:in `<main>'
Without typhoeus all works. Gems come from FreeBSD ports and may be not up to date.
Hello.
travis login
andtravis login --pro
fail withuninitialized constant Faraday::Error::ConnectionFailed
This is the report
This is the list of gems installed
Can this be fixed?