Comments (13)
Are you using ruby 1.8?
from rapns.
I have pushed a fix to master for 1.8, can you give it a try?
gem 'rapns', :github => 'ileitch/rapns'
from rapns.
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.
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.
yeah, i used the same app key, it seems that remotely on CENTOS - the daemon does not work ? any ideas ?
from rapns.
BTW - how can verify the status of the daemon ?
from rapns.
- Check production.log to verify the daemon is performing queries.
- Start the daemon in foreground mode
--foreground
, then send it the USR1 signal and paste here the output.kill -USR1 <pid>
from rapns.
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:in
new'
/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:in
connect'
/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:in
block (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:in
block 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:in
new'
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:in
connect'
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:in
start_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:in
times'
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:in
block 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:in
sync'
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.
Do you get the timeout errors each time you start rapns?
What's your Rapns::App#environment
set to?
from rapns.
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.
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.
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.
OK, thanks. Good luck finding a solution.
from rapns.
Related Issues (20)
- Update at the end HOT 2
- Rapns Worker stalls and not setting notifications as delivered HOT 8
- Multiple databases support HOT 2
- Trying Rapns with Safari Push HOT 10
- NoMethodError raised when GCM post responds with 500
- add notification table HOT 4
- Rapns daemon process get killed HOT 4
- [ERROR] NoMethodError, undefined method `to_binary' for Rapns::Notification HOT 4
- GCM returns an error for messages with Spanish characters
- new release? HOT 5
- fatal: deadlock detected HOT 1
- fatal: deadlock detected
- ActiveRecord::ConnectionTimeoutError HOT 3
- NameError, uninitialized constant Rapns::Daemon::Apn HOT 3
- Notification received on the phone but the rapns_notifications database still list the notification as not delivered
- apns slow HOT 2
- Testing github-issues-import.
- Best practise for maintaining rapns_notifications table.
- Certificate has been revoked (Rails Console & Controller both) HOT 1
- @app should be @app.name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rapns.