lowdown: ERROR: Actor crashed! EOFError: end of file reached /Users/danolee/.rvm/rubi

Hi,

I am testing the sample code (simple.rb in the examples folder) but getting an error as below. I am using Rails 4.2.5 with ruby 2.3.0p0.

I, [2016-04-12T17:51:52.625539 #23982] INFO -- : [APNS Connection#0x7fd8e3140ed8] Connecting... notification: #<Lowdown::Notification:0x007fd8e21e2f90 @token="XXXXXXXXXXXXXXXXXXXX", @id=1, @payload={:alert=>"Hello HTTP/2! ID=1"}> W, [2016-04-12T17:51:52.627668 #23982] WARN -- : [APNS Connection#0x7fd8e3140ed8] Defer performing request, because the connection has not been established yet. I, [2016-04-12T17:51:53.786826 #23982] INFO -- : [APNS Connection#0x7fd8e3140ed8] Connection established. E, [2016-04-12T17:51:54.092417 #23982] ERROR -- : Actor crashed! EOFError: end of file reached /Users/danolee/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/openssl/buffering.rb:178:insysread_nonblock’ /Users/danolee/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/openssl/buffering.rb:178:in read_nonblock' /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/celluloid-io-0.17.3/lib/celluloid/io/stream.rb:42:inblock in sysread’ /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/celluloid-io-0.17.3/lib/celluloid/io/stream.rb:390:in synchronize' /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/celluloid-io-0.17.3/lib/celluloid/io/stream.rb:40:insysread’ /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/celluloid-io-0.17.3/lib/celluloid/io/stream.rb:129:in readpartial' /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/lowdown-0.3.1/lib/lowdown/connection.rb:223:inblock in runloop’ /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/lowdown-0.3.1/lib/lowdown/connection.rb:221:in loop' /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/lowdown-0.3.1/lib/lowdown/connection.rb:221:inrunloop’ /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/celluloid-0.17.3/lib/celluloid/calls.rb:28:in public_send' /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/celluloid-0.17.3/lib/celluloid/calls.rb:28:indispatch’ /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/celluloid-0.17.3/lib/celluloid/call/async.rb:7:in dispatch' /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/celluloid-0.17.3/lib/celluloid/cell.rb:50:inblock in dispatch’ /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/celluloid-0.17.3/lib/celluloid/cell.rb:76:in block in task' /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/celluloid-0.17.3/lib/celluloid/actor.rb:339:inblock in task’ /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/celluloid-0.17.3/lib/celluloid/task.rb:44:in block in initialize' /Users/danolee/.rvm/gems/ruby-2.3.0@rails42/gems/celluloid-0.17.3/lib/celluloid/task/fibered.rb:14:inblock in create’ I, [2016-04-12T17:51:54.092732 #23982] INFO – : [APNS Connection#0x7fd8e3140ed8] Closing… [!] Error occurred: end of file reached Sleep for 5 seconds`

The .pem file and the token are valid ones.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 21 (7 by maintainers)

Most upvoted comments

I was indeed able to reproduce it and have pushed a fix, which has been released as version 0.3.2.

I had a similar issue. It looks like it is an issue in the http-2 gem dependency. I reverted from version 0.8.1 to 0.8.0 and it fixed the issue.

Wow, that’s so weird. Have you tried other clients, e.g. https://github.com/noodlewerk/NWPusher ?

Btw, I think it’s better to test with the CLI tool. See $ bundle exec lowdown --help and let me know how that goes.

Ruby 2.3.0p0 and OpenSSL 1.0.2d_1.

$ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]

$ which ruby
/Users/eloy/.rubies/ruby-2.3.0/bin/ruby

$ otool -L /Users/eloy/.rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin15/openssl.bundle 
/Users/eloy/.rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin15/openssl.bundle:
    /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    […]

$ ls -l /usr/local/opt/ | grep openssl
lrwxr-xr-x  1 eloy  admin  26 Nov 20 00:12 openssl -> ../Cellar/openssl/1.0.2d_1