apple / ccs-calendarserver

The Calendar and Contacts Server.
https://www.calendarserver.org
Apache License 2.0
486 stars 136 forks source link

Unable to start CalendarServer on Suse #283

Closed macosforgebot closed 13 years ago

macosforgebot commented 14 years ago

tillz@… originally submitted this as ticket:356


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
macosforgebot commented 14 years ago

armin.kraetschmer@… originally submitted this as comment:1:⁠ticket:356


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

macosforgebot commented 14 years ago

@wsanchez originally submitted this as comment:2:⁠ticket:356


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

macosforgebot commented 14 years ago

@wsanchez originally submitted this as comment:3:⁠ticket:356

macosforgebot commented 14 years ago

plaes@… originally submitted this as attachment:0001-Allow-starting-server-without-kerberos-support.patch:⁠ticket:356


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

macosforgebot commented 14 years ago

plaes@… originally submitted this as comment:4:⁠ticket:356

macosforgebot commented 14 years ago

alexis@… originally submitted this as comment:5:⁠ticket:356

macosforgebot commented 13 years ago

@wsanchez originally submitted this as comment:6:⁠ticket:356


Fixed in r7840

macosforgebot commented 13 years ago

@wsanchez originally submitted this as comment:7:⁠ticket:356