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

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

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

Posted on Sep 23, 2011 2:58 AM

Reply
37 replies

Oct 23, 2011 8:55 AM in response to Mellified Man

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.

Oct 23, 2011 1:21 PM in response to eldrik

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.

Oct 23, 2011 1:30 PM in response to _morgen__

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

Oct 23, 2011 2:10 PM in response to pandine

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.

Oct 23, 2011 2:20 PM in response to _morgen__

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

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

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