Cant connect to Calendar server with a variety of errors
So I had my new OS 10.8 server (2.2.1 169) up and running last night with only a few quirks to work on this morning. When I started my day I had some of our people login from an offsite location login and add their profiles to their macs to add the calendars, contacts, and messaging. Everything loaded just fine for the first person and yet when the second person logged in they got errors that the calendar service was "not on a secure connection" and when they forced this through to the next step that no calendar service was to be found. SImultaneously the users that had their calendars up and running from the previous day lost connection with the calendar client returing the error "Calendar couldn’t connect to server.myserver.com. Make sure you’re connected to the Internet, and then try again later." Checking the calendar service access log I see that the first person to be setup this morning was the last person to log any activity. So it looks like it isnt even registering acesss from any client. I tried logging in from the comman line with "sudo serveradmin fullstatus calendar" and I get: calendar:setStateVersion = 1 calendar:logPaths:LogFile = "/var/log/caldavd/access.log" calendar:logPaths:ErrorLog = "/var/log/caldavd/error.log" calendar:state = "RUNNING" calendar:servicePortsAreRestricted = "NO" calendar:servicePortsRestrictionInfo = _empty_array calendar:readWriteSettingsVersion = 1 So I tried restarting the calendar service. No difference. Then I checked the calendar error log and I saw this message repeatedly: 2013-04-25 09:13:55-0700 [-] [notifications] 2013-04-25 09:13:55-0700 [APNProviderProtocol (TLSMemoryBIOProtocol),client] <twext.internet.adaptendpoint.LegacyClientFactoryWrapper instance at 0x1040382d8> will retry in 2 seconds 2013-04-25 09:13:55-0700 [-] [notifications] 2013-04-25 09:13:55-0700 [APNProviderProtocol (TLSMemoryBIOProtocol),client] Stopping factory <twext.internet.adaptendpoint.LegacyClientFactoryWrapper instance at 0x1040382d8> 2013-04-25 09:13:56-0700 [-] [notifications] 2013-04-25 09:13:56-0700 [-] Starting factory <twext.internet.adaptendpoint.LegacyClientFactoryWrapper instance at 0x104038518> Seeing this was tied to the push updates I turned that off. Now the constant error I am getting is: 2013-04-25 16:01:08-0700 [-] [mailgateway] 2013-04-25 16:01:08-0700 [IMAP4DownloadProtocol,client] [twistedcaldav.mail.IMAP4DownloadProtocol#error] IMAP login failed for server@myserver.com So I reset that email account's password and re-entered it into the mail client to insure it worked. Next step was a full restart of the computer. No difference. I tried turning the push updates and here is what came out: 2013-04-25 16:48:22-0700 [BinaryBoxProtocol,1,] Unhandled error in Deferred: 2013-04-25 16:48:22-0700 [BinaryBoxProtocol,1,] Unhandled Error Traceback (most recent call last): Failure: twisted.internet.error.DNSLookupError: DNS lookup failed: address 'aamoiaqmik.c05.gridserver.com' not found: [Errno 8] nodename nor servname provided, or not known. 2013-04-25 16:48:22-0700 [BinaryBoxProtocol,1,] Unhandled error in Deferred: 2013-04-25 16:48:22-0700 [BinaryBoxProtocol,1,] Unhandled Error Traceback (most recent call last): Failure: twisted.internet.error.DNSLookupError: DNS lookup failed: address 'server.ls1inc.private' not found: [Errno 8] nodename nor servname provided, or not known. 2013-04-25 16:48:30-0700 [-] [caldav-0] [-] Unhandled Error 2013-04-25 16:48:30-0700 [-] [caldav-0] Traceback (most recent call last): 2013-04-25 16:48:30-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 69, in callWithContext 2013-04-25 16:48:30-0700 [-] [caldav-0] return context.call({ILogContext: newCtx}, func, *args, **kw) 2013-04-25 16:48:30-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext 2013-04-25 16:48:30-0700 [-] [caldav-0] return self.currentContext().callWithContext(ctx, func, *args, **kw) 2013-04-25 16:48:30-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext 2013-04-25 16:48:30-0700 [-] [caldav-0] return func(*args,**kw) 2013-04-25 16:48:30-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 206, in _doWriteOrRead 2013-04-25 16:48:30-0700 [-] [caldav-0] why = selectable.doRead() 2013-04-25 16:48:30-0700 [-] [caldav-0] --- <exception caught here> --- 2013-04-25 16:48:30-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/sendfdport.py", line 295, in doRead 2013-04-25 16:48:30-0700 [-] [caldav-0] description, protocol) 2013-04-25 16:48:30-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/metafd.py", line 103, in createTransport 2013-04-25 16:48:30-0700 [-] [caldav-0] transport.startTLS(self.contextFactory) 2013-04-25 16:48:30-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 178, in startTLS 2013-04-25 16:48:30-0700 [-] [caldav-0] startTLS(self, ctx, normal, FileDescriptor) 2013-04-25 16:48:30-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 138, in startTLS 2013-04-25 16:48:30-0700 [-] [caldav-0] tlsFactory = TLSMemoryBIOFactory(contextFactory, client, None) 2013-04-25 16:48:30-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/protocols/tls.py", line 594, in __init__ 2013-04-25 16:48:30-0700 [-] [caldav-0] contextFactory.getContext() 2013-04-25 16:48:30-0700 [-] [caldav-0] exceptions.AttributeError: 'NoneType' object has no attribute 'getContext' 2013-04-25 16:48:30-0700 [-] [caldav-0] 2013-04-25 16:48:37-0700 [-] [caldav-0] [HTTPChannel,2,67.49.33.167] Unhandled Error 2013-04-25 16:48:37-0700 [-] [caldav-0] Traceback (most recent call last): 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext 2013-04-25 16:48:37-0700 [-] [caldav-0] return self.currentContext().callWithContext(ctx, func, *args, **kw) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext 2013-04-25 16:48:37-0700 [-] [caldav-0] return func(*args,**kw) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 218, in _doWriteOrRead 2013-04-25 16:48:37-0700 [-] [caldav-0] self._disconnectSelectable(selectable, why, inRead) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/posixbase.py", line 260, in _disconnectSelectable 2013-04-25 16:48:37-0700 [-] [caldav-0] selectable.readConnectionLost(f) 2013-04-25 16:48:37-0700 [-] [caldav-0] --- <exception caught here> --- 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/backport/internet/tcp.py", line 256, in readConnectionLost 2013-04-25 16:48:37-0700 [-] [caldav-0] p.readConnectionLost() 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/channel/http.py", line 968, in readConnectionLost 2013-04-25 16:48:37-0700 [-] [caldav-0] self.transport.loseConnection() 2013-04-25 16:48:37-0700 [-] [caldav-0] exceptions.AttributeError: 'NoneType' object has no attribute 'loseConnection' 2013-04-25 16:48:37-0700 [-] [caldav-0] 2013-04-25 16:48:37-0700 [-] [caldav-0] [HTTPChannel,2,67.49.33.167] Unhandled Error 2013-04-25 16:48:37-0700 [-] [caldav-0] Traceback (most recent call last): 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/application/app.py", line 323, in runReactorWithLogging 2013-04-25 16:48:37-0700 [-] [caldav-0] reactor.run() 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/base.py", line 1169, in run 2013-04-25 16:48:37-0700 [-] [caldav-0] self.mainLoop() 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/base.py", line 1181, in mainLoop 2013-04-25 16:48:37-0700 [-] [caldav-0] self.doIteration(t) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 193, in doKEvent 2013-04-25 16:48:37-0700 [-] [caldav-0] log.callWithLogger(selectable, _drdw, selectable, fd, event) 2013-04-25 16:48:37-0700 [-] [caldav-0] --- <exception caught here> --- 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 84, in callWithLogger 2013-04-25 16:48:37-0700 [-] [caldav-0] return callWithContext({"system": lp}, func, *args, **kw) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 69, in callWithContext 2013-04-25 16:48:37-0700 [-] [caldav-0] return context.call({ILogContext: newCtx}, func, *args, **kw) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext 2013-04-25 16:48:37-0700 [-] [caldav-0] return self.currentContext().callWithContext(ctx, func, *args, **kw) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext 2013-04-25 16:48:37-0700 [-] [caldav-0] return func(*args,**kw) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 218, in _doWriteOrRead 2013-04-25 16:48:37-0700 [-] [caldav-0] self._disconnectSelectable(selectable, why, inRead) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/posixbase.py", line 260, in _disconnectSelectable 2013-04-25 16:48:37-0700 [-] [caldav-0] selectable.readConnectionLost(f) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/backport/internet/tcp.py", line 259, in readConnectionLost 2013-04-25 16:48:37-0700 [-] [caldav-0] self.connectionLost(failure.Failure()) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/backport/internet/tcp.py", line 281, in connectionLost 2013-04-25 16:48:37-0700 [-] [caldav-0] protocol.connectionLost(reason) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/channel/http.py", line 976, in connectionLost 2013-04-25 16:48:37-0700 [-] [caldav-0] self.factory.removeConnectedChannel(self) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/metafd.py", line 142, in removeConnectedChannel 2013-04-25 16:48:37-0700 [-] [caldav-0] HTTPFactory.removeConnectedChannel(self, channel) 2013-04-25 16:48:37-0700 [-] [caldav-0] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/channel/http.py", line 1053, in removeConnectedChannel 2013-04-25 16:48:37-0700 [-] [caldav-0] self.connectedChannels.remove(channel) 2013-04-25 16:48:37-0700 [-] [caldav-0] exceptions.KeyError: <twext.web2.channel.http.HTTPChannel object at 0x1139ae910> 2013-04-25 16:48:37-0700 [-] [caldav-0] 2013-04-25 16:48:39-0700 [-] [caldav-1] [-] Unhandled Error 2013-04-25 16:48:39-0700 [-] [caldav-1] Traceback (most recent call last): 2013-04-25 16:48:39-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 69, in callWithContext 2013-04-25 16:48:39-0700 [-] [caldav-1] return context.call({ILogContext: newCtx}, func, *args, **kw) 2013-04-25 16:48:39-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext 2013-04-25 16:48:39-0700 [-] [caldav-1] return self.currentContext().callWithContext(ctx, func, *args, **kw) 2013-04-25 16:48:39-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext 2013-04-25 16:48:39-0700 [-] [caldav-1] return func(*args,**kw) 2013-04-25 16:48:39-0700 [-] [caldav-1] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 206, in _doWriteOrRead 2013-04-25 16:48:39-0700 [-] [caldav-1] why = selectable.doRead() 2013-04-25 16:48:39-0700 [-] [caldav-1] --- <exception caught here> --- 2013-04-25 16:48:39-0700 [-] [caldav-1] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/sendfdport.py", line 295, in doRead 2013-04-25 16:48:39-0700 [-] [caldav-1] description, protocol) 2013-04-25 16:48:39-0700 [-] [caldav-1] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/metafd.py", line 103, in createTransport 2013-04-25 16:48:39-0700 [-] [caldav-1] transport.startTLS(self.contextFactory) 2013-04-25 16:48:39-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 178, in startTLS 2013-04-25 16:48:39-0700 [-] [caldav-1] startTLS(self, ctx, normal, FileDescriptor) 2013-04-25 16:48:39-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 138, in startTLS 2013-04-25 16:48:39-0700 [-] [caldav-1] tlsFactory = TLSMemoryBIOFactory(contextFactory, client, None) 2013-04-25 16:48:39-0700 [-] [caldav-1] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/protocols/tls.py", line 594, in __init__ 2013-04-25 16:48:39-0700 [-] [caldav-1] contextFactory.getContext() 2013-04-25 16:48:39-0700 [-] [caldav-1] exceptions.AttributeError: 'NoneType' object has no attribute 'getContext' 2013-04-25 16:48:39-0700 [-] [caldav-1] 2013-04-25 16:48:40-0700 [-] [mailgateway] 2013-04-25 16:48:40-0700 [IMAP4DownloadProtocol,client] [twistedcaldav.mail.IMAP4DownloadProtocol#error] IMAP login failed for server@ls1inc.com 2013-04-25 16:48:44-0700 [-] [caldav-2] [-] Unhandled Error 2013-04-25 16:48:44-0700 [-] [caldav-2] Traceback (most recent call last): 2013-04-25 16:48:44-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 69, in callWithContext 2013-04-25 16:48:44-0700 [-] [caldav-2] return context.call({ILogContext: newCtx}, func, *args, **kw) 2013-04-25 16:48:44-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext 2013-04-25 16:48:44-0700 [-] [caldav-2] return self.currentContext().callWithContext(ctx, func, *args, **kw) 2013-04-25 16:48:44-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext 2013-04-25 16:48:44-0700 [-] [caldav-2] return func(*args,**kw) 2013-04-25 16:48:44-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 206, in _doWriteOrRead 2013-04-25 16:48:44-0700 [-] [caldav-2] why = selectable.doRead() 2013-04-25 16:48:44-0700 [-] [caldav-2] --- <exception caught here> --- 2013-04-25 16:48:44-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/sendfdport.py", line 295, in doRead 2013-04-25 16:48:44-0700 [-] [caldav-2] description, protocol) 2013-04-25 16:48:44-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/metafd.py", line 103, in createTransport 2013-04-25 16:48:44-0700 [-] [caldav-2] transport.startTLS(self.contextFactory) 2013-04-25 16:48:44-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 178, in startTLS 2013-04-25 16:48:44-0700 [-] [caldav-2] startTLS(self, ctx, normal, FileDescriptor) 2013-04-25 16:48:44-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 138, in startTLS 2013-04-25 16:48:44-0700 [-] [caldav-2] tlsFactory = TLSMemoryBIOFactory(contextFactory, client, None) 2013-04-25 16:48:44-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/protocols/tls.py", line 594, in __init__ 2013-04-25 16:48:44-0700 [-] [caldav-2] contextFactory.getContext() 2013-04-25 16:48:44-0700 [-] [caldav-2] exceptions.AttributeError: 'NoneType' object has no attribute 'getContext' 2013-04-25 16:48:44-0700 [-] [caldav-2] 2013-04-25 16:49:09-0700 [-] [caldav-3] [-] Unhandled Error 2013-04-25 16:49:09-0700 [-] [caldav-3] Traceback (most recent call last): 2013-04-25 16:49:09-0700 [-] [caldav-3] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 69, in callWithContext 2013-04-25 16:49:09-0700 [-] [caldav-3] return context.call({ILogContext: newCtx}, func, *args, **kw) 2013-04-25 16:49:09-0700 [-] [caldav-3] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext 2013-04-25 16:49:09-0700 [-] [caldav-3] return self.currentContext().callWithContext(ctx, func, *args, **kw) 2013-04-25 16:49:09-0700 [-] [caldav-3] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext 2013-04-25 16:49:09-0700 [-] [caldav-3] return func(*args,**kw) 2013-04-25 16:49:09-0700 [-] [caldav-3] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 206, in _doWriteOrRead 2013-04-25 16:49:09-0700 [-] [caldav-3] why = selectable.doRead() 2013-04-25 16:49:09-0700 [-] [caldav-3] --- <exception caught here> --- 2013-04-25 16:49:09-0700 [-] [caldav-3] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/sendfdport.py", line 295, in doRead 2013-04-25 16:49:09-0700 [-] [caldav-3] description, protocol) 2013-04-25 16:49:09-0700 [-] [caldav-3] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/metafd.py", line 103, in createTransport 2013-04-25 16:49:09-0700 [-] [caldav-3] transport.startTLS(self.contextFactory) 2013-04-25 16:49:09-0700 [-] [caldav-3] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 178, in startTLS 2013-04-25 16:49:09-0700 [-] [caldav-3] startTLS(self, ctx, normal, FileDescriptor) 2013-04-25 16:49:09-0700 [-] [caldav-3] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 138, in startTLS 2013-04-25 16:49:09-0700 [-] [caldav-3] tlsFactory = TLSMemoryBIOFactory(contextFactory, client, None) 2013-04-25 16:49:09-0700 [-] [caldav-3] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/protocols/tls.py", line 594, in __init__ 2013-04-25 16:49:09-0700 [-] [caldav-3] contextFactory.getContext() 2013-04-25 16:49:09-0700 [-] [caldav-3] exceptions.AttributeError: 'NoneType' object has no attribute 'getContext' 2013-04-25 16:49:09-0700 [-] [caldav-3] 2013-04-25 16:49:13-0700 [-] [caldav-2] [HTTPChannel,1,99.174.236.181] Unhandled Error 2013-04-25 16:49:13-0700 [-] [caldav-2] Traceback (most recent call last): 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext 2013-04-25 16:49:13-0700 [-] [caldav-2] return self.currentContext().callWithContext(ctx, func, *args, **kw) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext 2013-04-25 16:49:13-0700 [-] [caldav-2] return func(*args,**kw) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 218, in _doWriteOrRead 2013-04-25 16:49:13-0700 [-] [caldav-2] self._disconnectSelectable(selectable, why, inRead) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/posixbase.py", line 260, in _disconnectSelectable 2013-04-25 16:49:13-0700 [-] [caldav-2] selectable.readConnectionLost(f) 2013-04-25 16:49:13-0700 [-] [caldav-2] --- <exception caught here> --- 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/backport/internet/tcp.py", line 256, in readConnectionLost 2013-04-25 16:49:13-0700 [-] [caldav-2] p.readConnectionLost() 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/channel/http.py", line 968, in readConnectionLost 2013-04-25 16:49:13-0700 [-] [caldav-2] self.transport.loseConnection() 2013-04-25 16:49:13-0700 [-] [caldav-2] exceptions.AttributeError: 'NoneType' object has no attribute 'loseConnection' 2013-04-25 16:49:13-0700 [-] [caldav-2] 2013-04-25 16:49:13-0700 [-] [caldav-2] [HTTPChannel,1,99.174.236.181] Unhandled Error 2013-04-25 16:49:13-0700 [-] [caldav-2] Traceback (most recent call last): 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/application/app.py", line 323, in runReactorWithLogging 2013-04-25 16:49:13-0700 [-] [caldav-2] reactor.run() 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/base.py", line 1169, in run 2013-04-25 16:49:13-0700 [-] [caldav-2] self.mainLoop() 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/base.py", line 1181, in mainLoop 2013-04-25 16:49:13-0700 [-] [caldav-2] self.doIteration(t) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 193, in doKEvent 2013-04-25 16:49:13-0700 [-] [caldav-2] log.callWithLogger(selectable, _drdw, selectable, fd, event) 2013-04-25 16:49:13-0700 [-] [caldav-2] --- <exception caught here> --- 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 84, in callWithLogger 2013-04-25 16:49:13-0700 [-] [caldav-2] return callWithContext({"system": lp}, func, *args, **kw) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 69, in callWithContext 2013-04-25 16:49:13-0700 [-] [caldav-2] return context.call({ILogContext: newCtx}, func, *args, **kw) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext 2013-04-25 16:49:13-0700 [-] [caldav-2] return self.currentContext().callWithContext(ctx, func, *args, **kw) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext 2013-04-25 16:49:13-0700 [-] [caldav-2] return func(*args,**kw) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 218, in _doWriteOrRead 2013-04-25 16:49:13-0700 [-] [caldav-2] self._disconnectSelectable(selectable, why, inRead) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/posixbase.py", line 260, in _disconnectSelectable 2013-04-25 16:49:13-0700 [-] [caldav-2] selectable.readConnectionLost(f) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/backport/internet/tcp.py", line 259, in readConnectionLost 2013-04-25 16:49:13-0700 [-] [caldav-2] self.connectionLost(failure.Failure()) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/backport/internet/tcp.py", line 281, in connectionLost 2013-04-25 16:49:13-0700 [-] [caldav-2] protocol.connectionLost(reason) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/channel/http.py", line 976, in connectionLost 2013-04-25 16:49:13-0700 [-] [caldav-2] self.factory.removeConnectedChannel(self) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/metafd.py", line 142, in removeConnectedChannel 2013-04-25 16:49:13-0700 [-] [caldav-2] HTTPFactory.removeConnectedChannel(self, channel) 2013-04-25 16:49:13-0700 [-] [caldav-2] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/channel/http.py", line 1053, in removeConnectedChannel 2013-04-25 16:49:13-0700 [-] [caldav-2] self.connectedChannels.remove(channel) 2013-04-25 16:49:13-0700 [-] [caldav-2] exceptions.KeyError: <twext.web2.channel.http.HTTPChannel object at 0x10902fa50> 2013-04-25 16:49:13-0700 [-] [caldav-2] 2013-04-25 16:49:14-0700 [-] [caldav-4] [-] Unhandled Error 2013-04-25 16:49:14-0700 [-] [caldav-4] Traceback (most recent call last): 2013-04-25 16:49:14-0700 [-] [caldav-4] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 69, in callWithContext 2013-04-25 16:49:14-0700 [-] [caldav-4] return context.call({ILogContext: newCtx}, func, *args, **kw) 2013-04-25 16:49:14-0700 [-] [caldav-4] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext 2013-04-25 16:49:14-0700 [-] [caldav-4] return self.currentContext().callWithContext(ctx, func, *args, **kw) 2013-04-25 16:49:14-0700 [-] [caldav-4] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext 2013-04-25 16:49:14-0700 [-] [caldav-4] return func(*args,**kw) 2013-04-25 16:49:14-0700 [-] [caldav-4] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 206, in _doWriteOrRead 2013-04-25 16:49:14-0700 [-] [caldav-4] why = selectable.doRead() 2013-04-25 16:49:14-0700 [-] [caldav-4] --- <exception caught here> --- 2013-04-25 16:49:14-0700 [-] [caldav-4] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/sendfdport.py", line 295, in doRead 2013-04-25 16:49:14-0700 [-] [caldav-4] description, protocol) 2013-04-25 16:49:14-0700 [-] [caldav-4] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/metafd.py", line 103, in createTransport 2013-04-25 16:49:14-0700 [-] [caldav-4] transport.startTLS(self.contextFactory) 2013-04-25 16:49:14-0700 [-] [caldav-4] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 178, in startTLS 2013-04-25 16:49:14-0700 [-] [caldav-4] startTLS(self, ctx, normal, FileDescriptor) 2013-04-25 16:49:14-0700 [-] [caldav-4] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 138, in startTLS 2013-04-25 16:49:14-0700 [-] [caldav-4] tlsFactory = TLSMemoryBIOFactory(contextFactory, client, None) 2013-04-25 16:49:14-0700 [-] [caldav-4] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/protocols/tls.py", line 594, in __init__ 2013-04-25 16:49:14-0700 [-] [caldav-4] contextFactory.getContext() 2013-04-25 16:49:14-0700 [-] [caldav-4] exceptions.AttributeError: 'NoneType' object has no attribute 'getContext' 2013-04-25 16:49:14-0700 [-] [caldav-4] 2013-04-25 16:49:18-0700 [-] [mailgateway] 2013-04-25 16:49:18-0700 [IMAP4DownloadProtocol,client] [twistedcaldav.mail.IMAP4DownloadProtocol#error] IMAP login failed for server@ls1inc.com 2013-04-25 16:49:56-0700 [-] [mailgateway] 2013-04-25 16:49:56-0700 [IMAP4DownloadProtocol,client] [twistedcaldav.mail.IMAP4DownloadProtocol#error] IMAP login failed for server@ls1inc.com 2013-04-25 16:50:11-0700 [-] [caldav-5] [-] Unhandled Error 2013-04-25 16:50:11-0700 [-] [caldav-5] Traceback (most recent call last): 2013-04-25 16:50:11-0700 [-] [caldav-5] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 69, in callWithContext 2013-04-25 16:50:11-0700 [-] [caldav-5] return context.call({ILogContext: newCtx}, func, *args, **kw) 2013-04-25 16:50:11-0700 [-] [caldav-5] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext 2013-04-25 16:50:11-0700 [-] [caldav-5] return self.currentContext().callWithContext(ctx, func, *args, **kw) 2013-04-25 16:50:11-0700 [-] [caldav-5] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext 2013-04-25 16:50:11-0700 [-] [caldav-5] return func(*args,**kw) 2013-04-25 16:50:11-0700 [-] [caldav-5] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 206, in _doWriteOrRead 2013-04-25 16:50:11-0700 [-] [caldav-5] why = selectable.doRead() 2013-04-25 16:50:11-0700 [-] [caldav-5] --- <exception caught here> --- 2013-04-25 16:50:11-0700 [-] [caldav-5] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/sendfdport.py", line 295, in doRead 2013-04-25 16:50:11-0700 [-] [caldav-5] description, protocol) 2013-04-25 16:50:11-0700 [-] [caldav-5] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/metafd.py", line 103, in createTransport 2013-04-25 16:50:11-0700 [-] [caldav-5] transport.startTLS(self.contextFactory) 2013-04-25 16:50:11-0700 [-] [caldav-5] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 178, in startTLS 2013-04-25 16:50:11-0700 [-] [caldav-5] startTLS(self, ctx, normal, FileDescriptor) 2013-04-25 16:50:11-0700 [-] [caldav-5] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 138, in startTLS 2013-04-25 16:50:11-0700 [-] [caldav-5] tlsFactory = TLSMemoryBIOFactory(contextFactory, client, None) 2013-04-25 16:50:11-0700 [-] [caldav-5] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/protocols/tls.py", line 594, in __init__ 2013-04-25 16:50:11-0700 [-] [caldav-5] contextFactory.getContext() 2013-04-25 16:50:11-0700 [-] [caldav-5] exceptions.AttributeError: 'NoneType' object has no attribute 'getContext' 2013-04-25 16:50:11-0700 [-] [caldav-5] 2013-04-25 16:50:34-0700 [-] [mailgateway] 2013-04-25 16:50:34-0700 [IMAP4DownloadProtocol,client] [twistedcaldav.mail.IMAP4DownloadProtocol#error] IMAP login failed for server@ls1inc.com 2013-04-25 16:50:41-0700 [-] [caldav-6] [-] Unhandled Error 2013-04-25 16:50:41-0700 [-] [caldav-6] Traceback (most recent call last): 2013-04-25 16:50:41-0700 [-] [caldav-6] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/log.py", line 69, in callWithContext 2013-04-25 16:50:41-0700 [-] [caldav-6] return context.call({ILogContext: newCtx}, func, *args, **kw) 2013-04-25 16:50:41-0700 [-] [caldav-6] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 118, in callWithContext 2013-04-25 16:50:41-0700 [-] [caldav-6] return self.currentContext().callWithContext(ctx, func, *args, **kw) 2013-04-25 16:50:41-0700 [-] [caldav-6] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/python/context.py", line 81, in callWithContext 2013-04-25 16:50:41-0700 [-] [caldav-6] return func(*args,**kw) 2013-04-25 16:50:41-0700 [-] [caldav-6] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/kqreactor.py", line 206, in _doWriteOrRead 2013-04-25 16:50:41-0700 [-] [caldav-6] why = selectable.doRead() 2013-04-25 16:50:41-0700 [-] [caldav-6] --- <exception caught here> --- 2013-04-25 16:50:41-0700 [-] [caldav-6] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/internet/sendfdport.py", line 295, in doRead 2013-04-25 16:50:41-0700 [-] [caldav-6] description, protocol) 2013-04-25 16:50:41-0700 [-] [caldav-6] File "/Applications/Server.app/Contents/ServerRoot/usr/share/caldavd/lib/python/twex t/web2/metafd.py", line 103, in createTransport 2013-04-25 16:50:41-0700 [-] [caldav-6] transport.startTLS(self.contextFactory) 2013-04-25 16:50:41-0700 [-] [caldav-6] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 178, in startTLS 2013-04-25 16:50:41-0700 [-] [caldav-6] startTLS(self, ctx, normal, FileDescriptor) 2013-04-25 16:50:41-0700 [-] [caldav-6] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/internet/_newtls.py", line 138, in startTLS 2013-04-25 16:50:41-0700 [-] [caldav-6] tlsFactory = TLSMemoryBIOFactory(contextFactory, client, None) 2013-04-25 16:50:41-0700 [-] [caldav-6] File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twi sted/protocols/tls.py", line 594, in __init__ 2013-04-25 16:50:41-0700 [-] [caldav-6] contextFactory.getContext() 2013-04-25 16:50:41-0700 [-] [caldav-6] exceptions.AttributeError: 'NoneType' object has no attribute 'getContext' 2013-04-25 16:50:41-0700 [-] [caldav-6] And my calendar client is returning the following error: http://server.myserver.com/principals/__uids__/288A4655-0D47-441B-8E0D-D6C99... 8DD/ is not a location that supports this request. I am thoroughly stumped! I have Calendar, Contacts, DNS, File Sharing, FTP, Messages, Open Directory, Profile Manager, Software Update, Time Machine, Web, and Wiki running.
Hi Sean, Seems like there are a couple possible issues: 1) Is DNS configured properly? I see some DNS related errors in your post. 2) Do you have SSL enabled for Calendar and Contacts? The errors below hint at something wrong like SSL is enabled but the certificates are not in place. Check "Server.app > Certificates > Settings > Secure services using” and choose “Custom” and set “Calendar and Contacts” to None (thereby disabling SSL for that service) . The service will take a few seconds to restart with the new setting. Then point your web browser at http://yourservername:8008/principals/ to see if the calendar server responds. Port 8008 is calendar and contacts service direct, non SSL port. Next browse to http://yourservername:80/principals and see if that works. Port 80 reverse-proxies internally to 8008 via Apache httpd so that the web calendar can function. Next go back and set the certificate for Calendar and Contacts, and after the service restarts you should be able to browse to https://yourservername:8443/principals/ (the direct SSL port) and https://yourservername:443/principals/ (the reverse-proxied SSL port). If the direct ports work but the reverse-proxied ports don’t, I can talk you through making sure the reverse proxy settings are loaded. ~morgen P.S. When you configure the calendar server’s “Enable invitations by email” option, be sure not to use a mail account that is used for any other purpose, as calendar server will delete all messages in the inbox of that account. It should be an account dedicated to calendar server. I notice you are getting IMAP login failures for that account.
Hi Sean, Seems like there are a couple possible issues: 1) Is DNS configured properly? I see some DNS related errors in your post. 2) Do you have SSL enabled for Calendar and Contacts? The errors below hint at something wrong like SSL is enabled but the certificates are not in place. Check "Server.app > Certificates > Settings > Secure services using” and choose “Custom” and set “Calendar and Contacts” to None (thereby disabling SSL for that service) . The service will take a few seconds to restart with the new setting. Then point your web browser at http://yourservername:8008/principals/ to see if the calendar server responds. Port 8008 is calendar and contacts service direct, non SSL port. Next browse to http://yourservername:80/principals and see if that works. Port 80 reverse-proxies internally to 8008 via Apache httpd so that the web calendar can function. Next go back and set the certificate for Calendar and Contacts, and after the service restarts you should be able to browse to https://yourservername:8443/principals/ (the direct SSL port) and https://yourservername:443/principals/ (the reverse-proxied SSL port). If the direct ports work but the reverse-proxied ports don’t, I can talk you through making sure the reverse proxy settings are loaded. ~morgen P.S. When you configure the calendar server’s “Enable invitations by email” option, be sure not to use a mail account that is used for any other purpose, as calendar server will delete all messages in the inbox of that account. It should be an account dedicated to calendar server. I notice you are getting IMAP login failures for that account.
participants (2)
-
Morgen Sagen
-
sean.wells@mac.com