Skip navigation

Who got caldav and carddav push running successful on lion server?

8761 Views 37 Replies Latest reply: Oct 29, 2013 6:54 AM by cj00 RSS
1 2 3 Previous Next
eldrik Level 1 Level 1 (65 points)
Currently Being Moderated
Sep 23, 2011 2:58 AM

Hello everybody,

 

I am running OS X Server since 10.5 server which I upgraded to 10.6 server in the past without problems, upgrading 10.6 to 10.7 was is a mess and none of my serveral upgrades attempts were leading into a "stable" lion server so I ended up with manual upgrading my data into a clean install of lion server.

 

After data migration most of my services are working as usual (some profilemanager quirks but that don't bother me for now).

 

Only when it comes to push for calendar and addressbook services I am getting frustrated!

 

Push mail is running fine for my iDevices (Push is listed on my iPhone and iPad and Mac) but for caldav and carddav my caldavd error.logs are throwing error messages like this if I access iCal or addressbook via Mac or iDevice (no Push available on iPhone or iPad neither on my Mac).

 

Those for caldav

 

2011-09-23 11:29:18+0200 [-] [caldav-0]  [-] [twistedcaldav.notify.Notifier#warn] Could not create node /CalDAV/myserver.fqdn/FEF253F7-9A6C-4242-A990-88960832BF5F/

2011-09-23 11:29:18+0200 [-] [notifications] 2011-09-23 11:29:18+0200 [XmlStream,client] [twistedcaldav.notify.XMPPNotifier#error] PubSub node configuration error: <error code='403' type='auth'><forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error>

2011-09-23 11:29:18+0200 [-] [notifications] 2011-09-23 11:29:18+0200 [XmlStream,client] [twistedcaldav.notify.XMPPNotifier#error] PubSub node configuration error: <error code='403' type='auth'><forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error>

 

and those for carddav

 

2011-09-23 11:24:35+0200 [-] [caldav-1]  [-] [twistedcaldav.notify.Notifier#warn] Could not create node /CardDAV/myserver.fqdn/FEF253F7-9A6C-4242-A990-88960832BF5F/

2011-09-23 11:24:35+0200 [-] [notifications] 2011-09-23 11:24:35+0200 [XmlStream,client] [twistedcaldav.notify.XMPPNotifier#error] PubSub node configuration error: <error code='403' type='auth'><forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error>

2011-09-23 11:24:35+0200 [-] [notifications] 2011-09-23 11:24:35+0200 [XmlStream,client] [twistedcaldav.notify.XMPPNotifier#error] PubSub node configuration error: <error code='403' type='auth'><forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error>

 

I tried several thing (changing serveradmin settings, plist and other configuration files, checking passwords, renew apple push certificates etc.) but that changed nothing, so if one got those push services running correctly I would appreciate if one could share his configuration so I can compare it with mine.

 

I think those files and output are interesting for the configuration, if some other files are important please note them.

 

If one feel afraid to post his configuration for security reasons etc. please ask for my email address

 

Output of terminal command:

 

sudo serveradmin settings calendar

 

sudo serveradmin settings addressbook

 

sudo serveradmin settings notification

 

sudo serveradmin jabber

 

plist and other configuration files of interest

 

/etc/caldavd/caldavd.plist

/etc/jabberd/*

/etc/jabberd_notification/*

 

Best regards,

Eldrik

  • ajvankesteren Calculating status...

    I too have consistent problems with CalDAV and CardDAV after upgrading to Lion and Lion server - calendar entries do not get pushed / synced to iPhones (but they do get synced with 'desktop' calendar apps within my LAN), and don't even get me started on Addressbook sync...

  • pandine Calculating status...

    Same problem here ... did you come to a solution?

     

    Regards,

    Thomas

  • pandine Level 1 Level 1 (10 points)

    Yes that's exactly what I find out today. May be Mac OS 10.7.2 will bring a solution.

    Thank you for your feedback.

     

    Regards,

    Thomas

  • Mellified Man Calculating status...

    According to Apple (http://support.apple.com/kb/HT3947) push notifications for CalDAV and CardDAV should be working with iOS 5. It doesn't work for me with 10.7.2. Email works fine.

  • Draekz Calculating status...

    So far I have gone through the first three levels of support at Apple, and none of them have any ideas why it doesn't work. We'll see if Engineering level can help:

     

    It's a simple brand new setup of all Mac products, and it doesn't work whatsoever (push that is):

     

    1 x Mac Mini 2011 - > Ethernet to Router

    2 x MacBook Pro Mid 2010 -> WiFi to Router

    2 x iPad 2 -> WiFi to Router

     

    All devices are brand new, all clean installs. All services work, mail Push works, however CardDAV and CalDAV Push does not work whatsoever in any way.

     

    All devices mush FETCH calendar and address book data to see updates, invitations do not work.

  • ~morgen Level 1 Level 1 (105 points)

    This error...  <error code='403' type='auth'><forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error> ...looks like the XMPP notification server is not allowing the calendar server's XMPP account (or "JID") to create/configure pubsub nodes.  The XMPP notification server keeps a list of privileged JIDs in /Library/Preferences/com.apple.NotificationServer.plist.

     

    First, check to see that calendar server is configured to use the "com.apple.notificationuser@<your hostname>" account by running this command in terminal:

     

    sudo serveradmin settings calendar:Notifications:Services:XMPPNotifier:JID

     

    You should see something like:

     

    calendar:Notifications:Services:XMPPNotifier:JID = "com.apple.notificationuser@example.com"

     

    Next, see who is in the notification server's "privileged users" list via:

     

    serveradmin settings notification:privilegedUsers

     

    You should see something like:

     

    notification:privilegedUsers:_array_index:0 = "_notification_user"

    notification:privilegedUsers:_array_index:1 = "com.apple.notificationuser"

     

    If you don't see "com.apple.notificationuser", you'll need to edit /Library/Preferences/com.apple.NotificationServer.plist and add it to the "privilegedUsers" array like:

     

      ...

      <key>privilegedUsers</key>

              <array>

         <string>_notification_user</string>

         <string>com.apple.notificationuser</string>

              </array>

      ...

     

    Then I would recommend rebooting the server so that you are sure the notification server is restarted and re-reads the plist.

  • pandine Level 1 Level 1 (10 points)

    Hi both checked:

     

    macminiserver:~ Administrator$ sudo serveradmin settings calendar:Notifications:Services:XMPPNotifier:JID

    Password:

    calendar:Notifications:Services:XMPPNotifier:JID = "com.apple.notificationuser@xxxxxxxxx.xxx"

     

    macminiserver:~ Administrator$ sudo serveradmin settings notification:privilegedUsers

    notification:privilegedUsers:_array_index:0 = "_notification_user"

    notification:privilegedUsers:_array_index:1 = "com.apple.notificationuser"

     

    Everything is ok ... but no push for CadDAV and CardDAV.

     

    Regards,

    Thomas

  • ~morgen Level 1 Level 1 (105 points)

    Are you still seeing these in /var/log/caldavd/error.log?

     

    <error code='403' type='auth'><forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error>

     

    ...or is there a different symptom?

  • pandine Level 1 Level 1 (10 points)

    Sorry ... No - I don't see that message in my server's log. I cannot identify any message belonging to that push-problem. Is it working in your environment?

  • ~morgen Level 1 Level 1 (105 points)

    Oh, I thought you were the original poster responding.  So, pandine, one thing to try to narrow down the problem is to run the calendarserver_monitor_notifications command on your server.  That command knows how to subscribe to XMPP push notifications and will display a message whenever it sees a push.  For example, say your username is "pandine", run it as:

     

    sudo calendarserver_monitor_notifications pandine

     

    It will prompt you for your password, and then it will talk to the calendar server to determine which pubsub node(s) to subscribe to.  Next it will subscribe to those node(s) by talking to the local XMPP notification server.

     

    Once calendarserver_monitor_notifications is listening for notifications on the "pandine" account, use iCal to make a change in oen of pandine's calendars.  Within a few seconds you should see a message...

     

    sudo calendarserver_monitor_notifications pandine

    Password for pandine:

    Subscribing to "pandine" (Calendar home)

    OK

    Awaiting notifications (hit Control-C to end)

    2011-10-23 14:05:22 | Notification for "pandine" (Calendar home)

     

    If you see messages like that, then you have verified that the calendar server is able to talk to the XMPP notification server and is properly advertising that functionality to calendar clients.  Let me know what you see and we'll debug further.

  • pandine Level 1 Level 1 (10 points)

    Thank you for your help.

     

    It seems to work ...

     

    macminiserver:~ Administrator$ sudo calendarserver_monitor_notifications thomas.langenkamp

    Password:

    Password for thomas.langenkamp:

    Subscribing to "Thomas Langenkamp" (AddressBook home)

    OK

    Subscribing to "Thomas Langenkamp" (Calendar home)

    OK

    Awaiting notifications (hit Control-C to end)

    2011-10-23 23:16:11 | Notification for "Thomas Langenkamp" (Calendar home)

    2011-10-23 23:16:52 | Notification for "Thomas Langenkamp" (Calendar home)

    2011-10-23 23:17:01 | Notification for "Thomas Langenkamp" (Calendar home)

    2011-10-23 23:18:19 | Notification for "Thomas Langenkamp" (AddressBook home)

     

    Any other idea?

     

    Regards,

    Thomas

  • ~morgen Level 1 Level 1 (105 points)

    Ok, so we know XMPP works at the server level.  I assume now that your clients aren't seeing any updates. Which clients (and specific versions) are you using?

  • pandine Level 1 Level 1 (10 points)

    I use iPhone 4 with iOS5, iPad-2 with iOS5 and MacOS 10.7.2. The iOS devices show the "Push"-Option only for Mail which is working perfectly. Now, when I create a new you appointment in iCal on my mac, iCal on the iPad isn't pushed.

1 2 3 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (8)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.