problem with iPhone 5/iOS 6.1.3
Greetings all, I'm running a truly ancient version of Darwin CalendarServer (I honestly don't even know what version, but it's from ~January 2008) on an equally ancient iMac G5 running Mac OS X 10.5.8. This setup has been working perfectly for all of my clients since then, with the current crop being iCal on Mac OS X 10.6, 10.7, and 10.8 machines as well as my iPhone 4S which was running iOS 6 and is now running iOS 7. The only client that is not cooperating is an iPhone 5 running iOS 6.1.3. When it adds the CalDAV account and tries to load the calendars, I get a whole bunch of log messages in access.log and error.log that look like this: ============= 66.245.68.154 - ical [02/Oct/2013:21:29:59 -0500] "PROPFIND /calendars/users/ical/5A131DBC-7199-4BF7-906F-010C1DE00ADC/ HTTP/1.1" 207 518 "-" "iOS/6.1.3 (10B329) dataaccessd/1.0" [83.1 ms] 2013-10-02 21:29:59-0500 [-] [caldav-8008] [HTTPChannel,17,66.245.68.154] REPORT /calendars/users/ical/5A131DBC-7199-4BF7-906F-010C1DE00ADC/ HTTP/1.1 2013-10-02 21:29:59-0500 [-] [caldav-8008] [-] Exception rendering: 2013-10-02 21:29:59-0500 [-] [caldav-8008] [-] Unhandled Error 2013-10-02 21:29:59-0500 [-] [caldav-8008] Traceback (most recent call last): 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/Twisted/twisted/internet/defer.py", line 239, in callback 2013-10-02 21:29:59-0500 [-] [caldav-8008] self._startRunCallbacks(result) 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/Twisted/twisted/internet/defer.py", line 304, in _startRunCallbacks 2013-10-02 21:29:59-0500 [-] [caldav-8008] self._runCallbacks() 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/Twisted/twisted/internet/defer.py", line 317, in _runCallbacks 2013-10-02 21:29:59-0500 [-] [caldav-8008] self.result = callback(self.result, *args, **kw) 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/Twisted/twisted/internet/defer.py", line 601, in gotResult 2013-10-02 21:29:59-0500 [-] [caldav-8008] _deferGenerator(g, deferred) 2013-10-02 21:29:59-0500 [-] [caldav-8008] --- <exception caught here> --- 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/Twisted/twisted/internet/defer.py", line 576, in _deferGenerator 2013-10-02 21:29:59-0500 [-] [caldav-8008] result = g.next() 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/CalendarServer/twistedcaldav/method/report.py", line 62, in http_REPORT 2013-10-02 21:29:59-0500 [-] [caldav-8008] doc = doc.getResult() 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/Twisted/twisted/internet/defer.py", line 555, in getResult 2013-10-02 21:29:59-0500 [-] [caldav-8008] self.result.raiseException() 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/Twisted/twisted/internet/defer.py", line 317, in _runCallbacks 2013-10-02 21:29:59-0500 [-] [caldav-8008] self.result = callback(self.result, *args, **kw) 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/Twisted/twisted/web2/dav/util.py", line 66, in gotAllData 2013-10-02 21:29:59-0500 [-] [caldav-8008] return filter(result) 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/Twisted/twisted/web2/dav/util.py", line 79, in parse 2013-10-02 21:29:59-0500 [-] [caldav-8008] doc = davxml.WebDAVDocument.fromString(xml) 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/Twisted/twisted/web2/dav/element/parser.py", line 223, in parse 2013-10-02 21:29:59-0500 [-] [caldav-8008] parser.parse(source) 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xml/sax/expatreader.py", line 107, in parse 2013-10-02 21:29:59-0500 [-] [caldav-8008] xmlreader.IncrementalParser.parse(self, source) 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xml/sax/xmlreader.py", line 123, in parse 2013-10-02 21:29:59-0500 [-] [caldav-8008] self.feed(buffer) 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xml/sax/expatreader.py", line 207, in feed 2013-10-02 21:29:59-0500 [-] [caldav-8008] self._parser.Parse(data, isFinal) 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xml/sax/expatreader.py", line 349, in end_element_ns 2013-10-02 21:29:59-0500 [-] [caldav-8008] self._cont_handler.endElementNS(pair, None) 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/Twisted/twisted/web2/dav/element/parser.py", line 178, in endElementNS 2013-10-02 21:29:59-0500 [-] [caldav-8008] element = top["class"](*top["children"], **top["attributes"]) 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/CalendarServer/twistedcaldav/caldavxml.py", line 1187, in __init__ 2013-10-02 21:29:59-0500 [-] [caldav-8008] super(TimeRange, self).__init__(*children, **attributes) 2013-10-02 21:29:59-0500 [-] [caldav-8008] File "/Library/CalendarServer/twistedcaldav/caldavxml.py", line 85, in __init__ 2013-10-02 21:29:59-0500 [-] [caldav-8008] self.end = parse_date_or_datetime(attributes["end" ]) 2013-10-02 21:29:59-0500 [-] [caldav-8008] exceptions.KeyError: 'end' 2013-10-02 21:29:59-0500 [-] [caldav-8008] =============== I have no idea what is different about this client compared to all of the others. Does anyone want to offer any troubleshooting advice other than to upgrade? :):) Thanks in advance!! -- Julian Y. Koh Acting Associate Director, Telecommunications and Network Services Northwestern University Information Technology (NUIT) 2001 Sheridan Road #G-166 Evanston, IL 60208 847-467-5780 NUIT Web Site: <http://www.it.northwestern.edu/> PGP Public Key:<http://bt.ittns.northwestern.edu/julian/pgppubkey.html>
On Oct 2, 2013, at 21:34 , Julian Y Koh <kohster@northwestern.edu> wrote:
I have no idea what is different about this client compared to all of the others. Does anyone want to offer any troubleshooting advice other than to upgrade? :):)
Just for completeness, here are things I've done: 1.) Restarted CalendarServer (./run -k, ./run -d) 2.) Rebooted iMac 3.) Rebooted iPhone 4.) Deleted CalDAV account on iPhone, rebooted iPhone, recreated CalDAV account I'm quite sure that I'm entering all the credentials correctly since the list of calendars appears on the phone, but no events ever show up on the phone at all. -- Julian Y. Koh Acting Associate Director, Telecommunications and Network Services Northwestern University Information Technology (NUIT) 2001 Sheridan Road #G-166 Evanston, IL 60208 847-467-5780 NUIT Web Site: <http://www.it.northwestern.edu/> PGP Public Key:<http://bt.ittns.northwestern.edu/julian/pgppubkey.html>
Hi Julian, --On October 3, 2013 at 2:44:15 AM +0000 Julian Y Koh <kohster@northwestern.edu> wrote:
I have no idea what is different about this client compared to all of the others. Does anyone want to offer any troubleshooting advice other than to upgrade? :):)
Just for completeness, here are things I've done:
1.) Restarted CalendarServer (./run -k, ./run -d) 2.) Rebooted iMac 3.) Rebooted iPhone 4.) Deleted CalDAV account on iPhone, rebooted iPhone, recreated CalDAV account
I'm quite sure that I'm entering all the credentials correctly since the list of calendars appears on the phone, but no events ever show up on the phone at all.
You need to upgrade the server - the one you have has a bug in it were it does not support time-range queries without an "end" parameter - something that iOS does. -- Cyrus Daboo
On Oct 4, 2013, at 14:23 , Cyrus Daboo <cdaboo@apple.com> wrote:
You need to upgrade the server - the one you have has a bug in it were it does not support time-range queries without an "end" parameter - something that iOS does.
Ah hah!!!! Thanks so much! Based on this I dug deep into the settings and found that the iPhone 5 was configured to only sync events within the past month, whereas the 4S was configured to sync all events. Now all is well again! I know I need to upgrade. Both hardware and software. :):) Thanks again!!!!!! -- Julian Y. Koh Acting Associate Director, Telecommunications and Network Services Northwestern University Information Technology (NUIT) 2001 Sheridan Road #G-166 Evanston, IL 60208 847-467-5780 NUIT Web Site: <http://www.it.northwestern.edu/> PGP Public Key:<http://bt.ittns.northwestern.edu/julian/pgppubkey.html>
participants (2)
-
Cyrus Daboo
-
Julian Y Koh