Connection Sidekiq/Redis fail with code WSAENOPROTOOPT

I am building an Ruby on Rails app that rely on Sidekiq. This app run on a windows server VM and and Redis run on a Debian 11 VM.

When I am starting my Sidekiq server, I am met with this error message.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>2024-05-17T14:54:24.857Z pid=27468 tid=jrw INFO: Booted Rails 7.1.3.2 application in development environment
Signal TTIN not supported
Signal TSTP not supported
2024-05-17T14:54:24.862Z pid=27468 tid=jrw INFO: Running in ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x64-mingw-ucrt]
2024-05-17T14:54:24.863Z pid=27468 tid=jrw INFO: See LICENSE and the LGPL-3.0 for licensing details.
2024-05-17T14:54:24.865Z pid=27468 tid=jrw INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org
2024-05-17T14:54:24.866Z pid=27468 tid=jrw INFO: Sidekiq 7.2.2 connecting to Redis with options {:size=>10, :pool_name=>"internal", :url=>"redis://192.168.1.79:6379/0"}
Une option ou un niveau inconnu, non valide ou non pris en charge a ÚtÚ spÚcifiÚ dans un appel getsockopt ou setsockopt. - setsockopt(2) (redis://192.168.1.79:6379)
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/ruby_connection.rb:174:in `setsockopt'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/ruby_connection.rb:174:in `enable_socket_keep_alive'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/ruby_connection.rb:125:in `connect'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/ruby_connection.rb:51:in `initialize'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:746:in `new'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:746:in `block in connect'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/middlewares.rb:12:in `connect'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:745:in `connect'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:732:in `raw_connection'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:697:in `ensure_connected'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:277:in `call'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/decorator.rb:26:in `call'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/config.rb:144:in `block in redis_info'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/config.rb:163:in `block in redis'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:110:in `block (2 levels) in with'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:109:in `handle_interrupt'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:109:in `block in with'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:106:in `handle_interrupt'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:106:in `with'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/config.rb:160:in `redis'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/config.rb:143:in `redis_info'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/cli.rb:75:in `run'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/bin/sidekiq:31:in `<top (required)>'
D:/Projects/vendor/bundle/ruby/3.2.0/bin/sidekiq:25:in `load'
D:/Projects/vendor/bundle/ruby/3.2.0/bin/sidekiq:25:in `<main>'
</code>
<code>2024-05-17T14:54:24.857Z pid=27468 tid=jrw INFO: Booted Rails 7.1.3.2 application in development environment Signal TTIN not supported Signal TSTP not supported 2024-05-17T14:54:24.862Z pid=27468 tid=jrw INFO: Running in ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x64-mingw-ucrt] 2024-05-17T14:54:24.863Z pid=27468 tid=jrw INFO: See LICENSE and the LGPL-3.0 for licensing details. 2024-05-17T14:54:24.865Z pid=27468 tid=jrw INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org 2024-05-17T14:54:24.866Z pid=27468 tid=jrw INFO: Sidekiq 7.2.2 connecting to Redis with options {:size=>10, :pool_name=>"internal", :url=>"redis://192.168.1.79:6379/0"} Une option ou un niveau inconnu, non valide ou non pris en charge a ÚtÚ spÚcifiÚ dans un appel getsockopt ou setsockopt. - setsockopt(2) (redis://192.168.1.79:6379) D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/ruby_connection.rb:174:in `setsockopt' D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/ruby_connection.rb:174:in `enable_socket_keep_alive' D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/ruby_connection.rb:125:in `connect' D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/ruby_connection.rb:51:in `initialize' D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:746:in `new' D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:746:in `block in connect' D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/middlewares.rb:12:in `connect' D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:745:in `connect' D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:732:in `raw_connection' D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:697:in `ensure_connected' D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:277:in `call' D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/decorator.rb:26:in `call' D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/config.rb:144:in `block in redis_info' D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/config.rb:163:in `block in redis' D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:110:in `block (2 levels) in with' D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:109:in `handle_interrupt' D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:109:in `block in with' D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:106:in `handle_interrupt' D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:106:in `with' D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/config.rb:160:in `redis' D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/config.rb:143:in `redis_info' D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/cli.rb:75:in `run' D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/bin/sidekiq:31:in `<top (required)>' D:/Projects/vendor/bundle/ruby/3.2.0/bin/sidekiq:25:in `load' D:/Projects/vendor/bundle/ruby/3.2.0/bin/sidekiq:25:in `<main>' </code>
2024-05-17T14:54:24.857Z pid=27468 tid=jrw INFO: Booted Rails 7.1.3.2 application in development environment
Signal TTIN not supported
Signal TSTP not supported
2024-05-17T14:54:24.862Z pid=27468 tid=jrw INFO: Running in ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x64-mingw-ucrt]
2024-05-17T14:54:24.863Z pid=27468 tid=jrw INFO: See LICENSE and the LGPL-3.0 for licensing details.
2024-05-17T14:54:24.865Z pid=27468 tid=jrw INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org
2024-05-17T14:54:24.866Z pid=27468 tid=jrw INFO: Sidekiq 7.2.2 connecting to Redis with options {:size=>10, :pool_name=>"internal", :url=>"redis://192.168.1.79:6379/0"}
Une option ou un niveau inconnu, non valide ou non pris en charge a ÚtÚ spÚcifiÚ dans un appel getsockopt ou setsockopt. - setsockopt(2) (redis://192.168.1.79:6379)
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/ruby_connection.rb:174:in `setsockopt'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/ruby_connection.rb:174:in `enable_socket_keep_alive'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/ruby_connection.rb:125:in `connect'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/ruby_connection.rb:51:in `initialize'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:746:in `new'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:746:in `block in connect'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/middlewares.rb:12:in `connect'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:745:in `connect'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:732:in `raw_connection'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:697:in `ensure_connected'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client.rb:277:in `call'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/redis-client-0.21.1/lib/redis_client/decorator.rb:26:in `call'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/config.rb:144:in `block in redis_info'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/config.rb:163:in `block in redis'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:110:in `block (2 levels) in with'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:109:in `handle_interrupt'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:109:in `block in with'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:106:in `handle_interrupt'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/connection_pool-2.4.1/lib/connection_pool.rb:106:in `with'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/config.rb:160:in `redis'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/config.rb:143:in `redis_info'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/lib/sidekiq/cli.rb:75:in `run'
D:/Projects/vendor/bundle/ruby/3.2.0/gems/sidekiq-7.2.2/bin/sidekiq:31:in `<top (required)>'
D:/Projects/vendor/bundle/ruby/3.2.0/bin/sidekiq:25:in `load'
D:/Projects/vendor/bundle/ruby/3.2.0/bin/sidekiq:25:in `<main>'

This message relating to the ERROR Code WSAENOPROTOOPT (10042) seems to indicate on error for the “optname” or “level” argument of the setsockopt function of the WinSock API.
However I have not find anyone having a similar problem with Sidekiq, so I suspect that the problem come from my end. But my conf file is almost empty (I can not see where the problem could be):

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>sidekiq.yaml
---
:concurrency: 10
test:
:concurrency: 20
development:
:concurrency: 10
:queues:
-default
-compute
</code>
<code>sidekiq.yaml --- :concurrency: 10 test: :concurrency: 20 development: :concurrency: 10 :queues: -default -compute </code>
sidekiq.yaml

---
:concurrency: 10
test:
  :concurrency: 20
development:
  :concurrency: 10
:queues:
  -default
  -compute

I have followed the guide from the documentation by creating a environment variable for the REDIS_URL.

New contributor

Adenathael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật