Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Lion Server push notifications to iOS5

Hello All,


I'm having trouble with push notificaitions to iOS 5 devices from Lion Server. Mail, Contacts and Calendar services appear to be working but any time new mail or new meeting invite is sent, I see the below error message regarding APNS:


Nov 21 12:40:57 zion com.apple.APNBridge[10240]: Disconnected from apn server gateway.push.apple.com for topic com.apple.calendar.XServer.6ac5b2cd-6c4b-4801-bb11-48ec449e5e7e: error The operation couldn’t be completed. Operation timed out

Nov 21 12:40:57 zion com.apple.APNBridge[10240]: Will attempt to reconnect stream APN to host gateway.push.apple.com:2195 in 15 seconds

Nov 21 12:41:04 zion fseventsd[63]: SLOWDOWN: client 0x7fbf7c010000 (pid 30) sleeping due to too many errors (num usleeps 132)

Nov 21 12:41:46 zion com.apple.APNBridge[10240]: Received stream error (The operation couldn’t be completed. Operation timed out) on incoming stream APN to host gateway.push.apple.com:2195

Nov 21 12:41:46 zion com.apple.APNBridge[10240]: Disconnected from apn server gateway.push.apple.com for topic com.apple.mail.XServer.3c925dd7-41fd-4892-b386-24146dc772f3: error The operation couldn’t be completed. Operation timed out

Nov 21 12:41:46 zion com.apple.APNBridge[10240]: Will attempt to reconnect stream APN to host gateway.push.apple.com:2195 in 15 seconds


I recently updated my APNS certificate, which I believe could be part of the problem. All iOS devices are on the same subnet as the server, so firewalling is not an issue. Moreover, I'm not blocking traffic outbound (to the internet) so I know the server can connect to the APNS. Any ideas or assistance would be greatly appreciated.


Regards,

-SD

Posted on Nov 21, 2011 11:10 AM

Reply
11 replies

Dec 3, 2011 9:24 AM in response to Shadow_Dancer

I have the same problem. My iCal-, iChat-, MailServer are running without any problems, but I get the following entry every 10-15 minutes in the System Logfile of my Server (10.7.2):


"

Dec 3 18:14:58 mac com.apple.APNBridge[46882]: Received stream error (The operation couldn\u2019t be completed. Connection reset by peer) on incoming stream APN to host gateway.push.apple.com:2195

Dec 3 18:14:58 mac com.apple.APNBridge[46882]: Disconnected from apn server gateway.push.apple.com for topic com.apple.contact.XServer.0dac4953-c0c3-45bd-9bdf-f5c1504c2caa: error The operation couldn\u2019t be completed. Connection reset by peer

Dec 3 18:14:58 mac com.apple.APNBridge[46882]: Will attempt to reconnect stream APN to host gateway.push.apple.com:2195 in 15 seconds

Dec 3 18:14:58 mac com.apple.APNBridge[46882]: Received stream error (The operation couldn\u2019t be completed. Connection reset by peer) on incoming stream APN to host gateway.push.apple.com:2195

Dec 3 18:14:58 mac com.apple.APNBridge[46882]: Disconnected from apn server gateway.push.apple.com for topic com.apple.calendar.XServer.215642cb-6366-46e3-b5fb-f327dc4ce391: error The operation couldn\u2019t be completed. Connection reset by peer

Dec 3 18:14:58 mac com.apple.APNBridge[46882]: Will attempt to reconnect stream APN to host gateway.push.apple.com:2195 in 15 seconds

Dec 3 18:14:58 mac com.apple.APNBridge[46882]: Received stream error (The operation couldn\u2019t be completed. Connection reset by peer) on incoming stream APN to host gateway.push.apple.com:2195

Dec 3 18:14:58 mac com.apple.APNBridge[46882]: Disconnected from apn server gateway.push.apple.com for topic com.apple.mail.XServer.88e2191e-0994-4a77-a240-e5a8d9d809ce: error The operation couldn\u2019t be completed. Connection reset by peer

Dec 3 18:14:58 mac com.apple.APNBridge[46882]: Will attempt to reconnect stream APN to host gateway.push.apple.com:2195 in 15 seconds


"


BTW:


Adressbook-, Web-, and WikiServer + FileSharing are running too.


Regards


Sperandio

Jan 15, 2012 2:28 AM in response to Shadow_Dancer

Hi,


notfications are working most of the time but I sometimes get errors in the logs


Jan 15 01:23:14 domain com.apple.APNBridge[29556]: Received stream error (The operation couldn’t be completed. Operation timed out) on incoming stream APN to host gateway.push.apple.com:2195

