2013-07-09 16:41:26-0600 [-] [caldav-0] [HTTPChannel,1,::ffff:192.168.105.109] [twext.web2.server#info] GET / HTTP/1.1
2013-07-09 16:41:26-0600 [-] [caldav-0] [HTTPChannel,1,::ffff:192.168.105.109] [twext.web2.channel.http#warn] host is IPv6Address(TCP, '::ffff:192.168.105.57', 8008)
2013-07-09 16:41:26-0600 [-] [caldav-0] [HTTPChannel,1,::ffff:192.168.105.109] Unhandled error in Deferred:
2013-07-09 16:41:26-0600 [-] [caldav-0] [HTTPChannel,1,::ffff:192.168.105.109] Unhandled Error
2013-07-09 16:41:26-0600 [-] [caldav-0] Traceback (most recent call last):
2013-07-09 16:41:26-0600 [-] [caldav-0] Failure: twisted.internet.error.ConnectError: An error occurred while connecting: 13: Permission denied.
2013-07-09 16:41:26-0600 [-] [caldav-0]
2013-07-09 16:41:26-0600 [-] [caldav-0] [HTTPChannel,1,::ffff:192.168.105.109] [twext.web2.server#info] Exception rendering:
2013-07-09 16:41:26-0600 [-] [caldav-0] [HTTPChannel,1,::ffff:192.168.105.109] [twext.web2.server#error] [Failure instance: Traceback: <class 'socket.error'>: Address family not supported by protocol
2013-07-09 16:41:26-0600 [-] [caldav-0] /usr/lib64/python2.6/site-packages/twext/web2/channel/http.py:819:lineReceived
2013-07-09 16:41:26-0600 [-] [caldav-0] /usr/lib64/python2.6/site-packages/twext/web2/channel/http.py:1155:lineReceived
2013-07-09 16:41:26-0600 [-] [caldav-0] /usr/lib64/python2.6/site-packages/twext/web2/channel/http.py:259:lineReceived
2013-07-09 16:41:26-0600 [-] [caldav-0] /usr/lib64/python2.6/site-packages/twext/web2/channel/http.py:537:processRequest
2013-07-09 16:41:26-0600 [-] [caldav-0] --- <exception caught here> ---
2013-07-09 16:41:26-0600 [-] [caldav-0] /usr/lib64/python2.6/site-packages/twext/web2/server.py:366:process
2013-07-09 16:41:26-0600 [-] [caldav-0] /usr/lib64/python2.6/site-packages/twext/web2/server.py:328:_fixupURLParts
2013-07-09 16:41:26-0600 [-] [caldav-0] /usr/lib64/python2.6/site-packages/twext/web2/channel/http.py:644:getHostInfo
2013-07-09 16:41:26-0600 [-] [caldav-0] /usr/lib64/python2.6/site-packages/twext/web2/channel/http.py:137:_cachedGetHostByAddr
2013-07-09 16:41:26-0600 [-] [caldav-0] ]
What it seems to be to me is that the server is trying to bind to an IPv6 address and my os on the server is responding "Permission denied" (Could that be an SELinux thing? I'm not too familiar with IPv6). As another step in debugging this, I decided to use lynx on the machine and visit localhost:8008, to which I found that twext served the page that I expected and posted the following into the log.
2013-07-09 16:46:40-0600 [-] [caldav-0] [HTTPChannel,2,::1] [twext.web2.server#info] GET / HTTP/1.0
2013-07-09 16:46:40-0600 [-] [caldav-0] [HTTPChannel,2,::1] [twext.web2.channel.http#warn] host is IPv6Address(TCP, '::1', 8008)
For reference, my caldavd.plist file contains an empty server name which says to me that it should use the hostname. Explicitly adding the hostname didn't change anything nor did explicitly adding the IPv4 address of the server. Also, I did open the port in iptables before you ask. I have successfully served data through that port by a simple python -m SimpleHTTPServer 8008 and I could access that from my browser on another machine.
Any advice on how to allow a remote computer the ability to visit that page would be greatly appreciated! I'm almost at wits end with trying to figure out why the host is an IPv6Address and why I'm unable to connect.
James