Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

OpenSSL::SSL::SSLError when using dist focal in Travis CI #163

Closed
LocoDelAssembly opened this issue Oct 1, 2020 · 4 comments
Closed

OpenSSL::SSL::SSLError when using dist focal in Travis CI #163

LocoDelAssembly opened this issue Oct 1, 2020 · 4 comments

Comments

@LocoDelAssembly
Copy link

When using dist: focal in Travis CI, I get the following error:

Coveralls encountered an exception:
OpenSSL::SSL::SSLError
SSL_connect returned=1 errno=0 state=error: no protocols available

I have prepared a demo repo and results of each distro can be seen at https://travis-ci.org/github/LocoDelAssembly/coveralls

NOTE: Normally this failure won't cause the build to fail, I added a negated grep to search for 'OpenSSL::SSL::SSLError' to force failure to better visualize which distros are having this problem.

Repo at https://github.com/LocoDelAssembly/coveralls

What can be done to fix this?

Thanks

@DanMegaGamer
Copy link

DanMegaGamer commented Nov 26, 2020

@LocoDelAssembly I've been having the same issue but in Heroku's CI using their stack running ubuntu 20.

It seems to be down to the way SSL is handled in the gem, and the removal of < TLD 1.2 in ubuntu 20.

There's a second coveralls gem that's more actively maintained and that solved my issue.

https://github.com/tagliala/coveralls-ruby-reborn

JoeCohen added a commit to MushroomObserver/mushroom-observer that referenced this issue Jan 11, 2021
I hope this will solve the Travis/Coveralls problem.
See lemurheavy/coveralls-ruby#163 (comment)
@woto
Copy link

woto commented Feb 24, 2021

Was the same issue in github actions:

image

Replacing gem with coveralls_reborn helped. Thanks!

ajvondrak added a commit to ajvondrak/squelch that referenced this issue Mar 5, 2021
Now I'm getting SSL errors. Apparently the coveralls gem is really out
of date. lemurheavy/coveralls-ruby#163
dmagliola added a commit to prometheus/client_ruby that referenced this issue Jan 7, 2022
We've been having errors in CI from Coveralls, when trying to upload results.
(As mentioned in [this comment](#230 (comment)))

This error seems to be because our coveralls gem is pretty old and abandoned,
and probably using a TLS version that is no longer supported.

(Reference: lemurheavy/coveralls-ruby#163)

One option recommended in that issue is to switch to a different `coveralls-ruby-reborn` gem.

However, given that we only use `coveralls` to upload results to the cloud,
only so we can have a badge in our README reporting 100%, in the interest of
security, I think i'd rather get rid of `coveralls` altogether, and use
`simplecov` directly instead, which reports the coverage when running the
tests and doesn't upload them anywhere.
dmagliola added a commit to prometheus/client_ruby that referenced this issue Jan 7, 2022
We've been having errors in CI from Coveralls, when trying to upload results.
(As mentioned in [this comment](#230 (comment)))

This error seems to be because our coveralls gem is pretty old and abandoned,
and probably using a TLS version that is no longer supported.

(Reference: lemurheavy/coveralls-ruby#163)

One option recommended in that issue is to switch to a different `coveralls-ruby-reborn` gem.

However, given that we only use `coveralls` to upload results to the cloud,
only so we can have a badge in our README reporting 100%, in the interest of
security, I think i'd rather get rid of `coveralls` altogether, and use
`simplecov` directly instead, which reports the coverage when running the
tests and doesn't upload them anywhere.

Signed-off-by: Daniel Magliola <dmagliola@crystalgears.com>
@stale
Copy link

stale bot commented Jun 4, 2022

This issue has been automatically marked for closure because it has not had recent activity. It will be closed if no further activity occurs. If your issue is still active please add a comment and we’ll review as soon as we can. Thank you for your contributions.

@stale stale bot closed this as completed Jun 12, 2022
@leandromoreira
Copy link

I'm facing this issue again https://github.com/leandromoreira/redlock-rb/actions/runs/5160916661/jobs/9297795798?pr=133

[Coveralls] Submitting to https://coveralls.io/api/v1
Coveralls encountered an exception:
OpenSSL::SSL::SSLError
SSL_connect returned=1 errno=0 peeraddr=104.26.4.137:443 state=error: no protocols available

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants