Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError (undefined method `wait_readable' for #<OpenSSL::SSL::SSLSocket:0x00007fc7641dea60>) #59

Closed
motymichaely opened this issue Jun 21, 2021 · 5 comments · Fixed by #60

Comments

@motymichaely
Copy link
Contributor

motymichaely commented Jun 21, 2021

Faktory client fails to connect to Faktory server behind AWS Network Load Blanacer with TLS listener.

Establishing a simple Faktory client connection to a Faktory server behind an AWS Network Load Balancer with TLS listener fails:

require 'faktory'
# This is required or otherwise a NameError (uninitialized constant Faktory::Client::OpenSSL) error is raised
require 'openssl' 

client = Faktory::Client.new

The stacktrace:

Traceback (most recent call last):
        7: from ~/.rbenv/versions/2.7.2/bin/irb:23:in `<main>'
        6: from ~/.rbenv/versions/2.7.2/bin/irb:23:in `load'
        5: from ~/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/irb-1.2.6/exe/irb:11:in `<top (required)>'
        4: from (irb):2
        3: from (irb):2:in `new'
        2: from ~/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/faktory_worker_ruby-1.1.0/lib/faktory/client.rb:58:in `initialize'
        1: from ~/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/faktory_worker_ruby-1.1.0/lib/faktory/client.rb:247:in `open'
NameError (uninitialized constant Faktory::Client::OpenSSL)
Did you mean?  OpenStruct

NOTE: Establishing the same connection using Go client and Python client works as expected.


Gemfile:

source 'https://rubygems.org'

ruby '2.7.2'

gem 'faktory_worker_ruby'
gem 'openssl'

Gemfile.lock:

GEM
  remote: https://rubygems.org/
  specs:
    connection_pool (2.2.5)
    faktory_worker_ruby (1.1.0)
      connection_pool (~> 2.2, >= 2.2.2)
    openssl (2.2.0)

PLATFORMS
  ruby

DEPENDENCIES
  faktory_worker_ruby
  openssl

RUBY VERSION
   ruby 2.7.2p137

BUNDLED WITH
   2.1.4
@cjbottaro
Copy link

Any chance we can get a release cut? Running into this issue with 1.1.0.

@mperham
Copy link
Contributor

mperham commented Nov 13, 2021 via email

@cjbottaro
Copy link

Yup!

@mperham
Copy link
Contributor

mperham commented Nov 13, 2021 via email

@mperham
Copy link
Contributor

mperham commented Nov 15, 2021

v1.1.1 is out.

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

Successfully merging a pull request may close this issue.

3 participants