If I do your questions on my system, this is the out of your various questions. I eliminated repetitive stuff and things clearly not connected with the issue
significant Output from: grep CalDAV /var/log/system.log (there are many repetitions for this, only one copied. As bsibrandon mentions, the complete message term does not yield anything. Strictly speaking I use the iCAL client on the server itself, but the output on the client is sort of identical)
Oct 20 20:38:47 SharkServer iCal[1462]: Account refresh failed with error: Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo=0x10b3e7600 {NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=https://Shared@sharkserver.local:8443/principals/__uids__/88DAB90C-BD13-430D-BD5 3-640295033DF9/, NSErrorFailingURLKey=https://Shared@sharkserver.local:8443/principals/__uids__/88DAB90C-BD13-430D-BD5 3-640295033DF9/, AccountName=Familienkalender, CalDAVErrFromRefresh=YES, NSUnderlyingError=0x7fd7d3c22ce0 "Could not connect to the server."}
significant output from: grep webcal /var/log/caldavd/server*
[cal] 10/20/11 8:11:32 PM GMT+02:00 : setWebAppState setting com.apple.webapp.webcalssl to STOP
[cal] 10/20/11 8:11:37 PM GMT+02:00 : setWebAppState setting com.apple.webapp.webcal to STOP
[cal] 10/20/11 8:15:38 PM GMT+02:00 : setWebAppState setting com.apple.webapp.webcal to STOP
[cal] 10/20/11 8:15:39 PM GMT+02:00 : setWebAppState setting com.apple.webapp.webcalssl to START
significant output from: cat /var/log/caldavd/error.log (first entry after server boot, no client interaction. Server can be stopped, log deleted, same error log is created while still stopped. Starting and connecting the server local iCal Client Calendar does not change anything, the repetition part below is just repeated, the caldav server start is listed below the repetition part)
2011-10-20 19:59:39+0200 [-] Log opened.
2011-10-20 19:59:39+0200 [-] twistd 11.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.1) starting up.
2011-10-20 19:59:39+0200 [-] reactor class: twext.internet.kqreactor.KQueueReactor.
2011-10-20 19:59:39+0200 [-] calendarserver.accesslog.AMPLoggingFactory starting on "'/var/run/caldavd/caldavd.sock'"
2011-10-20 19:59:39+0200 [-] calendarserver.tap.caldav.CalDAVStatisticsServer starting on "'/var/run/caldavd-stats.sock'"
2011-10-20 19:59:39+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Beginning database schema check.
2011-10-20 19:59:39+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Required schema version: 3.
2011-10-20 19:59:39+0200 [-] Re-trying connection due to connection failure
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/share/caldavd/lib/python/twext/internet/threadutils.py", line 49, in _run
work = self._q.get()
File "/usr/share/caldavd/lib/python/twext/internet/threadutils.py", line 72, in _oneWorkUnit
self._reactor.callFromThread(deferred.callback, result)
--- <exception caught here> ---
File "/usr/share/caldavd/lib/python/twext/internet/threadutils.py", line 64, in _oneWorkUnit
result = instruction()
File "/usr/share/caldavd/lib/python/twext/enterprise/adbapi2.py", line 806, in initCursor
connection = self.connectionFactory()
File "/usr/share/caldavd/lib/python/txdav/base/datastore/dbapiclient.py", line 196, in connect
connection = self.dbModule.connect(*self.connectArgs, **self.connectKw)
File "/usr/share/caldavd/lib/python/pgdb.py", line 482, in connect
dbtty, dbuser, dbpasswd)
pg.InternalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
/* this repeats itself umpteen times, he log grows steadily */
2011-10-20 19:59:49+0200 [-] Re-trying connection due to connection failure
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/share/caldavd/lib/python/twext/internet/threadutils.py", line 49, in _run
work = self._q.get()
File "/usr/share/caldavd/lib/python/twext/internet/threadutils.py", line 72, in _oneWorkUnit
self._reactor.callFromThread(deferred.callback, result)
--- <exception caught here> ---
File "/usr/share/caldavd/lib/python/twext/internet/threadutils.py", line 64, in _oneWorkUnit
result = instruction()
File "/usr/share/caldavd/lib/python/twext/enterprise/adbapi2.py", line 806, in initCursor
connection = self.connectionFactory()
File "/usr/share/caldavd/lib/python/txdav/base/datastore/dbapiclient.py", line 196, in connect
connection = self.dbModule.connect(*self.connectArgs, **self.connectKw)
File "/usr/share/caldavd/lib/python/pgdb.py", line 482, in connect
dbtty, dbuser, dbpasswd)
pg.InternalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
the Log part where the CalDAV server is started (manually from Server applet)
2011-10-20 20:15:47+0200 [-] Received SIGTERM, shutting down.
2011-10-20 20:15:47+0200 [-] Unhandled error in Deferred:
2011-10-20 20:15:47+0200 [-] Unhandled Error
Traceback (most recent call last):
Failure: twext.enterprise.ienterprise.ConnectionError:
2011-10-20 20:15:47+0200 [-] (UNIX Port '/var/run/caldavd-stats.sock' Closed)
2011-10-20 20:15:47+0200 [-] (UNIX Port '/var/run/caldavd/caldavd.sock' Closed)
2011-10-20 20:15:47+0200 [-] Main loop terminated.
2011-10-20 20:15:47+0200 [-] Server Shut Down.
2011-10-20 20:15:52+0200 [-] Log opened.
2011-10-20 20:15:52+0200 [-] twistd 11.0.0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/ Contents/MacOS/Python 2.7.1) starting up.
2011-10-20 20:15:52+0200 [-] reactor class: twext.internet.kqreactor.KQueueReactor.
2011-10-20 20:15:52+0200 [-] calendarserver.accesslog.AMPLoggingFactory starting on "'/var/run/caldavd/caldavd.sock'"
2011-10-20 20:15:52+0200 [-] calendarserver.tap.caldav.CalDAVStatisticsServer starting on "'/var/run/caldavd-stats.sock'"
2011-10-20 20:15:52+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Beginning database schema check.
2011-10-20 20:15:52+0200 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Required schema version: 3.
2011-10-20 20:15:52+0200 [-] Re-trying connection due to connection failure
I hope this helps