celluloid: "Couldn't cleanly terminate all actors in 10 seconds!" with Spring 1.6.0 and Rails 5.0.0.beta1

Rails 5.0.0.beta1 encourages you to mount the Celluloid-powered ActionCable.server in-process by changing the routes.rb file to uncomment mount ActionCable.server => '/cable'. When you do that, generator commands (that presumably do a fork somewhere) start hanging with the following error message: E, [2015-12-20T08:09:19.218168 #5720] ERROR -- : Couldn't cleanly terminate all actors in 10 seconds!.

You can provoke this with:

rails new terminator
cd terminator
./bin/rails generate scaffold post title:string

If you remove the Spring loader from bin/rails, there is no problem.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 12
  • Comments: 15 (5 by maintainers)

Commits related to this issue

Most upvoted comments

@simonc I had the same issue. The culture folder is a git submodule so you have to tell bundler to load submodules with submodules: true:

gem "celluloid", git: "https://github.com/celluloid/celluloid", submodules: true

Is there any workaroud in the meantime? It’s also happening with a Rails 4 app when Sidekiq is used. Every command takes ages to stop, even a simple rake db:migrate takes forever 😢

@sfroehler Much better :grim: Thanks!