Skip to content
This repository has been archived by the owner. It is now read-only.

Unable to start CalendarServer on Suse #283

Closed
macosforgebot opened this issue Dec 24, 2009 · 8 comments
Closed

Unable to start CalendarServer on Suse #283

macosforgebot opened this issue Dec 24, 2009 · 8 comments

Comments

@macosforgebot
Copy link

@macosforgebot macosforgebot commented Dec 24, 2009

tillz@… originally submitted this as ticket:356

  • Cc: plaes@…, alexis@…

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
Copy link
Author

@macosforgebot macosforgebot commented Jan 2, 2010

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
Copy link
Author

@macosforgebot macosforgebot commented Jan 4, 2010

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

  • 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.

@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Jan 4, 2010

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

@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Mar 7, 2010

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


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

@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Mar 7, 2010

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

  • Cc plaes@… added
@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Aug 9, 2010

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

  • Cc alexis@… added
@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Aug 1, 2011

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

  • Radar deleted
  • Milestone changed from Linux Port to CalendarServer-3.1

Fixed in r7840

@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Aug 1, 2011

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

  • Status changed from new to closed
  • Resolution changed from to Software changed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.