[CalendarServer-dev] Problem running calendarserver 6.2 in Debian

Rahul Amaram amaramrahul at users.sourceforge.net
Tue Oct 13 11:12:21 PDT 2015


Hi,
I am the Debian maintainer for calendarserver. For calendarserver 6.2, I 
have the new binaries built, including a new package for twext. But when 
I run it, I get the error:

# caldavd -L
Traceback (most recent call last):
   File "/usr/bin/twistd", line 14, in <module>
     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 652, in run
     config.parseOptions()
   File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", 
line 619, in parseOptions
     usage.Options.parseOptions(self, options)
   File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line 
262, in parseOptions
     for (cmd, short, parser, doc) in self.subCommands:
   File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", 
line 636, 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/reflect.py", 
line 168, in namedObject
     module = namedModule('.'.join(classSplit[:-1]))
   File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", 
line 154, in namedModule
     topLevel = __import__(name)
   File "/usr/lib/python2.7/dist-packages/txdav/dps/server.py", line 21, 
in <module>
     from calendarserver.tap.util import getDBPool, 
storeFromConfigWithDPSServer
   File "/usr/lib/python2.7/dist-packages/calendarserver/tap/util.py", 
line 33, in <module>
     from calendarserver.provision.root import RootResource
   File 
"/usr/lib/python2.7/dist-packages/calendarserver/provision/root.py", 
line 37, in <module>
     from twistedcaldav.directory.principal import 
DirectoryPrincipalResource
   File 
"/usr/lib/python2.7/dist-packages/twistedcaldav/directory/principal.py", 
line 56, in <module>
     from twistedcaldav.resource import 
CalendarPrincipalCollectionResource, CalendarPrincipalResource
   File "/usr/lib/python2.7/dist-packages/twistedcaldav/resource.py", 
line 77, in <module>
     from calendarserver.push.notifier import getPubSubAPSConfiguration
   File 
"/usr/lib/python2.7/dist-packages/calendarserver/push/notifier.py", line 
29, in <module>
     from txdav.common.datastore.sql_tables import schema
   File 
"/usr/lib/python2.7/dist-packages/txdav/common/datastore/sql_tables.py", 
line 78, in <module>
     schema = _populateSchema()
   File 
"/usr/lib/python2.7/dist-packages/txdav/common/datastore/sql_tables.py", 
line 64, in _populateSchema
     return SchemaSyntax(schemaFromPath(pathObj))
   File 
"/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 105, in schemaFromPath
     addSQLToSchema(schema, schemaData)
   File 
"/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 152, in addSQLToSchema
     t = tableFromCreateStatement(schema, stmt)
   File 
"/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 89, in tableFromCreateStatement
     cp.parse()
   File 
"/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 335, in parse
     while self.nextColumn():
   File 
"/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 347, in nextColumn
     return self.parseColumn(maybeIdent.get_name())
   File 
"/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 515, in parseColumn
     theDefault.tokens[-1], cls=Parenthesis
   File 
"/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 710, in expectSingle
     cls, "%s:%r" % (nextval.__class__.__name__, nextval)
twext.enterprise.dal.parseschema.ViolatedExpectation: Expected <class 
'sqlparse.sql.Parenthesis'> got Comment:<Comment '-- imp...' at 
0x7fe4f014c490>


Attaching the caldavd.plist file that I am using. The postgres database 
is created and pre-populated with the schema. Could you provide any 
pointers on why this is occurring?

On a side note, if I run using the normal way i.e. ./bin/run -n, then it 
starts properly. So, not sure what is the issue here.

Thanks,
Rahul.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: caldavd.plist
Type: text/xml
Size: 17640 bytes
Desc: not available
URL: <https://lists.macosforge.org/pipermail/calendarserver-dev/attachments/20151013/dcf938c5/attachment.xml>


More information about the calendarserver-dev mailing list