Apple Event: May 7th at 7 am PT

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 3:37 PM in response to pandine

Ok, so next step is to see if calendar server is correctly advertising to the clients that APNS is supported. Point your web browser directly at your calendar server's port, which is either 8008 if SSL is off or 8443 if SSL is on. Append /calendars/users/pandine/ to the URL (replacing "pandine" with an actual username of course) to view the web page corresponding to that user's "calendar home". Search for "push" within the page and you should see something like:


{http://calendarserver.org/ns/}push-transports


<?xml version='1.0' encoding='UTF-8'?>

<push-transports xmlns='http://calendarserver.org/ns/'>

<transport type='APSD'>

<subscription-url>

<href xmlns='DAV:'>http://example.com:8080/subscription</href>

</subscription-url>

<apsbundleid>com.apple.calendar.XServer.def5188c-3ee4-2c91-1015-b0a034d33778</a psbundleid> </transport>

<transport type='XMPP'>

<xmpp-server>example.com:5218</xmpp-server>

<xmpp-uri>xmpp:pubsub.example.com?pubsub;node=/CalDAV/example.com/3D6241DC-5981 -4D87-9B71-672203E81ACB/</xmpp-uri>

</transport>

</push-transports>


If you see the transport type='APSD' section, complete with subscription-url and apsbundleid, then APNS would appear to be properly advertised. That information is used by the client to subscribe to APNS notifications.

Oct 23, 2011 4:59 PM in response to pandine

Once I too opened 8080, I started getting push information to the iOS devices as well, but it still only partially works.. Unless I'm confused about how the service is supposed to work.


If i have the iPad on one side, and the macbook on the other side, both have 2 seperate accounts on them. If i invite one person to a meeting, the other gets the meeting in his calendar, but there is no "Invitation" at the top. There are no popups, just the actual meeting shows up as a gray unaccepted meeting.


Is this right?

Oct 23, 2011 5:35 PM in response to Community User

Spoke too soon. After removing all Profiles from all devices, then rebooting them and the server, un-checkeing the APNS and re-checking it back in, then re-adding all services, everything started to work perfectly!


Thanks for your help morgen, even if it wasn't for me 😝

Oct 24, 2011 1:40 AM in response to _morgen__

Hi,


i am glad that thigs got sorted out after starting this thread.


Special thanks to ~morgen!


On my site port 8080 also was not opend on my firewall.

My calendar and addressbook settings on my iOS5 devices still displays "fetch" but changes are now pushed immediatly to my calendar (addressbook not tested jet).


@~morgen so you got firewall enabled via server admin and enabled it also via the System Preferences?


On my server I have only enabled the firewall accessible through server admin and not via System Preferences because I didnt no that the option under System Preferences got any effect and I also do not get the benefit of enabling it! Could you please point out the benefit?


Regards

Eldrik

Feb 27, 2012 9:25 AM in response to mightymartin

Well, let's start with whether calendar server has been instructed to enable push. Run this command in Terminal:


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


You should see:


calendar:Notifications:Services:XMPPNotifier:Enabled = yes


Next, let's see if the XMPP (Jabber) notification daemon is up by running this command in Terminal:


ps aux | grep jabberd_notification


You should see things like:


_jabber 147 0.0 0.1 2449564 6032 ?? S Tue08PM 0:04.01 /usr/libexec/jabberd/s2s -c /etc/jabberd_notification/s2s.xml

_jabber 146 0.0 0.1 2449536 6036 ?? S Tue08PM 0:04.87 /usr/libexec/jabberd/c2s -c /etc/jabberd_notification/c2s.xml

_jabber 144 0.0 0.1 2437464 5308 ?? S Tue08PM 0:03.30 /usr/libexec/jabberd/router -c /etc/jabberd_notification/router.xml

_jabber 143 0.0 0.2 2450116 6316 ?? S Tue08PM 0:03.48 /usr/libexec/jabberd/sm -c /etc/jabberd_notification/sm.xml

_jabber 67 0.0 0.1 2438536 4376 ?? Ss Tue08PM 0:00.07 perl -w -x /usr/libexec/jabberd/jabberd -c /etc/jabberd_notification/jabberd.cfg

root 25427 0.0 0.0 2425480 184 s002 R+ 9:23AM 0:00.00 egrep jabberd_notification

Feb 27, 2012 12:48 PM in response to _morgen__

Ok, I get:

calendar:Notifications:Services:XMPPNotifier:Enabled = yes


and:


_jabber 83404 0.0 0.1 2450900 6024 ?? S 5:44PM 0:01.87 /usr/libexec/jabberd/s2s -c /etc/jabberd_notification/s2s.xml
_jabber 83403 0.0 0.1 2450872 6100 ?? S 5:44PM 0:01.81 /usr/libexec/jabberd/c2s -c /etc/jabberd_notification/c2s.xml
_jabber 83402 0.0 0.1 2437464 5300 ?? S 5:44PM 0:00.07 /usr/libexec/jabberd/router -c /etc/jabberd_notification/router.xml
_jabber 83401 0.0 0.2 2451356 6368 ?? S 5:44PM 0:01.91 /usr/libexec/jabberd/sm -c /etc/jabberd_notification/sm.xml
_jabber 83398 0.0 0.1 2438536 4392 ?? Ss5:44PM 0:00.07 perl -w -x /usr/libexec/jabberd/jabberd -c /etc/jabberd_notification/jabberd.cfg
administrator 86292 0.0 0.0 2434892444 s000 S+8:42PM 0:00.00 grep jabberd_notification



Looks pretty much like yours...

Feb 28, 2012 10:44 AM in response to mightymartin

Ok, now do calendar server and notification server agree on the XMPP port #...


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


...should give you something like 5218


Now see if jabberd_notification is listening on that port and whether there is an established connect between calendar and notification, e.g.


sudo lsof -Pi | grep 5218


c2s 146 _jabber 7u IPv6 0xffffff800becf440 0t0 TCP *:5218 (LISTEN)

c2s 146 _jabber 8u IPv6 0xffffff800e52fe80 0t0 TCP example.com:5218->example.com:49188 (ESTABLISHED)

Python 267 _calendar 7u IPv4 0xffffff800f874500 0t0 TCP example.com:49188->example.com:5218 (ESTABLISHED)


Also, check /var/log/caldavd/error.log for any notification error messages.

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.