Ticket #380 (closed Defect: Configuration changed)
Server throughs an exeption when configured to use SSL
| Reported by: | kristian@… | Owned by: | wsanchez@… |
|---|---|---|---|
| Priority: | 5: Not set | Milestone: | |
| Component: | Calendar Server | Severity: | Crash/data loss |
| Keywords: | carddav ssl | Cc: | |
| Port: |
Description
Hi, I set up the calendarserver (svn trunk) on ubuntu lucid. Everything works fine, until i try to connect to the caldav server via SSL. Unencrypted connect is no problem, as is connecting to the CardDAV server via SSL. Only CalDAV in connection with SSL causes the following error:
2010-06-23 22:34:24+0200 [-] [caldav-1] [-] Unhandled Error
2010-06-23 22:34:24+0200 [-] [caldav-1] Traceback (most recent call last):
2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twisted/python/log.py", line 69, in callWithContext
2010-06-23 22:34:24+0200 [-] [caldav-1] return context.call({ILogContext: newCtx}, func, *args, **kw)
2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twisted/python/context.py", line 59, in callWithContext
2010-06-23 22:34:24+0200 [-] [caldav-1] return self.currentContext().callWithContext(ctx, func, *args, **kw)
2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twisted/python/context.py", line 37, in callWithContext
2010-06-23 22:34:24+0200 [-] [caldav-1] return func(*args,**kw)
2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite
2010-06-23 22:34:24+0200 [-] [caldav-1] why = getattr(selectable, method)()
2010-06-23 22:34:24+0200 [-] [caldav-1] --- <exception caught here> ---
2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twext/internet/sendfdport.py", line 279, in doRead
2010-06-23 22:34:24+0200 [-] [caldav-1] transport = self.transportFactory(skt, description, protocol)
2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twext/web2/metafd.py", line 104, in createTransport
2010-06-23 22:34:24+0200 [-] [caldav-1] transport.startTLS(self.contextFactory)
2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 761, in startTLS
2010-06-23 22:34:24+0200 [-] [caldav-1] if Connection.startTLS(self, ctx, server):
2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 402, in startTLS
2010-06-23 22:34:24+0200 [-] [caldav-1] self.socket = SSL.Connection(ctx.getContext(), self.socket)
2010-06-23 22:34:24+0200 [-] [caldav-1] exceptions.AttributeError: 'NoneType' object has no attribute 'getContext'
2010-06-23 22:34:24+0200 [-] [caldav-1]
Both instances are run with the same user, and should use the same key and certificate.
I have no idea what to check or change.
Change History
comment:2 in reply to: ↑ 1 Changed 2 years ago by ian@…
Any idea how to fix this? I'm experiencing the same issue. It works if you use the run script but not if you try to install/run the daemon. If it makes any difference, I'm using a 64 bit system although it looks like the original poster was not.
Note: See
TracTickets for help on using
tickets.


Cc Me!