{"action":"opened","issue":{"url":"https://api.github.com/repos/celluloid/celluloid/issues/489","labels_url":"https://api.github.com/repos/celluloid/celluloid/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/celluloid/celluloid/issues/489/comments","events_url":"https://api.github.com/repos/celluloid/celluloid/issues/489/events","html_url":"https://github.com/celluloid/celluloid/issues/489","id":53901547,"number":489,"title":"Actor crashed and cleanup crashed when running a Celluloid class via cron","user":{"login":"rahilsondhi","id":804316,"avatar_url":"https://avatars.githubusercontent.com/u/804316?v=3","gravatar_id":"","url":"https://api.github.com/users/rahilsondhi","html_url":"https://github.com/rahilsondhi","followers_url":"https://api.github.com/users/rahilsondhi/followers","following_url":"https://api.github.com/users/rahilsondhi/following{/other_user}","gists_url":"https://api.github.com/users/rahilsondhi/gists{/gist_id}","starred_url":"https://api.github.com/users/rahilsondhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahilsondhi/subscriptions","organizations_url":"https://api.github.com/users/rahilsondhi/orgs","repos_url":"https://api.github.com/users/rahilsondhi/repos","events_url":"https://api.github.com/users/rahilsondhi/events{/privacy}","received_events_url":"https://api.github.com/users/rahilsondhi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-09T18:54:52Z","updated_at":"2015-01-09T18:54:52Z","closed_at":null,"body":"I have a class that includes `Celluloid`. When I run the class in a rails console, it works. But when I ask crontab to run it, I get this error in the log:\r\n\r\n```\r\nActor crashed!\r\nRuntimeError:\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:25:in `resume'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:25:in `deliver'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:96:in `resume'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:353:in `task'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/cell.rb:67:in `task'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/cell.rb:59:in `invoke'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/cell.rb:34:in `block in initialize'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/handlers.rb:38:in `call'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/handlers.rb:38:in `call'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/handlers.rb:19:in `handle_message'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:280:in `handle_message'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:154:in `block in run'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/timers-4.0.1/lib/timers/group.rb:52:in `wait'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:150:in `run'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:130:in `block in start'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/thread_handle.rb:13:in `block in initialize'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor_system.rb:32:in `block in get_thread'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/internal_pool.rb:130:in `call'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/internal_pool.rb:130:in `block in create'\r\nCLEANUP CRASHED!\r\nCelluloid::MailboxDead: mailbox already shutdown\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/mailbox.rb:85:in `shutdown'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:338:in `cleanup'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:329:in `shutdown'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:321:in `handle_crash'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:166:in `rescue in run'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:148:in `run'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:130:in `block in start'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/thread_handle.rb:13:in `block in initialize'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor_system.rb:32:in `block in get_thread'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/internal_pool.rb:130:in `call'\r\n        /var/rails/turtle/shared/bundle/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/internal_pool.rb:130:in `block in create'\r\n```\r\n\r\nI'd really appreciate any ideas :confused: , thanks!"}}