[Calendar and Contacts Server] #397: Can't start caldavd binary Ubuntu 10.04
#397: Can't start caldavd binary Ubuntu 10.04 --------------------------------------+------------------------------------- Reporter: clemens.kroell@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: CalendarServer-3.x Component: Calendar Server | Severity: Serious Keywords: | --------------------------------------+------------------------------------- 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$ -- Ticket URL: <http://trac.calendarserver.org/ticket/397> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
#397: Can't start caldavd binary Ubuntu 10.04 --------------------------------------+------------------------------------- Reporter: clemens.kroell@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: CalendarServer-3.x Component: Calendar Server | Severity: Serious Keywords: | --------------------------------------+------------------------------------- Comment(by dre@…): 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 -- Ticket URL: <http://trac.calendarserver.org/ticket/397#comment:2> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
#397: Can't start caldavd binary Ubuntu 10.04 --------------------------------------+------------------------------------- Reporter: clemens.kroell@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: CalendarServer-3.x Component: Calendar Server | Severity: Serious Keywords: | --------------------------------------+------------------------------------- Comment(by john.holland@…): I too was able to give the server running using Ubuntu 10.04. The results I got while testing are:[[BR]] Overall Results: 2575 PASSED, 12 FAILED, 244 IGNORED[[BR]] [[BR]] I commented the PyXml stuff in build.sh and exported PATH=$PATH:/usr/lib/postgresql/8.4/bin[[BR]] [[BR]] diffing the caldavd-test.plist and caldavd-dev.plist shows:[[BR]] {{{ 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> }}} -- Ticket URL: <http://trac.calendarserver.org/ticket/397#comment:3> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
#397: Can't start caldavd binary Ubuntu 10.04 --------------------------------------+------------------------------------- Reporter: clemens.kroell@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: CalendarServer-3.x Component: Calendar Server | Severity: Serious Keywords: | --------------------------------------+------------------------------------- Comment(by john.holland@…): Sorry, forgot to mention testing against the generic-sqlstore branch.[[BR]] A quick look at the results:[[BR]] IGNORED: due to {{{ Missing features: per-object-ACLs, regular- collection }}}[[BR]] FAILED: due to {{{ Failed Verifier: multistatusItems }}}[[BR]] and perhaps others... -- Ticket URL: <http://trac.calendarserver.org/ticket/397#comment:4> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
#397: Can't start caldavd binary Ubuntu 10.04 --------------------------------------+------------------------------------- Reporter: clemens.kroell@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: CalendarServer-3.x Component: Calendar Server | Severity: Serious Keywords: | --------------------------------------+------------------------------------- Description changed by wsanchez@…: Old description:
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$
New description: {{{ 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$ }}} -- -- Ticket URL: <http://trac.calendarserver.org/ticket/397#comment:5> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
#397: Can't start caldavd binary Ubuntu 10.04 --------------------------------------+------------------------------------- Reporter: clemens.kroell@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 3: Important | Milestone: Linux Port Component: Calendar Server | Severity: Serious Keywords: | --------------------------------------+------------------------------------- Changes (by wsanchez@…): * priority: 5: Not set => 3: Important * milestone: CalendarServer-3.x => Linux Port -- Ticket URL: <http://trac.calendarserver.org/ticket/397#comment:6> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
#397: Can't start caldavd binary Ubuntu 10.04 --------------------------------------+------------------------------------- Reporter: clemens.kroell@… | Owner: glyph@… Type: Defect | Status: new Priority: 3: Important | Milestone: Linux Port Component: Calendar Server | Severity: Serious Keywords: | Radar: --------------------------------------+------------------------------------- Changes (by wsanchez@…): * owner: wsanchez@… => glyph@… -- Ticket URL: <http://trac.calendarserver.org/ticket/397#comment:7> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
#397: Can't start caldavd binary Ubuntu 10.04 --------------------------------------+------------------------------------- Reporter: clemens.kroell@… | Owner: glyph@… Type: Defect | Status: new Priority: 3: Important | Milestone: Linux Port Component: Calendar Server | Severity: Serious Keywords: | Radar: --------------------------------------+------------------------------------- Comment(by olivier@…): 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. -- Ticket URL: <http://trac.calendarserver.org/ticket/397#comment:8> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
participants (1)
-
Calendar and Contacts Server