Cannot connect to calendar or addressbook server HTTPChannel unhandled error
Experiencing the dread OS X server 3.2.1 upgrade death. I reinitialized the postgres DB and it finally started, but Calendar and Addressbook appear corrupted. I've given up on trying to recover data, I just want the two services reinitialized.
I tried moving /Library/Server/Calendar and Contacts/ out of the way and restarting. That seemed to help, but I still can't connect to it, including on the web port directly.
The error I see in /var/log/caldavd/error.log is: (And no, I don't know Python well enough to trace through the program from this error):
2014-09-19 18:21:14-0700 [-] [caldav-1] [HTTPChannel,3,192.168.1.250] Unhandled Error
2014-09-19 18:21:14-0700 [-] [caldav-1] Traceback (most recent call last):
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext
2014-09-19 18:21:14-0700 [-] [caldav-1] return func(*args,**kw)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/fswatch.py", line 69, in _doWriteOrReadOrVNodeEvent
2014-09-19 18:21:14-0700 [-] [caldav-1] origDoWriteOrRead(selectable, fd, event)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/kqreactor.py", line 291, in _doWriteOrRead
2014-09-19 18:21:14-0700 [-] [caldav-1] self._disconnectSelectable(selectable, why, inRead)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/posixbase.py", line 258, in _disconnectSelectable
2014-09-19 18:21:14-0700 [-] [caldav-1] selectable.readConnectionLost(f)
2014-09-19 18:21:14-0700 [-] [caldav-1] --- <exception caught here> ---
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/tcp.py", line 262, in readConnectionLost
2014-09-19 18:21:14-0700 [-] [caldav-1] p.readConnectionLost()
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/channel/http.py", line 919, in readConnectionLost
2014-09-19 18:21:14-0700 [-] [caldav-1] self.transport.loseConnection()
2014-09-19 18:21:14-0700 [-] [caldav-1] exceptions.AttributeError: 'NoneType' object has no attribute 'loseConnection'
2014-09-19 18:21:14-0700 [-] [caldav-1]
2014-09-19 18:21:14-0700 [-] [caldav-1] [HTTPChannel,3,192.168.1.250] Unhandled Error
2014-09-19 18:21:14-0700 [-] [caldav-1] Traceback (most recent call last):
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/application/app.py", line 323, in runReactorWithLogging
2014-09-19 18:21:14-0700 [-] [caldav-1] reactor.run()
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/base.py", line 1169, in run
2014-09-19 18:21:14-0700 [-] [caldav-1] self.mainLoop()
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/base.py", line 1181, in mainLoop
2014-09-19 18:21:14-0700 [-] [caldav-1] self.doIteration(t)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/kqreactor.py", line 256, in doKEvent
2014-09-19 18:21:14-0700 [-] [caldav-1] log.callWithLogger(selectable, _drdw, selectable, fd, event)
2014-09-19 18:21:14-0700 [-] [caldav-1] --- <exception caught here> ---
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 84, in callWithLogger
2014-09-19 18:21:14-0700 [-] [caldav-1] return callWithContext({"system": lp}, func, *args, **kw)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 69, in callWithContext
2014-09-19 18:21:14-0700 [-] [caldav-1] return context.call({ILogContext: newCtx}, func, *args, **kw)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext
2014-09-19 18:21:14-0700 [-] [caldav-1] return self.currentContext().callWithContext(ctx, func, *args, **kw)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext
2014-09-19 18:21:14-0700 [-] [caldav-1] return func(*args,**kw)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/fswatch.py", line 69, in _doWriteOrReadOrVNodeEvent
2014-09-19 18:21:14-0700 [-] [caldav-1] origDoWriteOrRead(selectable, fd, event)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/kqreactor.py", line 291, in _doWriteOrRead
2014-09-19 18:21:14-0700 [-] [caldav-1] self._disconnectSelectable(selectable, why, inRead)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/posixbase.py", line 258, in _disconnectSelectable
2014-09-19 18:21:14-0700 [-] [caldav-1] selectable.readConnectionLost(f)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/tcp.py", line 265, in readConnectionLost
2014-09-19 18:21:14-0700 [-] [caldav-1] self.connectionLost(failure.Failure())
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/tcp.py", line 287, in connectionLost
2014-09-19 18:21:14-0700 [-] [caldav-1] protocol.connectionLost(reason)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/channel/http.py", line 927, in connectionLost
2014-09-19 18:21:14-0700 [-] [caldav-1] self.factory.removeConnectedChannel(self)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/metafd.py", line 161, in removeConnectedChannel
2014-09-19 18:21:14-0700 [-] [caldav-1] HTTPFactory.removeConnectedChannel(self, channel)
2014-09-19 18:21:14-0700 [-] [caldav-1] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/channel/http.py", line 1004, in removeConnectedChannel
2014-09-19 18:21:14-0700 [-] [caldav-1] self.connectedChannels.remove(channel)
2014-09-19 18:21:14-0700 [-] [caldav-1] exceptions.KeyError: <twext.web2.channel.http.HTTPChannel object at 0x107b2cb10>
2014-09-19 18:21:14-0700 [-] [caldav-1]
Mac mini, OS X Mavericks (10.9.5), OS X Server 3.2.1