Q: Error while parsing config CalendarServer
Hello-
Ive recently upgraded to 10.11.4 and Server 5.1 from Server 4.x. The calendar service is not running properly, as seen in the console log:
Mar 31 02:26:54 calendar com.apple.xpc.launchd[1] (org.calendarserver.agent): Service only ran for 0 seconds. Pushing respawn out by 10 seconds
Looking at the /Library/Server/Calendar and Contacts/Logs/servermgr_calendar.log, I see:
[cal] 3/31/16, 2:24:30 AM PDT : Read Settings
[cal] 3/31/16, 2:24:30 AM PDT : Asking calendarserver_config for a readConfig
[cal] 3/31/16, 2:24:32 AM PDT : Returned from calendarserver_config
[cal] 3/31/16, 2:24:32 AM PDT : StandardError returned from config utility:
Traceback (most recent call last):
File "/Applications/Server.app/Contents/ServerRoot/usr/sbin/calendarserver_config", line 12, in <module>
load_entry_point('CalendarServer==8.0a1+unknown', 'console_scripts', 'calendarserver_config')()
File "/Applications/Server.app/Contents/ServerRoot/Library/CalendarServer/lib/python 2.7/site-packages/calendarserver/tools/config.py", line 196, in main
config.load(configFileName)
File "/Applications/Server.app/Contents/ServerRoot/Library/CalendarServer/lib/python 2.7/site-packages/twistedcaldav/config.py", line 273, in load
self.update(configDict)
File "/Applications/Server.app/Contents/ServerRoot/Library/CalendarServer/lib/python 2.7/site-packages/twistedcaldav/config.py", line 262, in update
hook(self._data, reloading=reloading)
File "/Applications/Server.app/Contents/ServerRoot/Library/CalendarServer/lib/python 2.7/site-packages/twistedcaldav/stdconfig.py", line 1640, in _updateLogLevels
for namespace, levelName in configDict["LogLevels"].iteritems():
AttributeError: 'str' object has no attribute 'iteritems'
[cal] 3/31/16, 2:24:32 AM PDT : Error while parsing calendarserver_config output
Error Domain=NSCocoaErrorDomain Code=3840 "Cannot parse a NULL or zero-length data" UserInfo={NSDebugDescription=Cannot parse a NULL or zero-length data}
[cal] 3/31/16, 2:24:32 AM PDT : Could not get settings from calendarserver_config
So I edited out the "LogLevels" key and string from the /Library/Server/Calendar and Contacts/Config/caldavd-system.plist and tried to start the service to no avail. It does properly read the settings now, but I see this error:
[cal] 3/31/16, 2:32:19 AM PDT : Error configuring reverse proxies
[cal] 3/31/16, 2:32:19 AM PDT : Error:
Traceback (most recent call last):
File "/Applications/Server.app/Contents/ServerRoot/usr/libexec/calendarserver_revers e_proxies", line 151, in <module>
main()
File "/Applications/Server.app/Contents/ServerRoot/usr/libexec/calendarserver_revers e_proxies", line 83, in main
enableCalDAV = keys["EnableCalDAV"] == "True"
KeyError: 'EnableCalDAV'
[cal] 3/31/16, 2:32:19 AM PDT : Output:
Error from calendarserver_config: 1, Traceback (most recent call last):
File "/Applications/Server.app/Contents/ServerRoot/usr/sbin/calendarserver_config", line 8, in <module>
from pkg_resources import load_entry_point
File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py ", line 2815, in <module>
working_set.require(__requires__)
File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py ", line 690, in require
needed = self.resolve(parse_requirements(requirements))
File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py ", line 560, in resolve
requirements = list(requirements)[::-1] # set up the stack
File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py ", line 2615, in parse_requirements
line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
File "/Library/Python/2.7/site-packages/distribute-0.6.28-py2.7.egg/pkg_resources.py ", line 2593, in scan_list
"Expected ',' or end-of-list in",line,"at",line[p:]
ValueError: ("Expected ',' or end-of-list in", 'CalendarServer==8.0a1+unknown', 'at', '+unknown')
And at this point Im stuck. It doesnt help that I dont know the proper settings for the LogLevels, as that may be helpful. Searching for examples of the config doesnt reveal any array or dictionary entries (which I believe thats what the python code is expecting).
I do see that postfix is unable to start, which may or may not be related:
Mar 31 02:35:05 calendar com.apple.xpc.launchd[1] (org.postfix.master.passive[4210]): Service exited with abnormal code: 1
Mar 31 02:35:05 calendar com.apple.xpc.launchd[1] (org.postfix.master.passive): Service only ran for 1 seconds. Pushing respawn out by 9 seconds.
Any Ideas?
Mac Pro (Late 2013), OS X El Capitan (10.11.4)
Posted on Mar 31, 2016 2:39 AM