<html><body bgcolor="#FFFFFF"><div>(forgot to send my reply to the list - doh!)</div><div><br></div><blockquote type="cite"><div><b>From:</b> Matthew Fairley<br><b>Date:</b> 24 February 2011 22:41:16 GMT<br><b>To:</b> Andre LaBranche<br><b>Subject:</b> <b>Re: [CalendarServer-users] Where are the calendars located?</b><br><br></div></blockquote><div></div><blockquote type="cite"><div><span>Hi Andre,</span><br><span></span><br><span>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:</span><br><span></span><br><span>Mimewriter module is deprecated; use the email package instead</span><br><span></span><br><span>Reading configuration from file... caldavd.plist</span><br><span></span><br><span>Removing stale pidfile...caldavd.pid</span><br><span></span><br><span>Running iCal after this, I get a connection refused error and looking at the error.log the last thing is (again, in summary):</span><br><span></span><br><span>.../txdav/base/datastore/subpostgres.py, line 382, in startservice</span><br><span>initdb = which("initdb")[0]</span><br><span>IndexError: list index out of range</span><br><span></span><br><span>When I run the server using the ./run command it runs fine, but not using caldavd.</span><br><span></span><br><span>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</span><br><span></span><br><span>Anything else I can try?</span><br><span></span><br><span>Thanks again,</span><br><span></span><br><span>Matt</span><br><span></span><br><span>Sent from my iPhone</span><br><span></span><br><span>On 18 Feb 2011, at 18:06, Andre LaBranche wrote:</span><br><span></span><br><blockquote type="cite"><span>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.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>export PYTHONPATH=`./run -p`</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>After doing the above, the following should work for starting the service (assuming you execute this from inside the CalendarServer directory)</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>bin/caldavd -f /path/to/caldavd.plist -t Combined</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>HTH,</span><br></blockquote><blockquote type="cite"><span>-dre</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>On Feb 18, 2011, at 9:46 AM, Matthew Fairley wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>Hi,</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>This is my first post so apologies for any noob errors!</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>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:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>/local/path/to/caldavd -X -f /local/path/to/caldavd.plist -T /local/path/to/Twisted/twistd -P caldav -t Combined</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>(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)</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>"/local/path/to" is my own local install path, nothing fancy, just a folder inside my users home folder.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>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.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>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"?</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Nearly forgot - I'm on a mac mini, with mac os x 10.6, Snow Leopard, in case that helps.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Thanks guys,</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Matt</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Sent from my iPad</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>_______________________________________________</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>calendarserver-users mailing list</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span><a href="mailto:calendarserver-users@lists.macosforge.org">calendarserver-users@lists.macosforge.org</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span><a href="http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users">http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users</a></span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote></div></blockquote></body></html>