samuraisam / pyapns

An APNS provider with multi-app support.
MIT License
2.02k stars 226 forks source link

Twisted generates logs like crazy #34

Open 3zzy opened 12 years ago

3zzy commented 12 years ago

Hi,

Although I can send push notifications just fine from both sandbox and production, but twisted generates logs like crazy (50 x 1mb files in 2 days):

2012-06-05 11:20:30-0500 [APNSProtocol (TLSMemoryBIOProtocol),client] APNSProtocol connectionLost 2012-06-05 11:20:30-0500 [APNSProtocol (TLSMemoryBIOProtocol),client] APNSClientFactory clientConnectionLost reason=[Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion. ] 2012-06-05 11:20:30-0500 [APNSProtocol (TLSMemoryBIOProtocol),client] <twisted.internet.tcp.Connector instance at 0x186f248> will retry in 2 seconds 2012-06-05 11:20:30-0500 [APNSProtocol (TLSMemoryBIOProtocol),client] Stopping factory <pyapns.server.APNSClientFactory instance at 0x186f3b0> 2012-06-05 11:20:33-0500 [-] Starting factory <pyapns.server.APNSClientFactory instance at 0x19e6e60> 2012-06-05 11:20:33-0500 [-] APNSClientFactory startedConnecting 2012-06-05 11:20:33-0500 [Uninitialized] APNSProtocol connectionMade 2012-06-05 11:20:33-0500 [-] Starting factory <pyapns.server.APNSClientFactory instance at 0x186f3b0> 2012-06-05 11:20:33-0500 [-] APNSClientFactory startedConnecting 2012-06-05 11:20:33-0500 [Uninitialized] APNSProtocol connectionMade 2012-06-05 11:20:33-0500 [APNSProtocol (TLSMemoryBIOProtocol),client] APNSProtocol connectionLost 2012-06-05 11:20:33-0500 [APNSProtocol (TLSMemoryBIOProtocol),client] APNSClientFactory clientConnectionLost reason=[Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion. ] 2012-06-05 11:20:33-0500 [APNSProtocol (TLSMemoryBIOProtocol),client] <twisted.internet.tcp.Connector instance at 0x19e6f38> will retry in 2 seconds 2012-06-05 11:20:33-0500 [APNSProtocol (TLSMemoryBIOProtocol),client] Stopping factory <pyapns.server.APNSClientFactory instance at 0x19e6e60> 2012-06-05 11:20:34-0500 [APNSProtocol (TLSMemoryBIOProtocol),client] APNSProtocol connectionLost 2012-06-05 11:20:34-0500 [APNSProtocol (TLSMemoryBIOProtocol),client] APNSClientFactory clientConnectionLost reason=[Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion. ] 2012-06-05 11:20:34-0500 [APNSProtocol (TLSMemoryBIOProtocol),client] <twisted.internet.tcp.Connector instance at 0x186f248> will retry in 2 seconds 2012-06-05 11:20:34-0500 [APNSProtocol (TLSMemoryBIOProtocol),client] Stopping factory <pyapns.server.APNSClientFactory instance at 0x186f3b0>

Am i doing something wrong?

riegie commented 11 years ago

I'm also having this same issue! If anyone has a solution, I would greatly appreciatedit! I was able to send push notifications before but now it's not working :(

dabeto commented 10 years ago

@riegie yesterday my Pyapns started to giveme this errors, and is not sending the puhes. However when I run twisted in my mac works like a charm. Did you solved? I need to solve it in my production instance.

samuraisam commented 10 years ago

You might need to update to 0.4.1.

dabeto commented 10 years ago

I started a new ec2 instance and it worked. Thank you.