GithubHelp home page GithubHelp logo

Comments (13)

ileitch avatar ileitch commented on August 14, 2024

Are you using ruby 1.8?

from rapns.

ileitch avatar ileitch commented on August 14, 2024

I have pushed a fix to master for 1.8, can you give it a try?

gem 'rapns', :github => 'ileitch/rapns'

from rapns.

hlandao avatar hlandao commented on August 14, 2024

Hi, Thanks for fast response.
I'm using ruby 1.9.2

I actually having a problem installing gems from git so couldn't even try your fix (though im not on 1.8 so it does not matter much)

Thanks,
Hadar.

from rapns.

ileitch avatar ileitch commented on August 14, 2024

Oh OK. Have you checked that Rapns::App#key matches Rapns::Notification#app?

2.0.0 is very different in terms of configuration, take a look at the README.

from rapns.

hlandao avatar hlandao commented on August 14, 2024

yeah, i used the same app key, it seems that remotely on CENTOS - the daemon does not work ? any ideas ?

from rapns.

hlandao avatar hlandao commented on August 14, 2024

BTW - how can verify the status of the daemon ?

from rapns.

ileitch avatar ileitch commented on August 14, 2024
  1. Check production.log to verify the daemon is performing queries.
  2. Start the daemon in foreground mode --foreground, then send it the USR1 signal and paste here the output. kill -USR1 <pid>

from rapns.

hlandao avatar hlandao commented on August 14, 2024

I have found no evidence for RAPNS activity in the production log, while I do recognize it's activity in the development log.

However, I got the following error now after running 'bundle exec rapns production -f' (for the first time) :
[root@centos01 faceforplace]# bundle exec rapns production -f
[2012-07-07 22:32:01] [ERROR] Errno::ETIMEDOUT, Connection timed out - connect(2)
/usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/connection.rb:100:in initialize' /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/connection.rb:100:innew'
/usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/connection.rb:100:in connect_socket' /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/connection.rb:23:inconnect'
/usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/feedback_receiver.rb:37:in check_for_feedback' /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/feedback_receiver.rb:21:inblock (2 levels) in start'
/usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/feedback_receiver.rb:19:in loop' /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/feedback_receiver.rb:19:inblock in start'
/usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/connection.rb:100:in initialize': Connection timed out - connect(2) (Errno::ETIMEDOUT) from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/connection.rb:100:innew'
from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/connection.rb:100:in connect_socket' from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/connection.rb:23:inconnect'
from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/delivery_handler.rb:29:in start' from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/app_runner.rb:113:instart_handler'
from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/app_runner.rb:79:in block in start' from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/app_runner.rb:79:intimes'
from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/app_runner.rb:79:in start' from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/app_runner.rb:45:inblock in sync'
from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/app_runner.rb:37:in each' from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon/app_runner.rb:37:insync'
from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/lib/rapns/daemon.rb:38:in start' from /usr/local/lib/ruby/gems/1.9.1/gems/rapns-2.0.0/bin/rapns:46:in<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/bin/rapns:23:in load' from /usr/local/lib/ruby/gems/1.9.1/bin/rapns:23:in

'

from rapns.

ileitch avatar ileitch commented on August 14, 2024

Do you get the timeout errors each time you start rapns?

What's your Rapns::App#environment set to?

from rapns.

hlandao avatar hlandao commented on August 14, 2024

In the current configuration it is set to 'development' even though it is basically a rails production env..because my iPhone client is still in dev stage.

does it matter ? isn't it attempting to connect to the sandbox server whenever the Rapns::App#environment is set to 'development' ?

from rapns.

ileitch avatar ileitch commented on August 14, 2024

Yes that is correct. I have no idea why you are unable to connect to the sandbox, I am able to do so. It appears not to be an issue with rapns. Are you able to connect to the sandbox using other tools?

$ telnet gateway.sandbox.push.apple.com 2195 Trying 17.149.34.65... Connected to gateway.sandbox.push-apple.com.akadns.net. Escape character is '^]'

from rapns.

hlandao avatar hlandao commented on August 14, 2024

Ohh seem that's the problem.
I actually cannot confirm it because im now unable to open the relevant ports but the telenet gives timeout as well.

anyway thanks,
I guess we can actually close this issue for now.

Thanks a lot,
Great job, get gem,
Hadar.

from rapns.

ileitch avatar ileitch commented on August 14, 2024

OK, thanks. Good luck finding a solution.

from rapns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.