[CalendarServer-users] DCS Rhel6 install: Address family not supported by protocol

James Rowe jroweboy at gmail.com
Tue Jul 9 16:24:13 PDT 2013

I'm currently working on installing Darwin calendar server on a live rhel-6
server for an internal network and I'm struggling to get it working
properly. I'm unsure what this is caused by and since I was unable to find
anyone with a similar problem, I decided it best to come and ask on the
mailing list. After building and installing DCS 4.2 on the server, I ran
the start command as /usr/bin/caldavd -u caldavd -g caldavd -XL so I can
see the output straight on the terminal. caldavd is the owner of all the
files in the configuration directories. It then loads like I would expect
it to, spitting out some information about no database update needed,
memcached started properly, and some other things that I don't really think
is relevant, but I can provide these logs if needed. The problem comes into
play when I attempt to browse to port 8008 from a remote machine. Using the
hostname of the server and port 8008 on my machine produces the following
error and sends back a 500 error (note that I added the host is %s line to
the code to help me resolve the issue)

2013-07-09 16:41:26-0600 [-] [caldav-0]
 [HTTPChannel,1,::ffff:] [twext.web2.server#info] GET /
2013-07-09 16:41:26-0600 [-] [caldav-0]
 [HTTPChannel,1,::ffff:] [twext.web2.channel.http#warn] host
is IPv6Address(TCP, '::ffff:', 8008)
2013-07-09 16:41:26-0600 [-] [caldav-0]
 [HTTPChannel,1,::ffff:] Unhandled error in Deferred:
2013-07-09 16:41:26-0600 [-] [caldav-0]
 [HTTPChannel,1,::ffff:] 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:] [twext.web2.server#info] Exception
2013-07-09 16:41:26-0600 [-] [caldav-0]
 [HTTPChannel,1,::ffff:] [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]
2013-07-09 16:41:26-0600 [-] [caldav-0]
2013-07-09 16:41:26-0600 [-] [caldav-0]
2013-07-09 16:41:26-0600 [-] [caldav-0]
2013-07-09 16:41:26-0600 [-] [caldav-0]  --- <exception caught here> ---
2013-07-09 16:41:26-0600 [-] [caldav-0]
2013-07-09 16:41:26-0600 [-] [caldav-0]
2013-07-09 16:41:26-0600 [-] [caldav-0]
2013-07-09 16:41:26-0600 [-] [caldav-0]
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

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-users/attachments/20130709/a553d2df/attachment.html>

More information about the calendarserver-users mailing list