Comments (11)
I think I could fix this bug by changing the connection pool library. I will give you a new build by this Sunday.
from uniqush-push.
I am looking forward to testing your next build. 👍
from uniqush-push.
Hi @Uscher1,
Please try this build. Before running it, please make sure it's the right version:
% ./uniqush-push -version
uniqush-push 1.5.2a4
from uniqush-push.
Hi monnand
Thank you for the build.
I installed the build 1.5.2a4 but push fails due to missing Subscriber/DeliveryPoint problem:
[Subscribe][Info] 2014/06/22 16:25:07 From=127.0.0.1:39926 Service=ajoy Subscriber=41786377584 PushServiceProvider=apns:85532e46d56583e1d66a0c07be4eb27a4d325ef7 DeliveryPoint=apns:98e33a0cad66bc695e9ba781efa48a4252eb70ba Success!
[Push][Info] 2014/06/22 16:26:23 RequestId=53a6e78f-GvIEfCSvWC-Zyf6dYTJ4xw== From=127.0.0.1:55331 Service=ajoy NrSubscribers=1 Subscribers="[41786377584]"
[Push][Error] 2014/06/22 16:26:23 RequestID=53a6e78f-GvIEfCSvWC-Zyf6dYTJ4xw== Service=ajoy Subscriber= PushServiceProvider=apns:85532e46d56583e1d66a0c07be4eb27a4d325ef7 DeliveryPoint=Unknown Failed: tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config
Are there more steps to do than just installing the binary? Is the existing data still available and compatible?
from uniqush-push.
@Uscher1 Sorry, I do not have my APNS certificate and key with me. The most recent Go TLS library changed its behaviour. But it's an easy fix. You could try this new build. Sorry about that.
from uniqush-push.
Is there anything wrong with the archive?
tar zxvf uniqush-push_1.5.2a5_x86_64.tar.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
from uniqush-push.
Well.. It works for me:
$ wget http://uniqush.org/downloads/uniqush-push_1.5.2a5_x86_64.tar.gz
--2014-06-23 17:33:13-- http://uniqush.org/downloads/uniqush-push_1.5.2a5_x86_64.tar.gz
Resolving uniqush.org (uniqush.org)... 108.162.199.101, 108.162.198.101
Connecting to uniqush.org (uniqush.org)|108.162.199.101|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2119678 (2.0M) [application/octet-stream]
Saving to: ‘uniqush-push_1.5.2a5_x86_64.tar.gz’
100%[===========================================================================================================================================================================>] 2,119,678 3.68MB/s in 0.5s
2014-06-23 17:33:14 (3.68 MB/s) - ‘uniqush-push_1.5.2a5_x86_64.tar.gz’ saved [2119678/2119678]
$ tar zxvf uniqush-push_1.5.2a5_x86_64.tar.gz
uniqush-push_1.5.2a5_x86_64/
uniqush-push_1.5.2a5_x86_64/Apache-2.0
uniqush-push_1.5.2a5_x86_64/uniqush-push.conf
uniqush-push_1.5.2a5_x86_64/uniqush-push
uniqush-push_1.5.2a5_x86_64/install.sh
$ sha256sum uniqush-push_1.5.2a5_x86_64.tar.gz
ef16990ffdc5364c418e23a53eeadb14a0588c06578b15f60271410f87de69a6 uniqush-push_1.5.2a5_x86_64.tar.gz
Here is the SHA256 of the file: ef16990ffdc5364c418e23a53eeadb14a0588c06578b15f60271410f87de69a6
from uniqush-push.
OK, thank you, I was able to download your latest build now. It works for APNS, but not for GCM (see second push):
[Push][Info] 2014/06/24 11:43:13 RequestId=53a94831-A7dvHqDFfhAmutaCUdWbgg== From=127.0.0.1:44237 Service=ajoy NrSubscribers=1 Subscribers="[41786377584]"
[Push][Info] 2014/06/24 11:43:14 RequestID=53a94831-A7dvHqDFfhAmutaCUdWbgg== Service=ajoy Subscriber=41786377584 PushServiceProvider=apns:85532e46d56583e1d66a0c07be4eb27a4d325ef7 DeliveryPoint=apns:98e33a0cad66bc695e9ba781efa48a4252eb70ba MsgId=apns:apns:85532e46d56583e1d66a0c07be4eb27a4d325ef7-1 Success!
[Push][Info] 2014/06/24 11:44:06 RequestId=53a94866-_81J73FxLWCue1tO3g6eAw== From=127.0.0.1:44237 Service=ajoy NrSubscribers=1 Subscribers="[41791336366]"
[Push][Error] 2014/06/24 11:44:06 RequestID=53a94866-_81J73FxLWCue1tO3g6eAw== Service=ajoy Subscriber=41791336366 Failed: No device
uniqush
Do you have an idea whats going wrong?
from uniqush-push.
@Uscher1 The error shown above suggests that uniqush cannot find any device under the subscriber "41791336366". Do you have same error when you use the old version with same subscriber? Also, you could use redis-cli
to check if there's any device under this subscriber. Here's how to do it:
- Use
redis-cli
to connect to your redis server - In the redis client, run this command:
KEYS srv.sub-2-dp:ajoy:41791336366
. If it returns empty, then there's no device under the subscriber. Otherwise, move on to next step. - In the redis client, run this command:
SMEMBERS srv.sub-2-dp:ajoy:41791336366
. Again, If it returns empty, then there's no device under the subscriber. Otherwise, this would be a bug.
I checked my commits. There's no change on GCM part. The error suggests that it did not even reach any GCM-specific code. This error message means uniqush-push tried to retrieve data from redis but found nothing. The database code is not change for a long time, like almost a year.
from uniqush-push.
Hi Monnand, for some reason this device number was not stored anymore in redis, even though unsubscribe is not implemented at all. Additionally the uniqush process was stopped over night for unknown reason.
However, everything works fine now and I start doing some long term tests.
Thank you so much for your excellent support and patience!
Uscher
from uniqush-push.
Uniqush will automatically remove devices when the push service provider
says the device should be removed. This is usually happen when user removed
your app. You could find the unsubscription event in the log. Thank you for
your feedback. Have fun!
On Jun 25, 2014 1:23 AM, "Urs Steger" [email protected] wrote:
Hi Monnand, for some reason this device number was not stored anymore in
redis, even though unsubscribe is not implemented at all. Additionally the
uniqush process was stopped over night for unknown reason.However, everything works fine now and I start doing some long term tests.
Thank you so much for your excellent support and patience!
Uscher—
Reply to this email directly or view it on GitHub
#47 (comment).
from uniqush-push.
Related Issues (20)
- APNs binary protocol will be disabled in November 2020 - Provide migration steps
- Add a health check for connection pools, redis being connected HOT 3
- Refuse to start up if APNs certificates cause SystemRootsError
- Plans for web push features? HOT 1
- Potential code quality issues found HOT 3
- Fix no-op Signal(os.Kill)
- Idea: Add an opt-in mode to act as a proxy without managing tokens
- Consider migrating GCM/FCM from legacy HTTP API to HTTP v1 API
- Look into token-based instead of certificate-based connections to APNs
- Add Destination pointer to all push.Error implementations, to log
- Disable APNs binary protocol and feedback checker HOT 1
- Look into supporting apns-push-type setting HOT 1
- cant receive message in android app
- Remove psps
- What about an open server-side events/REST protocol for apps on any platform?
- Document how to support new root CAs for APNs servers with uniqush
- Make FCM/APNS timeouts configurable?
- Switch to api.sandbox.push.apple.com
- what tutorials on this are complete, i cant send a push notification via fcm
- Support UnifiedPush on Android devices HOT 1
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 uniqush-push.