Saturday, December 8, 2012

Installing caldav server on debian

My goal was to install a caldav server, that i can connect from iphone and from local clients like evolution or lightning.
First solution was installing the calendarserver from debian.
I used aptitude to install the packages:
aptitude install calendarserver

The configuration files are here: /etc/caldavd For creating a user you must add this lines to the

username userpassword username 

 Global configurations are here:

This points i modified:
The calenderport i changed to 777 for security  
BindHTTPPorts 777

i don't want to use  
SSLPort 0

At last i have to restart the server:
/etc/init.d/calendarserver restart

1 comment:

  1. /etc/init.d/calendarserver.dpkg-new restart
    [....] Restarting calendarserver: caldavdTraceback (most recent call last):
    File "/usr/bin/twistd", line 14, in
    File "/usr/lib/python2.7/dist-packages/twisted/scripts/", line 27, in run, ServerOptions)
    File "/usr/lib/python2.7/dist-packages/twisted/application/", line 647, in run
    File "/usr/lib/python2.7/dist-packages/twisted/application/", line 614, in parseOptions
    usage.Options.parseOptions(self, options)
    File "/usr/lib/python2.7/dist-packages/twisted/python/", line 261, in parseOptions
    for (cmd, short, parser, doc) in self.subCommands:
    File "/usr/lib/python2.7/dist-packages/twisted/application/", line 631, in subCommands
    for plug in sorted(plugins, key=attrgetter('tapname')):
    File "/usr/lib/python2.7/dist-packages/twisted/plugins/", line 29, in getProperty
    return getattr(reflect.namedClass(self.serviceMakerClass), propname)
    File "/usr/lib/python2.7/dist-packages/twisted/python/", line 151, in namedObject
    module = namedModule('.'.join(classSplit[:-1]))
    File "/usr/lib/python2.7/dist-packages/twisted/python/", line 137, in namedModule
    topLevel = __import__(name)
    File "/usr/lib/python2.7/dist-packages/twistedcaldav/", line 78, in
    from calendarserver.tap.util import getRootResource, directoryFromConfig
    File "/usr/lib/python2.7/dist-packages/calendarserver/tap/", line 89, in
    from txdav.common.datastore.sql import CommonDataStore as CommonSQLDataStore
    File "/usr/lib/python2.7/dist-packages/txdav/common/datastore/", line 47, in
    from txdav.common.datastore.sql_legacy import PostgresLegacyNotificationsEmulator
    File "/usr/lib/python2.7/dist-packages/txdav/common/datastore/", line 51, in
    from txdav.common.datastore.sql_tables import (
    File "/usr/lib/python2.7/dist-packages/txdav/common/datastore/", line 30, in
    from twext.enterprise.dal.parseschema import schemaFromPath
    File "/usr/lib/python2.7/dist-packages/twext/enterprise/dal/", line 24, in
    from sqlparse import parse, keywords
    ImportError: No module named sqlparse