Jan 15 01:23:14 domain com.apple.APNBridge[29556]: Disconnected from apn server gateway.push.apple.com for topic com.apple.mail.XServer.3f2f06c9-f6e0-4f94-ac62-4931443333fa: error The operation couldn’t be completed. Operation timed out

Jan 15 01:23:14 domain com.apple.APNBridge[29556]: Will attempt to reconnect stream APN to host gateway.push.apple.com:2195 in 15 seconds

Jan 15 03:34:52 domain com.apple.APNBridge[29556]: Received stream error (The operation couldn’t be completed. Operation timed out) on incoming stream APN to host gateway.push.apple.com:2195

Jan 15 03:34:52 domain com.apple.APNBridge[29556]: Disconnected from apn server gateway.push.apple.com for topic com.apple.mail.XServer.3f2f06c9-f6e0-4f94-ac62-4931443333fa: error The operation couldn’t be completed. Operation timed out

Jan 15 03:34:52 domain com.apple.APNBridge[29556]: Will attempt to reconnect stream APN to host gateway.push.apple.com:2195 in 15 seconds

Jan 15 05:05:13 domain com.apple.APNBridge[29556]: Opening connection to apn feedback server feedback.push.apple.com for topic com.apple.mail.XServer.3f2f06c9-f6e0-4f94-ac62-4931443333fa

Jan 15 05:05:14 domain com.apple.APNBridge[29556]: Opening connection to apn feedback server feedback.push.apple.com for topic com.apple.calendar.XServer.aac19cf7-966f-4ee4-b495-56ced5ef1cb5

Jan 15 05:05:14 domain com.apple.APNBridge[29556]: Opening connection to apn feedback server feedback.push.apple.com for topic com.apple.contact.XServer.34796f5a-b1fe-420d-890e-ee2ce10a4d6b

Jan 15 05:05:15 domain com.apple.APNBridge[29556]: Disconnected from apn feedback server feedback.push.apple.com for topic com.apple.contact.XServer.34796f5a-b1fe-420d-890e-ee2ce10a4d6b: error (null)

Jan 15 05:05:16 domain com.apple.APNBridge[29556]: Disconnected from apn feedback server feedback.push.apple.com for topic com.apple.mail.XServer.3f2f06c9-f6e0-4f94-ac62-4931443333fa: error (null)

Jan 15 05:05:16 domain com.apple.APNBridge[29556]: Disconnected from apn feedback server feedback.push.apple.com for topic com.apple.calendar.XServer.aac19cf7-966f-4ee4-b495-56ced5ef1cb5: error (null)

Jan 15 07:00:31 domain com.apple.APNBridge[29556]: Received stream error (The operation couldn’t be completed. Operation timed out) on incoming stream APN to host gateway.push.apple.com:2195

Jan 15 07:00:31 domain com.apple.APNBridge[29556]: Disconnected from apn server gateway.push.apple.com for topic com.apple.mail.XServer.3f2f06c9-f6e0-4f94-ac62-4931443333fa: error The operation couldn’t be completed. Operation timed out

Jan 15 07:00:31 domain com.apple.APNBridge[29556]: Will attempt to reconnect stream APN to host gateway.push.apple.com:2195 in 15 seconds

Jan 15 10:44:20 domain com.apple.APNBridge[29556]: Received stream error (The operation couldn’t be completed. Operation timed out) on incoming stream APN to host gateway.push.apple.com:2195

Jan 15 10:44:20 domain com.apple.APNBridge[29556]: Disconnected from apn server gateway.push.apple.com for topic com.apple.mail.XServer.3f2f06c9-f6e0-4f94-ac62-4931443333fa: error The operation couldn’t be completed. Operation timed out

Jan 15 10:44:20 domain com.apple.APNBridge[29556]: Will attempt to reconnect stream APN to host gateway.push.apple.com:2195 in 15 seconds


What is wrong?


Thanks

Jun 10, 2012 11:50 AM in response to Shadow_Dancer

I too am getting the following in my console logs when filtering on APNB.


My push notification was working on my new install of Server 10.7.3 but now is not working at all. Not sure if it was my recent update from Server 10.7.3 to Server 10.7.4 that caused the break or not. When I add an IMAP, CalDAV oeCardDAV account to my iOS devices it shows that Push is available, however, push notifications DO NOT work.


NOTE: My server is kept in a data centre. All inbound traffic to the server's public IP are forwarded to the server's private IP. All required ports for APNS are open and configured correctly in Lion Server firewall service. I have even tried turning off firewall service to no avail, therefore can rule out firewall config as the problem.


12-06-10 1:12:07.810 PM com.apple.APNBridge: http server appears to have started

12-06-10 1:12:07.812 PM com.apple.APNBridge: Connected to XMPP server

