Need help with DNS and PUSH

Discussion in 'Mac OS X Server, Xserve, and Networking' started by themacisgood, Jan 26, 2012.

  1. themacisgood, Jan 26, 2012
    Last edited: Jan 26, 2012

    themacisgood macrumors newbie

    Joined:
    Jan 25, 2012
    #1
    Hi.
    I have been trying for a while to get my push services to work. And I've gotten everything to look fine (according to me) exempt that the push does not work.
    The iOS units can select push and the server seams to connect to the apple servers as it should. But I'm guessing it has to do with my DNS since I'm not a expert on these stuff. So can anyone spend some time helping me finding the error. Would be super super super nice...


    System set up:
    We have an mac server behind external firewall.
    All apple ports (according to apple doc.) is open and static NAT forwarding
    Everything works with profile manager and we can check/controll our iOS units from there. Also everything works fine with fetch, but we would like to get push to work on calendar and contacts (XMPP). Mail has got push as setting in iPhone (should prove that it works, but I'm not sure) but not calendar and contacts (uses XMPP not imap idle as mails does...).


    Systems 10.7 running and working:
    DNS
    Mail
    Web
    Calander
    Contacts
    Profilemanager



    JAbberd errors
    2012-01-26 12:11:05,288 push_notify: discarding message; not connected to notification server

    When starting up push:
    2012-01-26 12:04:40,950 jabberd_notification/sm: [mydomain.local] configured
    2012-01-26 12:04:40,950 jabberd_notification/sm: attempting connection to router at 127.0.0.1, port=5348
    2012-01-26 12:04:40,961 jabberd_notification/sm: connection to router established
    2012-01-26 12:04:40,961 jabberd_notification/sm: sm ready for sessions

    and so on...
    No error what I can se.

    DNS settings:
    127.0.0.1
    ISP DNS 1
    ISP DNS 2

    Server domain is
    server.mydomain.com

    Reversed dns is just fixed, so that works. I get the feeling that the push connects to my local 127.0.0.1 and he can't resolve the address to the XMPP push server.

    The certificate are legit and should work fine.

    just tell me where to start looking and Ill do my best. I ho ever fully understand if no one has the time. But many thanks anyway.
     
  2. themacisgood, Jan 26, 2012
    Last edited: Jan 26, 2012

    themacisgood thread starter macrumors newbie

    Joined:
    Jan 25, 2012
    #2
    Some more logs..

    jabberd cs2
    2012-01-26 11:25:38,600 jabberd_notification/c2s: connection to router established
    2012-01-26 11:25:38,600 jabberd_notification/c2s: [::, port=5218] listening for connections
    2012-01-26 11:25:38,600 jabberd_notification/c2s: ready for connections
    2012-01-26 12:02:23,650 jabberd_notification/c2s: shutting down
    2012-01-26 12:02:23,650 jabberd_notification/c2s: connection to router closed
    2012-01-26 12:02:24,805 jabberd_notification/c2s: starting up
    2012-01-26 12:02:24,805 jabberd_notification/c2s: modules search path: /var/jabberd/modules/jabberd2
    2012-01-26 12:02:24,808 jabberd_notification/c2s: initialized auth module 'apple_od'
    2012-01-26 12:02:24,828 jabberd_notification/c2s: [mydomain.local] configured; realm=mydomain.local, registration disabled
    2012-01-26 12:02:24,828 jabberd_notification/c2s: attempting connection to router at 127.0.0.1, port=5348
    2012-01-26 12:02:24,828 jabberd_notification/c2s: [5] [router] write error: Broken pipe (32)
    2012-01-26 12:02:24,828 jabberd_notification/c2s: connection to router closed
    2012-01-26 12:02:24,828 jabberd_notification/c2s: attempting reconnect (3 left)
    2012-01-26 12:02:26,830 jabberd_notification/c2s: attempting connection to router at 127.0.0.1, port=5348
    2012-01-26 12:02:26,840 jabberd_notification/c2s: connection to router established
    2012-01-26 12:02:26,841 jabberd_notification/c2s: [::, port=5218] listening for connections
    2012-01-26 12:02:26,841 jabberd_notification/c2s: ready for connections
    2012-01-26 12:04:38,748 jabberd_notification/c2s: shutting down
    2012-01-26 12:04:38,748 jabberd_notification/c2s: connection to router closed
    2012-01-26 12:04:40,909 jabberd_notification/c2s: starting up
    2012-01-26 12:04:40,909 jabberd_notification/c2s: modules search path: /var/jabberd/modules/jabberd2
    2012-01-26 12:04:40,912 jabberd_notification/c2s: initialized auth module 'apple_od'
    2012-01-26 12:04:40,929 jabberd_notification/c2s: [mydomain.local] configured; realm=mydomain.local, registration disabled
    2012-01-26 12:04:40,929 jabberd_notification/c2s: attempting connection to router at 127.0.0.1, port=5348
    2012-01-26 12:04:40,946 jabberd_notification/c2s: connection to router established
    2012-01-26 12:04:40,946 jabberd_notification/c2s: [::, port=5218] listening for connections
    2012-01-26 12:04:40,946 jabberd_notification/c2s: ready for connections
    2012-01-26 12:31:42,284 jabberd_notification/c2s: shutting down
    2012-01-26 12:32:50,901 jabberd_notification/c2s: starting up
    2012-01-26 12:32:50,913 jabberd_notification/c2s: modules search path: /var/jabberd/modules/jabberd2
    2012-01-26 12:32:50,931 jabberd_notification/c2s: initialized auth module 'apple_od'
    2012-01-26 12:32:51,000 jabberd_notification/c2s: [mydomain.local] configured; realm=mydomain.local, registration disabled
    2012-01-26 12:32:51,000 jabberd_notification/c2s: attempting connection to router at 127.0.0.1, port=5348
    2012-01-26 12:32:51,023 jabberd_notification/c2s: connection to router established

    ApnBridge:

    2012-01-26 12:32:50,701 com.apple.APNBridge: http server appears to have started
    2012-01-26 12:32:50,770 com.apple.APNBridge: Received stream error (The operation couldn’t be completed. Connection refused) on incoming stream XMPP-Component to host 127.0.0.1:5348
    2012-01-26 12:32:50,778 com.apple.APNBridge: Disconnected from XMPP server
    2012-01-26 12:32:50,778 com.apple.APNBridge: Will attempt to reconnect stream XMPP-Component to host 127.0.0.1:5348 in 15 seconds
    2012-01-26 12:32:32,809 com.apple.APNBridge: Connected to XMPP server
    2012-01-26 12:32:32,814 com.apple.APNBridge: Opening connection to apn server gateway.push.apple.com for topic com.apple.calendar.XServer.dcd67322-9cfe-4663-b8cd-87f3df301161
    2012-01-26 12:32:33,540 com.apple.APNBridge: Opening connection to apn server gateway.push.apple.com for topic com.apple.contact.XServer.15333f88-f916-4754-b28d-04a06c15cb3c
    2012-01-26 12:32:33,686 com.apple.APNBridge: Opening connection to apn server gateway.push.apple.com for topic com.apple.mail.XServer.c21e18b6-dbb0-4ea6-b5fa-86ec116163a6
    2012-01-26 12:32:33,717 com.apple.APNBridge: Opening connection to apn feedback server feedback.push.apple.com for topic com.apple.mail.XServer.c21e18b6-dbb0-4ea6-b5fa-86ec116163a6
    2012-01-26 12:32:33,751 com.apple.APNBridge: Opening connection to apn feedback server feedback.push.apple.com for topic com.apple.calendar.XServer.dcd67322-9cfe-4663-b8cd-87f3df301161
    2012-01-26 12:32:33,758 com.apple.APNBridge: Opening connection to apn feedback server feedback.push.apple.com for topic com.apple.contact.XServer.15333f88-f916-4754-b28d-04a06c15cb3c
    2012-01-26 12:32:35,343 com.apple.APNBridge: Disconnected from apn feedback server feedback.push.apple.com for topic com.apple.calendar.XServer.dcd67322-9cfe-4663-b8cd-87f3df301161: error (null)
    2012-01-26 12:32:35,395 com.apple.APNBridge: Disconnected from apn feedback server feedback.push.apple.com for topic com.apple.mail.XServer.c21e18b6-dbb0-4ea6-b5fa-86ec116163a6: error (null)
    2012-01-26 12:32:35,518 com.apple.APNBridge: Disconnected from apn feedback server feedback.push.apple.com for topic com.apple.contact.XServer.15333f88-f916-4754-b28d-04a06c15cb3c: error (null)

    and devicemanager:
    2012-01-26 12:33:22,765 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to DevicesAddEthernetmac (20110421100355)
    2012-01-26 12:33:22,765 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to SettingsAddCodeSignCertRef (20110426131700)
    2012-01-26 12:33:22,766 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to CreateCfprefsKnobSets (20110426150013)
    2012-01-26 12:33:22,766 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to SettingsUpdateCodeSignCertRef (20110428103150)
    2012-01-26 12:33:22,766 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to InterfacesAddSecurity (20110502140408)
    2012-01-26 12:33:22,766 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to CreatePrivacyKnobSets (20110506085644)
    2012-01-26 12:33:22,766 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to SettingsAddIsOdCaRooted (20110512141100)
    2012-01-26 12:33:22,766 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to LabSessionAddPendingOdUserGuid (20110520135430)
    2012-01-26 12:33:22,766 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to CreateIosApplications (20110622125800)
    2012-01-26 12:33:22,766 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to CreateIosApplicationLibraryItemRelations (20110705140100)
    2012-01-26 12:33:22,767 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to RestrictionsAddIos5 (20110706144222)
    2012-01-26 12:33:22,767 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to InterfacesAddIos5 (20110706155221)
    2012-01-26 12:33:22,767 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to EmailAddIos5 (20110707105921)
    2012-01-26 12:33:22,767 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to DeviceAddManagedApplicationList (20110727144000)
    2012-01-26 12:33:22,767 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to DeviceAddIos5 (20110801134837)
    2012-01-26 12:33:22,767 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to RestrictionsAddMoreIos5 (20110803190303)
    2012-01-26 12:33:22,767 com.apple.devicemanager: Jan 26 12:33:22 server.mydomain.com ProfileManager[501] <Info>: Migrating to RestrictionsAddLastIos5 (20110930134707)
    2012-01-26 12:33:23,052 com.apple.devicemanager: (in /usr/share/devicemgr/backend)


    and last jabber router:
    2012-01-26 12:04:40,909 jabberd_notification/router: starting up
    2012-01-26 12:04:40,910 jabberd_notification/router: loaded user table (1 users)
    2012-01-26 12:04:40,911 jabberd_notification/router: loaded filters (7 rules)
    2012-01-26 12:04:40,928 jabberd_notification/router: [127.0.0.1, port=5348] listening for incoming connections
    2012-01-26 12:04:40,929 jabberd_notification/router: [127.0.0.1, port=64363] connect
    2012-01-26 12:04:40,930 jabberd_notification/router: [127.0.0.1, port=64364] connect
    2012-01-26 12:04:40,931 jabberd_notification/router: [127.0.0.1, port=64363] authenticated as jabberd
    2012-01-26 12:04:40,932 jabberd_notification/router: [127.0.0.1, port=64364] authenticated as jabberd
    2012-01-26 12:04:40,946 jabberd_notification/router: [c2s] online (bound to 127.0.0.1, port 64363)
    2012-01-26 12:04:40,946 jabberd_notification/router: [s2s] set as default route
    2012-01-26 12:04:40,946 jabberd_notification/router: [s2s] online (bound to 127.0.0.1, port 64364)
    2012-01-26 12:04:40,950 jabberd_notification/router: [127.0.0.1, port=64365] connect
    2012-01-26 12:04:40,951 jabberd_notification/router: [127.0.0.1, port=64365] authenticated as jabberd
    2012-01-26 12:04:40,961 jabberd_notification/router: [sm] online (bound to 127.0.0.1, port 64365)
    2012-01-26 12:04:40,961 jabberd_notification/router: [mydomain.local] online (bound to 127.0.0.1, port 64365)
    2012-01-26 12:04:41,882 jabberd_notification/router: [127.0.0.1, port=64374] connect
    2012-01-26 12:04:41,885 jabberd_notification/router: [127.0.0.1, port=64374] authenticated as apn.server.mydomain.com
    2012-01-26 12:04:41,885 jabberd_notification/router: [apn.server.mydomain.com] online (bound to 127.0.0.1, port 64374)
    2012-01-26 12:04:42,491 jabberd_notification/router: [127.0.0.1, port=64379] connect
    2012-01-26 12:04:42,498 jabberd_notification/router: [127.0.0.1, port=64379] authenticated as pubsub.server.mydomain.com
    2012-01-26 12:04:42,498 jabberd_notification/router: [pubsub.server.mydomain.com] online (bound to 127.0.0.1, port 64379)
    2012-01-26 12:32:50,901 jabberd_notification/router: starting up
     
  3. themacisgood thread starter macrumors newbie

    Joined:
    Jan 25, 2012
    #3
    Sorry for using this like my personal diary. but when I run a

    sudo calendarserver_monitor_notifications user

    I get
    Unable to determine XMPP server name
     
  4. sentinel86 macrumors newbie

    Joined:
    Feb 26, 2012
    #4
    hi, i am not sure but it looks to me that connection to 127.0.0.1 is indeed at fault here or your isp dns maybe too slow and resulting in timeout.
    I have had similar issues with a few windows applications before and the router config and dns did end up being the culprits.

    Have you tried playing with your DNS settings and looking for better DNS servers?
     
  5. SandboxGeneral Moderator

    SandboxGeneral

    Staff Member

    Joined:
    Sep 8, 2010
    Location:
    Orbiting a G-type Main Sequence Star
    #5
    Wirelessly posted (iPhone 4S: Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari/7534.48.3)

    What happens when you use your iOS device on cellular data, assuming you have that, does Push work on that network?
     
  6. matspekkie macrumors member

    Joined:
    Oct 19, 2010
    #6
    DNS 127.0.0.1 is fine since it is running it's own dns service. I think the problem you are having is related to certificates. In the server app go to hardware "your server" the settings check there if everything is set right for your certificates. all services should use them. check use apple push service. Also make sure port 1640 is open wan - server. And maybe port 2195 & 2196 (not sure about these).
    Hope i pointed you in the right direction.

    To check all your dns stuff is right:
    sudo changeip -checkhostname
     

Share This Page