Comments (8)
Looking into this. I'm experiencing the same problem.
from dovecot-xaps-daemon.
I have the same problem.
from dovecot-xaps-daemon.
Could be related to #7 - Investigating
from dovecot-xaps-daemon.
Note to self, I restarted my deployment at 2014-11-12 21:59
. Let's see if the error from #7 appears when this stops working.
from dovecot-xaps-daemon.
@maiksd @patricks Can you grep for APNSProtocol.dataReceived
in your log files?
from dovecot-xaps-daemon.
How to I enable logging? I don't have any log files for the daemon.
EDIT:
I also log my daemon output now into a log file. So maybe I can get you so some data in a few days.
from dovecot-xaps-daemon.
I use this script to start the daemon, which then writes a logfile as well as outputting everything to the console:
#!/bin/bash
LOG=$HOME/xapsd.log
cd $HOME/dovecot-xaps-daemon
twistd -n xapsd --key=$HOME/key.pem --certificate=$HOME/certificate.pem --database=$HOME/xapsd.json --socket=/var/run/dovecot/xaps/xapsd.sock 2>&1 | tee -a $LOG
$ grep APNSProtocol.dataReceived xapsd.log
2014-10-29 19:59:56+0100 [APNSProtocol (TLSMemoryBIOProtocol),client] APNSProtocol.dataReceived: 080a00000000
That's it. The daemon has been running for weeks without problems now. Logfile has 6648 lines.
from dovecot-xaps-daemon.
Pretty sure the fix i just pushed will do the trick. Auto-reconnect was broken due to bad code.
Now when the server loses the connection to the APNS service, it will try to reconnect after a minute. Notifications within that timeframe should be queued and will go out when the reconnect was successful.
There is one issue: the notification that failed is not pushed back on the queue. I'll file a bug to fix that.
from dovecot-xaps-daemon.
Related Issues (20)
- Why not Z-Push HOT 4
- push not working (no errors on dovecot side) HOT 3
- APNSProtocol.connectionLost since a few days HOT 1
- Helper Scripts HOT 3
- Sending notifications does not trigger mail check HOT 14
- Allow xapsd to use a .p12 file directly HOT 1
- Check if the certificate is configured for production
- Use original timehop/apns
- Device registered, but no push notification received HOT 1
- Reading froms socket: read unix /var/run/xapsd/xapsd.sock->@: read: connection reset by peer HOT 45
- Support subscribing to subfolders HOT 4
- Document metadata / privacy implications HOT 3
- Cannot find package "github.com/sirupsen/logrus" HOT 2
- macOS Server v5.7 no longer supports APSP Mail etc. Certificates HOT 77
- xapsd does not send push notify to Apple push servers HOT 7
- Binary protocol deprecation in November HOT 7
- Go build fails - no context for redisClient HOT 1
- New Apple Root CA question HOT 1
- Compile error: redefinition of ‘SyscallNoError’
- Get the account id and device token
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 dovecot-xaps-daemon.