12-06-10 1:12:07.815 PM com.apple.APNBridge: Opening connection to apn server gateway.push.apple.com for topic com.apple.calendar.XServer.188db608-c359-44ca-8e98-3eb3b721f1b2

12-06-10 1:12:08.817 PM com.apple.APNBridge: Opening connection to apn server gateway.push.apple.com for topic com.apple.contact.XServer.f128889f-d3b2-4be1-953f-3785ab4b85b1

12-06-10 1:12:08.825 PM com.apple.APNBridge: Opening connection to apn server gateway.push.apple.com for topic com.apple.mail.XServer.dacd6ca3-ebcb-4d74-a0bb-caa2ef39d2de

12-06-10 1:12:08.837 PM com.apple.APNBridge: Opening connection to apn feedback server feedback.push.apple.com for topic com.apple.mail.XServer.dacd6ca3-ebcb-4d74-a0bb-caa2ef39d2de

12-06-10 1:12:08.841 PM com.apple.APNBridge: Opening connection to apn feedback server feedback.push.apple.com for topic com.apple.calendar.XServer.188db608-c359-44ca-8e98-3eb3b721f1b2

12-06-10 1:12:08.844 PM com.apple.APNBridge: Opening connection to apn feedback server feedback.push.apple.com for topic com.apple.contact.XServer.f128889f-d3b2-4be1-953f-3785ab4b85b1

12-06-10 1:12:09.156 PM com.apple.APNBridge: Disconnected from apn feedback server feedback.push.apple.com for topic com.apple.mail.XServer.dacd6ca3-ebcb-4d74-a0bb-caa2ef39d2de: error (null)

12-06-10 1:12:09.199 PM com.apple.APNBridge: Disconnected from apn feedback server feedback.push.apple.com for topic com.apple.calendar.XServer.188db608-c359-44ca-8e98-3eb3b721f1b2: error (null)

12-06-10 1:12:09.284 PM com.apple.APNBridge: Disconnected from apn feedback server feedback.push.apple.com for topic com.apple.contact.XServer.f128889f-d3b2-4be1-953f-3785ab4b85b1: error (null)

12-06-10 2:03:13.132 PM com.apple.APNBridge: Received stream error (The operation couldn’t be completed. Connection reset by peer) on incoming stream APN to host gateway.push.apple.com:2195

12-06-10 2:03:13.132 PM com.apple.APNBridge: Disconnected from apn server gateway.push.apple.com for topic com.apple.mail.XServer.dacd6ca3-ebcb-4d74-a0bb-caa2ef39d2de: error The operation couldn’t be completed. Connection reset by peer

12-06-10 2:03:13.132 PM com.apple.APNBridge: Will attempt to reconnect stream APN to host gateway.push.apple.com:2195 in 15 seconds


QUESTION 1: What is "com.apple.APNBridge: Disconnected from apn feedback server feedback.push.apple.com for topic com.apple.mail.XServer.dacd6ca3-ebcb-4d74-a0bb-caa2ef39d2de: error (null)" indicative of?


QUESTION 2: What is "com.apple.APNBridge: Received stream error (The operation couldn’t be completed. Connection reset by peer) on incoming stream APN to host gateway.push.apple.com:2195" indicative of?


Any assistance would be greatly appreciated.

Jun 10, 2012 11:55 AM in response to jpawelchak

I have the same kind of issues since day 1 but notfications are working for mail and calendar.


QUESTION 1: What is "com.apple.APNBridge: Disconnected from apn feedback server feedback.push.apple.com for topic com.apple.mail.XServer.dacd6ca3-ebcb-4d74-a0bb-caa2ef39d2de: error (null)" indicative of?

I have read somewhere that it is not a "real" error, but never found any kind of confirmation...


QUESTION 2: What is "com.apple.APNBridge: Received stream error (The operation couldn’t be completed. Connection reset by peer) on incoming stream APN to host gateway.push.apple.com:2195" indicative of?

No idea but same error message !

Aug 3, 2012 12:38 PM in response to Fred de Gembloux

re Question 2 APN & 2195

Looks like you need to forward Port 2195 & maybe also port 2196

To use Profile Manager, you should ensure that the following ports are open on your network.


PortTCP/UDPDescription
2195, 2196TCPUsed by Profile Manager to send push notifications
5223TCPUsed to maintain a persistent connection to APNs and receive push notifications
80/443TCPProvides access to the web interface for Profile Manager admin
1640TCPEnrollment access to the Certificate Authority


SEE -> http://support.apple.com/kb/PH8044 for the COMPLETE LIST OF PORTS USED FOR LION SERVER

Lion Server push notifications to iOS5

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.