NameError, uninitialized constant Rapns::Daemon::Apn #197

Closed
masterkain opened this Issue Jan 28, 2014 · 3 comments

Comments

Projects
None yet
3 participants

Hello,
I upgraded from 16e52d8 to 83088ba and I'm getting this exception at startup.

[2014-01-28 15:42:08] [ERROR] [MyApp] Exception raised during startup. Notifications will not be delivered for this app.
[2014-01-28 15:42:08] [ERROR] NameError, uninitialized constant Rapns::Daemon::Apn
[snip]/ruby-2.1.0/gems/activesupport-4.0.2/lib/active_support/inflector/methods.rb:228:in `const_get'
[snip]/ruby-2.1.0/gems/activesupport-4.0.2/lib/active_support/inflector/methods.rb:228:in `block in constantize'
[snip]/ruby-2.1.0/gems/activesupport-4.0.2/lib/active_support/inflector/methods.rb:224:in `each'
[snip]/ruby-2.1.0/gems/activesupport-4.0.2/lib/active_support/inflector/methods.rb:224:in `inject'
[snip]/ruby-2.1.0/gems/activesupport-4.0.2/lib/active_support/inflector/methods.rb:224:in `constantize'
[snip]/ruby-2.1.0/gems/activesupport-4.0.2/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
[snip]/ruby-2.1.0/bundler/gems/rapns-83088baf6600/lib/rapns/daemon/app_runner.rb:168:in `service_module'
[snip]/ruby-2.1.0/bundler/gems/rapns-83088baf6600/lib/rapns/daemon/app_runner.rb:160:in `new_dispatcher_loop'
[snip]/ruby-2.1.0/bundler/gems/rapns-83088baf6600/lib/rapns/daemon/app_runner.rb:73:in `block in start'
[snip]/ruby-2.1.0/bundler/gems/rapns-83088baf6600/lib/rapns/daemon/app_runner.rb:73:in `times'
[snip]/ruby-2.1.0/bundler/gems/rapns-83088baf6600/lib/rapns/daemon/app_runner.rb:73:in `start'
[snip]/ruby-2.1.0/bundler/gems/rapns-83088baf6600/lib/rapns/daemon/app_runner.rb:37:in `sync_app'
[snip]/ruby-2.1.0/bundler/gems/rapns-83088baf6600/lib/rapns/daemon/app_runner.rb:26:in `block in sync'
[snip]/ruby-2.1.0/gems/activerecord-4.0.2/lib/active_record/relation/delegation.rb:13:in `each'
[snip]/ruby-2.1.0/gems/activerecord-4.0.2/lib/active_record/relation/delegation.rb:13:in `each'
[snip]/ruby-2.1.0/bundler/gems/rapns-83088baf6600/lib/rapns/daemon/app_runner.rb:26:in `sync'
[snip]/ruby-2.1.0/bundler/gems/rapns-83088baf6600/lib/rapns/daemon.rb:60:in `start'
[snip]/ruby-2.1.0/bundler/gems/rapns-83088baf6600/bin/rapns:36:in `<top (required)>'
[snip]/ruby-2.1.0/bin/rapns:23:in `load'
[snip]/ruby-2.1.0/bin/rapns:23:in `<main>'
[snip]/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
[snip]/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'

possibly related to the classify refactor in this commit a086fa9

dc85 commented Feb 27, 2014

Have you found out a workaround for this?

Owner

ileitch commented Feb 27, 2014

Rapns has been renamed to Rpush: github.com/rpush/rpush

Please try Rpush, I'm pretty sure this issue is fixed there.

@ileitch ileitch closed this Feb 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment