Projects
Wiki     Timeline     Roadmap     Browse Source     View Tickets     New Ticket     Search

Ticket #356 (new Defect)

Opened 7 months ago

Last modified 5 months ago

Unable to start CalendarServer on Suse

Reported by: tillz@… Owned by: cdaboo@…
Priority: 1: Blocker Milestone: Linux Port
Component: Calendar Server Severity: Other
Keywords: Cc: plaes@…

Description

Hello, I'm unable to start the Calendarserver. krb5-config can't be installed.

support/build.sh: line 438: type: krb5-config: not found

Building xattr...

Building Twisted... [overrides system, building egg-info metadata only]

Using python as Python

Starting server...
exec python /home/ical/Twisted/bin/twistd  -n caldav -f /home/ical/CalendarServer/conf/caldavd-dev.plist -o ProcessType=Combined 
Traceback (most recent call last):
  File "/home/ical/Twisted/bin/twistd", line 19, in <module>
    run()
  File "/home/ical/Twisted/twisted/scripts/twistd.py", line 27, in run
    app.run(runApp, ServerOptions)
  File "/home/ical/Twisted/twisted/application/app.py", line 689, in run
    config.parseOptions()
  File "/home/ical/Twisted/twisted/application/app.py", line 669, in parseOptions
    usage.Options.parseOptions(self, options)
  File "/home/ical/Twisted/twisted/python/usage.py", line 226, in parseOptions
    for (cmd, short, parser, doc) in self.subCommands:
  File "/home/ical/Twisted/twisted/application/app.py", line 680, in subCommands
    self.loadedPlugins[plug.tapname] = plug
  File "/home/ical/CalendarServer/twisted/plugins/caldav.py", line 13, in getProperty
    return getattr(reflect.namedClass(self.serviceMakerClass), propname)
  File "/home/ical/Twisted/twisted/python/reflect.py", line 349, in namedObject
    module = namedModule('.'.join(classSplit[:-1]))
  File "/home/ical/Twisted/twisted/python/reflect.py", line 337, in namedModule
    topLevel = __import__(name)
  File "/home/ical/CalendarServer/calendarserver/sidecar/task.py", line 24, in <module>
    from calendarserver.provision.root import RootResource
  File "/home/ical/CalendarServer/calendarserver/provision/root.py", line 39, in <module>
    from twistedcaldav.static import CalendarHomeFile
  File "/home/ical/CalendarServer/twistedcaldav/static.py", line 1200, in <module>
    bindMethods(twistedcaldav.method, CalDAVFile)
  File "/home/ical/Twisted/twisted/web2/dav/util.py", line 195, in bindMethods
    Failure().raiseException()
  File "/home/ical/Twisted/twisted/web2/dav/util.py", line 192, in bindMethods
    __import__(module.__name__ + "." + submodule_name)
  File "/home/ical/CalendarServer/twistedcaldav/method/copymove.py", line 34, in <module>
    from twistedcaldav.method.put_common import StoreCalendarObjectResource
  File "/home/ical/CalendarServer/twistedcaldav/method/put_common.py", line 66, in <module>
    from twistedcaldav.method.delete_common import DeleteResource
  File "/home/ical/CalendarServer/twistedcaldav/method/delete_common.py", line 40, in <module>
    from twistedcaldav.scheduling.implicit import ImplicitScheduler
  File "/home/ical/CalendarServer/twistedcaldav/scheduling/implicit.py", line 39, in <module>
    from twistedcaldav.directory.principal import DirectoryCalendarPrincipalResource
  File "/home/ical/CalendarServer/twistedcaldav/directory/principal.py", line 51, in <module>
    from twistedcaldav.authkerb import NegotiateCredentials
  File "/home/ical/CalendarServer/twistedcaldav/authkerb.py", line 41, in <module>
    import kerberos
ImportError: No module named kerberos

Attachments

0001-Allow-starting-server-without-kerberos-support.patch Download (1.5 KB) - added by plaes@… 5 months ago.
Allow-starting-server-without-kerberos-support.patch

Change History

in reply to: ↑ description   Changed 7 months ago by armin.kraetschmer@…

Replying to tillz@…:

Hello, I'm unable to start the Calendarserver. krb5-config can't be installed. [...]

Hi,

I can confirm this behaviour. Installed DCS on Gentoo (x86_64, 2.6.31-gentoo-r6), when I tried to start it I got the same error message.

Fact is: the cause for this is a missing kerberos/PyKerberos install (kerberos/PyKerberos is not needed for DCS to work and I don't want/need kerberos on my home server). The krb5-config: not found thing can be ignored, as it's just a check, if kerberos is available (in this case it is not). If this check (located in the support/build.sh script, line 438) fails, the setup for the PyKerberos package won't be downloaded and run (as it is not needed for a system without kerberos).

My workaround for getting the server to work anyway: just comment the import kerberos directive in twistedcaldav/authkerb.py, line 41. After commenting the line, the server runs without any problems. Maybe you also have to ensure that the kerberos authentication in conf/caldavd-dev.xml is deactivated (per default it is; haven't tested, if it causes any problems when active).

Hope this helps a little. Greetings, Armin

  Changed 7 months ago by wsanchez@…

  • priority changed from 5: Not set to 1: Blocker

We really need to be more tolerant here and just disable kerberos functionality rather than bombing out.

  Changed 7 months ago by wsanchez@…

  • owner changed from wsanchez@… to cdaboo@…

Changed 5 months ago by plaes@…

Allow-starting-server-without-kerberos-support.patch

  Changed 5 months ago by plaes@…

  • cc plaes@… added

Cc Me!

Note: See TracTickets for help on using tickets.