[CalendarServer-users] Installing on Leopard client

Scott Buchanan dscottbuch at mac.com
Wed Mar 5 16:27:52 PST 2008


Thanks.  Putting the command in /Library/StartupItems instead of  
Launchd worked.  I've been trying to understand the ins and outs of  
launchd and so would like to understand the error but otherwise great.
________________________________________________________
Scott Buchanan

DSB Associates                e-mail: dscottbuch at mac.com
4-D Neuroimaging            Tel: (858) 759-9496
                                               Fax: (858) 759-0825
________________________________________________________




On Mar 5, 2008, at 4:06 PM, fano.de Team wrote:

> Although I have other problems with the caldav server, my installation
> was quite easy and worked two times so far.
>
> I used Xcode to connect and checkout the appropriate files. Put things
> in ~/Projects/
> After that just ran the run script provided to d/l the rest of the
> neccessary files/folders.
> At the end a little configuration just to create users and bind the
> server to the local IP.
> Putting the run command into the startup files of the user, that
> simply was it.
>
> I did this install on an old G4 quicksilver with dual 1.8 G4 cpu card
> with 10.5.2 and no user changes to the python framework.
>
> Strongly recommend the above method to get things running in about 10
> mins.
>
> best, mac
>
>
> Am 06.03.2008 um 00:50 schrieb Scott Buchanan:
>
>> Continuing the 'installation on 10.5 client'  theme I've found the
>> following but am now stuck.
>>
>> 1)  I found I had to de-install several independent builds of the
>> python support libraries.  For example, as best I can tell and I
>> didn't really try to pin things down by testing back and forth, the
>> latest version of Twisted does NOT work with this server.  But if you
>> have it installed in /Library/Frameworks/Python.framework/Versions/
>> Current/lib/python2.5/site-packages then CalendarServer's build won't
>> download and install its version.  CS's version seems to have a
>> specific build number and specific patches for twisted.  What I did
>> was go to /Library/Frameworks/Python.framework/Versions/Current/lib/
>> python2.5/site-packages/ and delete all packages used by CS and then
>> re-installed through CS.  This then worked and doing run -i installs
>> everything in /Library/Frameworks/Python.framework/Versions/2.5.
>>
>> I put all configuration files in /etc/caldavd
>>
>> Data Root in /var/run/caldavd
>> Document Root in /Library/CalendarServer/Documents
>> Logs in /var/log/caldavd
>>
>> And then the command line
>>
>> sudo /Library/Frameworks/Python.framework/Versions/Current/bin/ 
>> caldavd
>> -f /etc/caldavd/caldavd.plist -P caldav -t Combined -T /Library/
>> Frameworks/Python.framework/Versions/Current/bin/twistd
>>
>> works great.
>>
>> The problem occurs when I try to create a plist file for launchd  
>> using
>> the above.  I always get the error
>>
>> 2008-03-05 15:02:46-0800 [-] Log opened.
>> 2008-03-05 15:02:46-0800 [-] twistd 2.5.0 (/Library/Frameworks/
>> Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/
>> Python 2.5.0) starting up
>> 2008-03-05 15:02:46-0800 [-] reactor class: <class
>> 'twisted.internet.selectreactor.SelectReactor'>
>> 2008-03-05 15:02:46-0800 [-] 2 processors found, configuring 2
>> processes.
>> 2008-03-05 15:02:46-0800 [-] Traceback (most recent call last):
>> 2008-03-05 15:02:46-0800 [-]   File "/Library/Frameworks/
>> Python.framework/Versions/2.5/bin/twistd", line 21, in <module>
>> 2008-03-05 15:02:46-0800 [-]     run()
>> 2008-03-05 15:02:46-0800 [-]   File "Library/Frameworks/
>> Python.framework/Versions/2.5/lib/python2.5/site-packages/twisted/
>> scripts/twistd.py", line 27, in run
>> 2008-03-05 15:02:46-0800 [-]     app.run(runApp, ServerOptions)
>> 2008-03-05 15:02:46-0800 [-]   File "Library/Frameworks/
>> Python.framework/Versions/2.5/lib/python2.5/site-packages/twisted/
>> application/app.py", line 379, in run
>> 2008-03-05 15:02:46-0800 [-]     runApp(config)
>> 2008-03-05 15:02:46-0800 [-]   File "Library/Frameworks/
>> Python.framework/Versions/2.5/lib/python2.5/site-packages/twisted/
>> scripts/twistd.py", line 23, in runApp
>> 2008-03-05 15:02:46-0800 [-]     _SomeApplicationRunner(config).run()
>> 2008-03-05 15:02:46-0800 [-]   File "Library/Frameworks/
>> Python.framework/Versions/2.5/lib/python2.5/site-packages/twisted/
>> application/app.py", line 157, in run
>> 2008-03-05 15:02:46-0800 [-]     self.application =
>> self.createOrGetApplication()
>> 2008-03-05 15:02:46-0800 [-]   File "Library/Frameworks/
>> Python.framework/Versions/2.5/lib/python2.5/site-packages/twisted/
>> application/app.py", line 202, in createOrGetApplication
>> 2008-03-05 15:02:46-0800 [-]     ser =
>> plg.makeService(self.config.subOptions)
>> 2008-03-05 15:02:46-0800 [-]   File "Library/Frameworks/
>> Python.framework/Versions/2.5/lib/python2.5/site-packages/
>> twistedcaldav/tap.py", line 751, in makeService
>> 2008-03-05 15:02:46-0800 [-]     service = serviceMethod(options)
>> 2008-03-05 15:02:46-0800 [-]   File "Library/Frameworks/
>> Python.framework/Versions/2.5/lib/python2.5/site-packages/
>> twistedcaldav/cluster.py", line 204, in makeService_Combined
>> 2008-03-05 15:02:46-0800 [-]      
>> monitor.addProcess(process.getName(),
>> 2008-03-05 15:02:46-0800 [-]   File "Library/Frameworks/
>> Python.framework/Versions/2.5/lib/python2.5/site-packages/
>> twistedcaldav/cluster.py", line 76, in getName
>> 2008-03-05 15:02:46-0800 [-]     "Can't create TwistdSlaveProcess
>> without a TCP Port")
>> 2008-03-05 15:02:46-0800 [-] twistedcaldav.config.ConfigurationError:
>> Can't create TwistdSlaveProcess without a TCP Port
>>
>>
>> I'm sure its something in the environment but I'm not sure how to
>> configure it.
>>
>> Any help??
>>
>> ________________________________________________________
>> Scott Buchanan
>>
>> DSB Associates                e-mail: dscottbuch at mac.com
>> 4-D Neuroimaging            Tel: (858) 759-9496
>>                                              Fax: (858) 759-0825
>> ________________________________________________________
>>
>>
>>
>>
>> On Feb 25, 2008, at 12:37 PM, Robert Harris wrote:
>>
>>>
>>> On 25 Feb 2008, at 18:58, Scott Buchanan wrote:
>>>
>>>> Hi,
>>>>
>>>> Are there a clear set of instructions on how to install and
>>>> configure Calendarserver on a Leopard client?  I can download,
>>>> build and run the daemon from the source directory with the test
>>>> accounts, etc. but when I go to (./run -i / ) install it as a
>>>> system daemon and install the launchd plist I'm not sure where
>>>> things are.  For example the installed version of twistd always
>>>> complains about not enough parameters but if I point back to the
>>>> source directory version all is OK.  I'm sure this is path/
>>>> pythonpath issue but I don't know enough about twistd and python to
>>>> puzzle this out.
>>>>
>>>> So my original question, Are there a clear set of instructions on
>>>> how to install and configure Calendarserver on a Leopard client?
>>>
>>> I posed pretty much the same problems and questions but never got an
>>> answer.
>>>
>>> The "wrong number of parameters" may be a missing slash at the
>>> beginning of PYTHONPATH in /usr/local/bin/caldavd .
>>>
>>> I managed to get DCS running with the following directory structure,
>>> all
>>> under /Users/calendar :
>>>
>>> - conf/			containing accounts.dtd, accounts.xml, caldavd.plist,
>>> mime.types
>>> 				and sudoers.plist
>>> - data/			in which digest.sqlite is created
>>> - documents/		containing the directories principals/ and
>>> calendars/ . I think that
>>> 				they are populated appropriately by the server, perhaps after
>>> 				pointing an iCal client at it for a new user. I also put
>>> server.pem here.
>>> - log/			in which log files are created
>>>
>>> If you find a better installation guide please let me know :)
>>>
>>> Robert
>>>
>>>
>>>
>>>
>>>
>>
>> _______________________________________________
>> calendarserver-users mailing list
>> calendarserver-users at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users
>
>
>
> Vielen Dank und viel Spass beim Urlaub auf Fanø wünscht das fano.de
> Team 8)
> --
> Besuchen Sie die schönste Insel Dänemarks / Visit Denmarks most
> beautiful island: http://www.fano.de!
>
>
> _______________________________________________
> calendarserver-users mailing list
> calendarserver-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users



More information about the calendarserver-users mailing list