iCal Service fails to launch, gets stuck
Hello all,
Having a strange issue with a client. We recently had to replace an external storage drive for their Mac Pro running 10.8 Server. Everything seems to have come back fine besides the Calendar / Contact services. The Server app tells me that the service is switched on; however, terminal tells me that the process is stuck starting:
vpn:Data admin$ sudo serveradmin fullstatus calendar
calendar:setStateVersion = 1
calendar:logPaths:LogFile = "/var/log/caldavd/access.log"
calendar:logPaths:ErrorLog = "/var/log/caldavd/error.log"
calendar:state = "STARTING"
calendar:servicePortsAreRestricted = "NO"
calendar:servicePortsRestrictionInfo = _empty_array
calendar:readWriteSettingsVersion = 1
---
The log files for the calendar service are as follows:
2013-09-24 15:00:50-0400 [-] Received SIGTERM, shutting down.
2013-09-24 15:00:50-0400 [-] (UNIX Port '/var/run/caldavd/caldavd.sock' Closed)
2013-09-24 15:00:50-0400 [-] Main loop terminated.
2013-09-24 15:00:50-0400 [-] Server Shut Down.
2013-09-24 15:00:54-0400 [-] Log opened.
2013-09-24 15:00:54-0400 [-] twistd 12.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.2) starting up.
2013-09-24 15:00:54-0400 [-] reactor class: twext.internet.kqreactor.KQueueReactor.
2013-09-24 15:00:54-0400 [-] ControlSocket starting on '/var/run/caldavd/caldavd.sock'
2013-09-24 15:00:54-0400 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Beginning database schema check.
2013-09-24 15:00:54-0400 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Required database key VERSION: 12.
2013-09-24 15:00:54-0400 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Actual database key VERSION: 12.
2013-09-24 15:00:54-0400 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Schema version check complete: no upgrade needed.
2013-09-24 15:00:54-0400 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Database schema check complete.
2013-09-24 15:00:54-0400 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Beginning database data check.
2013-09-24 15:00:54-0400 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Required database key CALENDAR-DATAVERSION: 3.
2013-09-24 15:00:54-0400 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Actual database key CALENDAR-DATAVERSION: 3.
2013-09-24 15:00:54-0400 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Data version check complete: no upgrade needed.
2013-09-24 15:00:54-0400 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Database data check complete.
2013-09-24 15:00:54-0400 [PooledMemCacheProtocol,client] Unhandled error in Deferred:
2013-09-24 15:00:54-0400 [PooledMemCacheProtocol,client] Unhandled Error
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 397, in errback
self._startRunCallbacks(fail)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 464, in _startRunCallbacks
self._runCallbacks()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 551, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 1101, in gotResult
_inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 1043, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/failure.py", line 382, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twis tedcaldav/upgrade.py", line 1053, in startService
yield updater.updateCache(fast=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/defer.py", line 1045, in _inlineCallbacks
result = g.send(result)
File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twis tedcaldav/directory/directory.py", line 735, in updateCache
previousMembers = pickle.loads(membershipsCacheFile.getContent())
exceptions.EOFError:
I have tried to restart the process / restore from a backup copy of the /Contacts and Calendars/Data folder and I continually get this issue. Any help would be greatly appreciated
Thank you
Mac Pro, OS X Mountain Lion (10.8.5)