apple / ccs-calendarserver

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

Can't start caldavd binary Ubuntu 10.04 #460

Closed macosforgebot closed 9 years ago

macosforgebot commented 14 years ago

clemens.kroell@… originally submitted this as ticket:397


clemens@hermann:/etc/caldavd$ sudo caldavd -X -L
/usr/lib/python2.6/dist-packages/twisted/mail/smtp.py:10: DeprecationWarning: the MimeWriter module is deprecated; use the email package instead
  import MimeWriter, tempfile, rfc822
/usr/local/lib/python2.6/dist-packages/calendarserver/tap/caldav.py:50: DeprecationWarning: mktap and related support modules are deprecated as of Twisted 8.0.  Use Twisted Application Plugins with the 'twistd' command directly, as described in 'Writing a Twisted Application Plugin for twistd' chapter of the Developer Guide.
  from twisted.scripts.mktap import getid
Reading configuration from file: /etc/caldavd/caldavd.plist
Removing stale pidfile /var/calendar/Logs/caldavd.pid
2010-08-25 12:25:31+0200 [-] Log opened.
2010-08-25 12:25:31+0200 [-] twistd 10.0.0 (/usr/bin/python 2.6.5) starting up.
2010-08-25 12:25:31+0200 [-] reactor class: twisted.internet.selectreactor.SelectReactor.
2010-08-25 12:25:31+0200 [-] /usr/lib/python2.6/dist-packages/twisted/application/internet.py:116: exceptions.DeprecationWarning: The mode parameter of IReactorUNIX.listenUNIX will be removed.  Do not pass a value for it.  Set permissions on the containing directory before calling IReactorUNIX.listenUNIX, instead.
2010-08-25 12:25:31+0200 [-] calendarserver.accesslog.AMPLoggingFactory starting on "'/var/calendar/Logs/caldavd.sock'"
2010-08-25 12:25:31+0200 [-] <class 'twext.web2.metafd.LimitingInheritingProtocolFactory'> starting on 8008
2010-08-25 12:25:31+0200 [-] calendarserver.tap.caldav.CalDAVStatisticsServer starting on "'/var/calendar/Logs/caldavd-stats.sock'"
2010-08-25 12:25:31+0200 [-] Traceback (most recent call last):
2010-08-25 12:25:31+0200 [-]   File "/usr/bin/twistd", line 19, in <module>
2010-08-25 12:25:31+0200 [-]     run()
2010-08-25 12:25:31+0200 [-]   File "/usr/lib/python2.6/dist-packages/twisted/scripts/twistd.py", line 27, in run
2010-08-25 12:25:31+0200 [-]     app.run(runApp, ServerOptions)
2010-08-25 12:25:31+0200 [-]   File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 693, in run
2010-08-25 12:25:31+0200 [-]     runApp(config)
2010-08-25 12:25:31+0200 [-]   File "/usr/lib/python2.6/dist-packages/twisted/scripts/twistd.py", line 23, in runApp
2010-08-25 12:25:31+0200 [-]     _SomeApplicationRunner(config).run()
2010-08-25 12:25:31+0200 [-]   File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 423, in run
2010-08-25 12:25:31+0200 [-]     self.postApplication()
2010-08-25 12:25:31+0200 [-]   File "/usr/lib/python2.6/dist-packages/twisted/scripts/_twistd_unix.py", line 205, in postApplication
2010-08-25 12:25:31+0200 [-]     self.startApplication(self.application)
2010-08-25 12:25:31+0200 [-]   File "/usr/lib/python2.6/dist-packages/twisted/scripts/_twistd_unix.py", line 317, in startApplication
2010-08-25 12:25:31+0200 [-]     app.startApplication(application, not self.config['no_save'])
2010-08-25 12:25:31+0200 [-]   File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 713, in startApplication
2010-08-25 12:25:31+0200 [-]     service.IService(application).startService()
2010-08-25 12:25:31+0200 [-]   File "/usr/lib/python2.6/dist-packages/twisted/application/service.py", line 278, in startService
2010-08-25 12:25:31+0200 [-]     service.startService()
2010-08-25 12:25:31+0200 [-]   File "/usr/lib/python2.6/dist-packages/twisted/application/service.py", line 278, in startService
2010-08-25 12:25:31+0200 [-]     service.startService()
2010-08-25 12:25:31+0200 [-]   File "/usr/local/lib/python2.6/dist-packages/txdav/datastore/subpostgres.py", line 401, in startService
2010-08-25 12:25:31+0200 [-]     initdb = which("initdb")[0]
2010-08-25 12:25:31+0200 [-] IndexError: list index out of range
clemens@hermann:/etc/caldavd$ 
macosforgebot commented 14 years ago

