[CalendarServer-users] Installing Calendar Server
xxyy123 at optusnet.com.au
xxyy123 at optusnet.com.au
Sat Nov 13 19:06:00 PST 2010
Thank you, Andre, for your reply.
Having now followed that link (which explains how to download and compile as a developer, nothing about deployment except what _not_ to do), and tried to follow the instructions, I managed to it get it compiled and working in a 'test' environment. Issue (1) below always appeared.
These are the issues I have trying to deploy:
1) Compiler error when trying:
A system version of twisted exists, but version is 8.2.0 (< 10.1).
Building Twisted...
unrecognized .svn/entries format in
conftest.c:1:23: error: sys/epoll.h: No such file or directory
conftest.c:1:23: error: sys/epoll.h: No such file or directory
conftest.c:1:23: error: sys/epoll.h: No such file or directory
lipo: can't open input file: /var/folders/NF/NF7P443VE3K04yAADfdxwE+++TI/-Tmp-//ccGWCmnv.out (No such file or directory)
But this does not yet seem to cause any problems.
2) When I looked in 'run' it says deployment is achieved by
"./run -i
# /tmp/foo && cd /tmp/foo && pax -pe -rvw . /") and use the caldavd
# executable to start the server.
Except, when I perform the pax command as an admin, not root, it has permission errors. So I installed as root and tried to run as admin user and items such as ./data were missing (need to run as non-root for PosrGRESQL reasons) eg
$ /usr/local/bin/caldavd -f caldavd-dev.plist
/Library/Python/2.6/site-packages/twisted/mail/smtp.py:10: DeprecationWarning: the MimeWriter module is deprecated; use the email package instead
import MimeWriter, tempfile, rfc822
Reading configuration from file: caldavd-dev.plist
Traceback (most recent call last):
File "/usr/bin/twistd", line 21, in <module>
run()
File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/scripts/twistd.py", line 27, in run
app.run(runApp, ServerOptions)
File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/application/app.py", line 621, in run
config.parseOptions()
File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/application/app.py", line 601, in parseOptions
usage.Options.parseOptions(self, options)
File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/python/usage.py", line 231, in parseOptions
self.subOptions.parseOptions(rest)
File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/python/usage.py", line 241, in parseOptions
self.postOptions()
File "/Library/Python/2.6/site-packages/calendarserver/tap/caldav.py", line 263, in postOptions
self.checkConfiguration()
File "/Library/Python/2.6/site-packages/calendarserver/tap/caldav.py", line 311, in checkConfiguration
access=os.W_OK,
File "/Library/Python/2.6/site-packages/calendarserver/tap/caldav.py", line 281, in checkDirectory
checkDirectory(dirpath, description, access=access, create=create)
File "/Library/Python/2.6/site-packages/calendarserver/tools/util.py", line 234, in checkDirectory
% (description, dirpath))
twistedcaldav.config.ConfigurationError: Server root does not exist: ./data
So, how is the data directory supposed to be created? How is one supposed to install/deploy?
3) Tried to start caldavd from within my test area but got some sort of index out of range error:
$ /usr/local/bin/caldavd -f conf/caldavd-dev.plist -L -X
/Library/Python/2.6/site-packages/twisted/mail/smtp.py:10: DeprecationWarning: the MimeWriter module is deprecated; use the email package instead
import MimeWriter, tempfile, rfc822
Reading configuration from file: conf/caldavd-dev.plist
Removing stale pidfile /CalendarServer/data/Logs/state/caldavd.pid
2010-11-14 13:21:20+1100 [-] Log opened.
2010-11-14 13:21:20+1100 [-] twistd 10.1.0 (/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python 2.6.1) starting up.
2010-11-14 13:21:20+1100 [-] reactor class: twisted.internet.selectreactor.SelectReactor.
2010-11-14 13:21:20+1100 [-] calendarserver.accesslog.AMPLoggingFactory starting on "'./data/Logs/state/caldavd.sock'"
2010-11-14 13:21:20+1100 [-] <class 'twext.web2.metafd.LimitingInheritingProtocolFactory'> starting on 8008
2010-11-14 13:21:20+1100 [-] <class 'twext.web2.metafd.LimitingInheritingProtocolFactory'> starting on 8800
2010-11-14 13:21:20+1100 [-] <class 'twext.web2.metafd.LimitingInheritingProtocolFactory'> starting on 8443
2010-11-14 13:21:20+1100 [-] <class 'twext.web2.metafd.LimitingInheritingProtocolFactory'> starting on 8843
2010-11-14 13:21:20+1100 [-] calendarserver.tap.caldav.CalDAVStatisticsServer starting on "'./data/Logs/state/caldavd-stats.sock'"
2010-11-14 13:21:20+1100 [-] Traceback (most recent call last):
2010-11-14 13:21:20+1100 [-] File "/usr/bin/twistd", line 21, in <module>
2010-11-14 13:21:20+1100 [-] run()
2010-11-14 13:21:20+1100 [-] File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/scripts/twistd.py", line 27, in run
2010-11-14 13:21:20+1100 [-] app.run(runApp, ServerOptions)
2010-11-14 13:21:20+1100 [-] File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/application/app.py", line 626, in run
2010-11-14 13:21:20+1100 [-] runApp(config)
2010-11-14 13:21:20+1100 [-] File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/scripts/twistd.py", line 23, in runApp
2010-11-14 13:21:20+1100 [-] _SomeApplicationRunner(config).run()
2010-11-14 13:21:20+1100 [-] File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/application/app.py", line 378, in run
2010-11-14 13:21:20+1100 [-] self.postApplication()
2010-11-14 13:21:20+1100 [-] File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/scripts/_twistd_unix.py", line 205, in postApplication
2010-11-14 13:21:20+1100 [-] self.startApplication(self.application)
2010-11-14 13:21:20+1100 [-] File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/scripts/_twistd_unix.py", line 317, in startApplication
2010-11-14 13:21:20+1100 [-] app.startApplication(application, not self.config['no_save'])
2010-11-14 13:21:20+1100 [-] File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/application/app.py", line 648, in startApplication
2010-11-14 13:21:20+1100 [-] service.IService(application).startService()
2010-11-14 13:21:20+1100 [-] File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/application/service.py", line 278, in startService
2010-11-14 13:21:20+1100 [-] service.startService()
2010-11-14 13:21:20+1100 [-] File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/application/service.py", line 278, in startService
2010-11-14 13:21:20+1100 [-] service.startService()
2010-11-14 13:21:20+1100 [-] File "/CalendarServer/txdav/base/datastore/subpostgres.py", line 382, in startService
2010-11-14 13:21:20+1100 [-] initdb = which("initdb")[0]
2010-11-14 13:21:20+1100 [-] IndexError: list index out of range
Thank you for any assistance. Maybe I'll submit some documentation when I get it working.
Regards
Godfrey
On 14/11/2010, at 10:59 AM, Andre LaBranche wrote:
> To build trunk code from source:
>
> http://trac.calendarserver.org/wiki/QuickStart
>
> linked from: http://trac.calendarserver.org/wiki/docs-trunk
>
> Cheers,
> -dre
>
> On Nov 13, 2010, at 1:56 PM, xxyy123 at optusnet.com.au wrote:
>
>> Hi,
>>
>> I am trying to install Calendar Server.
>> I have installed macports and darwinbuild on Snow Leopard 10.6.4. Although I had XCode 3.2.1 installed, it could not find 'make' so I had to install XCode 3.2.2.
>>
>> Now, how do I install and configure the Calendar server? I cannot find any information at http://trac.calendarserver.org/
>>
>> Thank you.
>> _______________________________________________
>> calendarserver-users mailing list
>> calendarserver-users at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-users/attachments/20101114/785a5639/attachment-0001.html>
More information about the calendarserver-users
mailing list