Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

290
Views
Redis caused Action Cable error and the local server was automatically shut down

I have a Rails project in which the Action Cable uses Redis. The PC environment is Windows 10 + Ubuntu 18. Since I installed Docker and caused Ubuntu to fail to run normally, I removed and reinstalled Ubuntu. Since then, I have been unable to make this Rails project run on a local server (via "rails s" or "foreman s").

Since I edited "redis.service" and "sysctl.conf" several times and still failed to solve the problem of Redis can't set maximum open files, I chose to remove Redis and install it again.

After that, although the project can be activated temporarily (via "rails s" or "foreman s"), once I click on the hyperlink in the project (any web page other than Device), the server will automatically shut down. Through the log, I found that the same error message will appear 5 times before the automatic shutdown is as follows:

22:05:11 web.1     |    from /home/keaton/.rvm/gems/ruby-2.7.3/gems/actioncable-6.1.4.1/lib/action_cable/subscription_adapter/redis.rb:80:in `listen'
22:05:11 web.1     |    from /home/keaton/.rvm/gems/ruby-2.7.3/gems/actioncable-6.1.4.1/lib/action_cable/subscription_adapter/redis.rb:154:in `block in ensure_listener_running'
22:05:11 web.1     | /home/keaton/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/socket.rb:1214:in `__connect_nonblock': Operation now in progress - connect(2) would block (IO::EINPROGRESSWaitWritable)
22:05:11 web.1     |    from /home/keaton/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/socket.rb:1214:in `connect_nonblock'

How can I solve this problem? I am a newbie who has been learning Ruby on Rails for only three months. Please help me!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Instead of using Redis inside Docker, you might want to check out Memurai: it's native Windows port of Redis.

Disclaimer: I work in Memurai.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!