clemens.kroell@… originally submitted this as comment:1:⁠ticket:397

macosforgebot commented 14 years ago

@dreness originally submitted this as comment:2:⁠ticket:397


I'm guessing this has something to do with how you are attempting to start the service. To be honest, I've not had much success in running the service except out of SVN checkout (or in the standard fashion on Mac OS X Server, our 'most native' platform). The task of performing an installation varies from platform to platform, but running out of SVN checkout is basically the same everywhere.

I just verified that Ubuntu 10.04 can start the server and is almost fully functional, passing 2592 out of 2611 CalDAV protocol tests.

Here's my Ubuntu setup recipe: http://www.dreness.com/blog/?p=153

macosforgebot commented 14 years ago

john.holland@… originally submitted this as comment:3:⁠ticket:397


I too was able to give the server running using Ubuntu 10.04. The results I got while testing are:

Overall Results: 2575 PASSED, 12 FAILED, 244 IGNORED

I commented the PyXml stuff in build.sh and exported PATH=$PATH:/usr/lib/postgresql/8.4/bin[[BR]]

diffing the caldavd-test.plist and caldavd-dev.plist shows:

diff -uNr conf/caldavd-test.plist conf/caldavd-dev.plist 
--- conf/caldavd-test.plist 2010-08-26 09:08:18.981188578 +0200
+++ conf/caldavd-dev.plist  2010-08-26 09:21:14.278824030 +0200
@@ -34,6 +34,12 @@
     <key>ServerHostName</key>
     <string></string> <!-- The hostname clients use when connecting -->

+    <key>EnableCalDAV</key>
+    <true/>
+
+    <key>EnableCardDAV</key>
+    <true/>
+
     <!-- HTTP port [0 = disable HTTP] -->
     <key>HTTPPort</key>
     <integer>8008</integer>
@@ -62,11 +68,15 @@
     <!-- List of port numbers to bind to for HTTP [empty = same as "Port"] -->
     <key>BindHTTPPorts</key>
     <array>
+       <integer>8008</integer>
+       <integer>8800</integer>
     </array>

     <!-- List of port numbers to bind to for SSL [empty = same as "SSLPort"] -->
     <key>BindSSLPorts</key>
     <array>
+       <integer>8443</integer>
+       <integer>8843</integer>
     </array>

@@ -727,12 +737,14 @@
     <dict>
       <key>MaxClients</key>
       <integer>5</integer>
-      <key>memcached</key>
-      <string>memcached</string> <!-- Find in PATH -->
-      <key>Options</key>
-      <array>
-        <!--<string>-vv</string>--> <!-- Be very verbose -->
-      </array>
+      <key>Pools</key>
+      <dict>
+         <key>Default</key>
+         <dict>
+            <key>ServerEnabled</key>
+            <false/>
+         </dict>
+      </dict>
     </dict>
macosforgebot commented 14 years ago

john.holland@… originally submitted this as comment:4:⁠ticket:397


Sorry, forgot to mention testing against the generic-sqlstore branch.

A quick look at the results:

IGNORED: due to Missing features: per-object-ACLs, regular-collection FAILED: due to Failed Verifier: multistatusItems and perhaps others...

macosforgebot commented 14 years ago

@wsanchez originally submitted this as comment:5:⁠ticket:397

macosforgebot commented 14 years ago

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

macosforgebot commented 12 years ago

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

macosforgebot commented 12 years ago

olivier@… originally submitted this as comment:8:⁠ticket:397


Just experienced the very same problem here on Solaris 11.

It was due to the initdb, createdb and other binaries from postgresql not being in the path at the time I tried to start the daemon. Just thought I'd let you know. Fixed my PATH and it started like without any problems.

macosforgebot commented 12 years ago

olivier@… originally submitted this as comment:9:⁠ticket:397

macosforgebot commented 11 years ago

@wsanchez originally submitted this as comment:13:⁠ticket:397


This is a config issue, but the exception with traceback is not a useful error message.

macosforgebot commented 9 years ago

@wsanchez originally submitted this as comment:14:⁠ticket:397


I fixed the traceback in trunk recently