[CalendarServer-users] calendarserver with debian wheezy

Michael Köhler ml_calendarserver-users at controlc.de
Mon Dec 2 13:23:20 PST 2013


Hi,

I just want to migrate from davical to calendarserver server because of working email invitations in calendarserver but I´ve a lot of question and I hope someone could help me:

My general questions:
1. I used the non-sql version so all user data and so one will be stored in xml files, right?
2. Is it normal that passwords have to stored in plain text in accounts.xml?
3. How could users change their passwords? I´ve clients with iOS, OSX, Thunderbird and Android.
4. How could users manage their delegations? 

And now one detailed question:
I´ve copied the example account.xml into configuration path and start calendarserver. If I use

"calendarserver_manage_principals --remove users:test“

I´ve got the following errors:

Unhandled error in Deferred:
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run
    self.mainLoop()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
    self.runUntilCurrent()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1187, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1045, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/calendarserver/tools/principals.py", line 356, in runPrincipalActions
    (yield action[0](principal, *action[1:]))
  File "/usr/lib/python2.7/dist-packages/calendarserver/tools/principals.py", line 489, in action_removePrincipal
    config.directory.destroyRecord(record.recordType, guid=guid)
  File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/aggregate.py", line 255, in destroyRecord
    return service.destroyRecord(recordType, guid=guid)
  File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/xmlfile.py", line 486, in destroyRecord
    self._persistRecords(accountsElement)
  File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/xmlfile.py", line 402, in _persistRecords
    self.xmlFile.setContent(elementToXML(element))
  File "/usr/lib/python2.7/dist-packages/twisted/python/filepath.py", line 1104, in setContent
    f = sib.open('w')
  File "/usr/lib/python2.7/dist-packages/twisted/python/filepath.py", line 639, in open
    return self.create()
  File "/usr/lib/python2.7/dist-packages/twisted/python/filepath.py", line 1141, in create
    fdint = os.open(self.path, _CREATE_FLAGS)
exceptions.OSError: [Errno 13] Permission denied: '/etc/caldavd/AXgQsKVXoYQ4PV6naccounts.xml.new'
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run
    self.mainLoop()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
    self.runUntilCurrent()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1187, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1045, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/calendarserver/tools/principals.py", line 356, in runPrincipalActions
    (yield action[0](principal, *action[1:]))
  File "/usr/lib/python2.7/dist-packages/calendarserver/tools/principals.py", line 489, in action_removePrincipal
    config.directory.destroyRecord(record.recordType, guid=guid)
  File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/aggregate.py", line 255, in destroyRecord
    return service.destroyRecord(recordType, guid=guid)
  File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/xmlfile.py", line 486, in destroyRecord
    self._persistRecords(accountsElement)
  File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/xmlfile.py", line 402, in _persistRecords
    self.xmlFile.setContent(elementToXML(element))
  File "/usr/lib/python2.7/dist-packages/twisted/python/filepath.py", line 1104, in setContent
    f = sib.open('w')
  File "/usr/lib/python2.7/dist-packages/twisted/python/filepath.py", line 639, in open
    return self.create()
  File "/usr/lib/python2.7/dist-packages/twisted/python/filepath.py", line 1141, in create
    fdint = os.open(self.path, _CREATE_FLAGS)
exceptions.OSError: [Errno 13] Permission denied: '/etc/caldavd/AXgQsKVXoYQ4PV6naccounts.xml.new'
Main loop terminated.

If I change permissions on folder and files to caldavd:caldavd I´ve got nearly the same error:

Unhandled error in Deferred:
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run
    self.mainLoop()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
    self.runUntilCurrent()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1187, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1045, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/calendarserver/tools/principals.py", line 356, in runPrincipalActions

    (yield action[0](principal, *action[1:]))
  File "/usr/lib/python2.7/dist-packages/calendarserver/tools/principals.py", line 489, in action_removePrincipal
    config.directory.destroyRecord(record.recordType, guid=guid)
  File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/aggregate.py", line 255, in destroyRecord
    return service.destroyRecord(recordType, guid=guid)
  File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/xmlfile.py", line 486, in destroyRecord
    self._persistRecords(accountsElement)
  File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/xmlfile.py", line 420, in _persistRecords
    os.chown(self.xmlFile.path, uid, gid)
exceptions.OSError: [Errno 1] Operation not permitted: '/etc/caldavd/accounts.xml'
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run
    self.mainLoop()

  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
    self.runUntilCurrent()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1187, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1045, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/dist-packages/calendarserver/tools/principals.py", line 356, in runPrincipalActions
    (yield action[0](principal, *action[1:]))
  File "/usr/lib/python2.7/dist-packages/calendarserver/tools/principals.py", line 489, in action_removePrincipal
    config.directory.destroyRecord(record.recordType, guid=guid)
  File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/aggregate.py", line 255, in destroyRecord
    return service.destroyRecord(recordType, guid=guid)
  File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/xmlfile.py", line 486, in destroyRecord
    self._persistRecords(accountsElement)
  File "/usr/lib/python2.7/dist-packages/twistedcaldav/directory/xmlfile.py", line 420, in _persistRecords
    os.chown(self.xmlFile.path, uid, gid)
exceptions.OSError: [Errno 1] Operation not permitted: '/etc/caldavd/accounts.xml‘

Anybody knows a good documentation source for debian and calendarserver? I could´t find any documentation - only the quick setup guide from the wiki :(.

Thanks,
Michael


More information about the calendarserver-users mailing list