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
/etc/caldavd/accounts.xml  

username userpassword username 

 Global configurations are here:
 /etc/caldavd/caldavd.plist

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

SSL
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
    run()
    File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 27, in run
    app.run(runApp, ServerOptions)
    File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 647, in run
    config.parseOptions()
    File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 614, in parseOptions
    usage.Options.parseOptions(self, options)
    File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line 261, in parseOptions
    for (cmd, short, parser, doc) in self.subCommands:
    File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 631, in subCommands
    for plug in sorted(plugins, key=attrgetter('tapname')):
    File "/usr/lib/python2.7/dist-packages/twisted/plugins/caldav.py", line 29, in getProperty
    return getattr(reflect.namedClass(self.serviceMakerClass), propname)
    File "/usr/lib/python2.7/dist-packages/twisted/python/_reflectpy3.py", line 151, in namedObject
    module = namedModule('.'.join(classSplit[:-1]))
    File "/usr/lib/python2.7/dist-packages/twisted/python/_reflectpy3.py", line 137, in namedModule
    topLevel = __import__(name)
    File "/usr/lib/python2.7/dist-packages/twistedcaldav/mail.py", line 78, in
    from calendarserver.tap.util import getRootResource, directoryFromConfig
    File "/usr/lib/python2.7/dist-packages/calendarserver/tap/util.py", line 89, in
    from txdav.common.datastore.sql import CommonDataStore as CommonSQLDataStore
    File "/usr/lib/python2.7/dist-packages/txdav/common/datastore/sql.py", line 47, in
    from txdav.common.datastore.sql_legacy import PostgresLegacyNotificationsEmulator
    File "/usr/lib/python2.7/dist-packages/txdav/common/datastore/sql_legacy.py", line 51, in
    from txdav.common.datastore.sql_tables import (
    File "/usr/lib/python2.7/dist-packages/txdav/common/datastore/sql_tables.py", line 30, in
    from twext.enterprise.dal.parseschema import schemaFromPath
    File "/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", line 24, in
    from sqlparse import parse, keywords
    ImportError: No module named sqlparse
    failed!

    ReplyDelete