Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

291
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda