Projects
Wiki     Timeline     Roadmap     Browse Source     View Tickets     New Ticket     Search

Ticket #367 (new Defect)

Opened 5 months ago

Last modified 5 months ago

Still can't run CardDAV server in Linux

Reported by: dave@… Owned by: wsanchez@…
Priority: 5: Not set Milestone:
Component: Calendar Server Severity: Serious
Keywords: carddav linux Cc: dave@…

Description

Previously ticket 359, but another user responded to that and it got closed.

I finally had a chance to give the latest trunk (5266) of Calendar Server a try. Same server, but it had since been upgraded to Debian Lenny.

I got the same error as listed in ticket 359 after the compile and launch: ImportError: No module named opendirectory

I was able to get the server started by commenting out the following:

twistedcaldav/static.py: from twistedcaldav.directory.principal import DirectoryCalendarPrincipalResource #from twistedcaldav import report_addressbook_findshared #setattr(DirectoryCalendarPrincipalResource, "report_http_addressbookserver_org_nsaddressbook_findshared", report_addressbook_findshared.http_addre\ ssbookserver_org_nsaddressbook_findshared)

twistedcaldav/addressbook.py #from twistedcaldav.report_addressbook_findshared import getReadWriteSharedAddressBookGroups, getReadOnlySharedAddressBookGroups, getWritersGroupForShare\ dAddressBookGroup

And doing a:

mkdir data/Documents/directory

This allows me to not only start the server, but to even log in with Address Book.

However, I get the error:

[carddav-throw] Unable to query user's address book home. User: admin Scheme: https Host: mail.kapor.com Port: 8443 Principal: /principals/uids/{uid}/

When I connect to the web server, it there is nothing listed under Address Book Homes, and it would appear that the /addressbooks/ directory isn't being created for the user.

Change History

Changed 5 months ago by guy@…

svn co  http://svn.calendarserver.org/repository/calendarserver/PyOpenDirectory/trunk PyOpenDirectory cd PyOpenDirectory python setup.py build python setup.py install

will likely solve this for you.

Note: See TracTickets for help on using tickets.