(forgot to send my reply to the list - doh!)

> From: Matthew Fairley
> Date: 24 February 2011 22:41:16 GMT
> To: Andre LaBranche
> Subject: Re: [CalendarServer-users] Where are the calendars located?
> 

> Hi Andre,
> 
> Thanks for the reply. Unfortunately, I don't appear to be any further 
> forward. Now, when I try to run the server using the command you suggested, 
> from the Calendar Server folder I only get a couple of lines of text, 
> summarised as follows:
> 
> Mimewriter module is deprecated; use the email package instead
> 
> Reading configuration from file... caldavd.plist
> 
> Removing stale pidfile...caldavd.pid
> 
> Running iCal after this, I get a connection refused error and looking at the 
> error.log the last thing is (again, in summary):
> 
> .../txdav/base/datastore/subpostgres.py, line 382, in startservice
> initdb = which("initdb")[0]
> IndexError: list index out of range
> 
> When I run the server using the ./run command it runs fine, but not using 
> caldavd.
> 
> I've also tried running the command you suggested with the -X, just in case I 
> wasn't seeing all the messages. I've also tried it using the -T switch. No 
> difference to the output in either case
> 
> Anything else I can try?
> 
> Thanks again,
> 
> Matt
> 
> Sent from my iPhone
> 
> On 18 Feb 2011, at 18:06, Andre LaBranche wrote:
> 
>> One thing the run script does is sets PYTHONPATH prior to starting the 
>> service. There is an option to 'run' that emits the PYTHONPATH setting it 
>> uses, and this can be useful to manually run things using the same python 
>> environment that the run script uses.
>> 
>> export PYTHONPATH=`./run -p`
>> 
>> After doing the above, the following should work for starting the service 
>> (assuming you execute this from inside the CalendarServer directory)
>> 
>> bin/caldavd -f /path/to/caldavd.plist -t Combined
>> 
>> HTH,
>> -dre
>> 
>> On Feb 18, 2011, at 9:46 AM, Matthew Fairley wrote:
>> 
>>> Hi,
>>> 
>>> This is my first post so apologies for any noob errors!
>>> 
>>> I've managed to do a successful install of the trunk build and have CalDAV 
>>> and CardDAV running using the ./run script. What I'm struggling with is 
>>> getting things going using a script at boot. I'm trying something like this:
>>> 
>>> /local/path/to/caldavd -X -f /local/path/to/caldavd.plist -T 
>>> /local/path/to/Twisted/twistd -P caldav -t Combined
>>> 
>>> (I am going to put each argument in a .plist file in the LaunchDaemons 
>>> folder so that it runs at boot but I want to get it running from the 
>>> command line first)
>>> 
>>> "/local/path/to" is my own local install path, nothing fancy, just a folder 
>>> inside my users home folder.
>>> 
>>> The error I'm getting is a whole list of what twisted understands as 
>>> arguments along with a final "unknown command: caldav". When I use the run 
>>> script, it just works, but not when I try to fire up the server from the 
>>> command line. I know I'm missing something obvious, just not sure what. The 
>>> caldavd.plist file is correct as far as I can tell.
>>> 
>>> I do have one other question though. When I start the server using the run 
>>> script, one of the messages I get is "Using system version of twistd". 
>>> Where would I find this system version and if I used the path to that in 
>>> both the caldavd.plist file and the command line, would things "just work"?
>>> 
>>> Nearly forgot - I'm on a mac mini, with mac os x 10.6, Snow Leopard, in 
>>> case that helps.
>>> 
>>> Thanks guys,
>>> 
>>> Matt
>>> 
>>> Sent from my iPad
>>> _______________________________________________
>>> calendarserver-users mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users
>> 
_______________________________________________
calendarserver-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users

Reply via email to