<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm getting that same 404 error occasionally. Haven't seen the second one though.<div><br></div><div>You're right, there doesn't seem to be a way to search the mailing list archives. I've been using Google and scoping the search to the mailing list archives. For example: </div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>caldav site:http://lists.macosforge.org/pipermail/calendarserver-users/</div></blockquote><div><div><div><br></div><div>... seems to work.</div><div><br></div><div>Mike<br><div><br><div><div>On 2010-11-15, at 5:45 AM, <a href="mailto:xxyy123@optusnet.com.au">xxyy123@optusnet.com.au</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for your help, Mike. It has helped.<div><br></div><div>I've now installed PostGreSQL as root and given to me (adduser does not exist on Mac OS X so found out about dctl but couldn't be bothered - macosforge?), fixed the relative path and manually added the path to pgsql to my path in the terminal session and started it up. All seems OK, but sometimes it seems to take iPhones/iPad an age to synchronise.</div><div><br></div><div><br></div><div>Get two errors in the log every so often:</div><div><br></div><div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:05:59+1100 [-] [caldav-1] [PooledMemCacheProtocol,client] [twext.web2.dav.http#info] 404 response while getting property: ('http://calendarserver.org/ns/', 'getctag')</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:05:59+1100 [-] [caldav-1] [HTTPChannel,30,127.0.0.1] [twext.web2.server#info] PROPFIND /calendars/__uids__/HomeAll/notification/ HTTP/1.1</font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] [-] Unhandled Error</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'">Traceback (most recent call last):</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/python/log.py", line 69, in callWithContext</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> return context.call({ILogContext: newCtx}, func, *args, **kw)</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/python/context.py", line 59, in callWithContext</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> return self.currentContext().callWithContext(ctx, func, *args, **kw)</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/python/context.py", line 37, in callWithContext</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> return func(*args,**kw)</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> why = getattr(selectable, method)()</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'">--- <exception caught here> ---</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> File "/Library/Python/2.6/site-packages/twext/internet/sendfdport.py", line 286, in doRead</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> transport = self.transportFactory(skt, description, protocol)</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> File "/Library/Python/2.6/site-packages/twext/web2/metafd.py", line 104, in createTransport</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> transport.startTLS(self.contextFactory)</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/internet/tcp.py", line 761, in startTLS</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> if Connection.startTLS(self, ctx, server):</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> File "//Twisted/build/lib.macosx-10.6-universal-2.6/twisted/internet/tcp.py", line 402, in startTLS</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'"> self.socket = SSL.Connection(ctx.getContext(), self.socket)</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-15 16:08:26+1100 [-] [caldav-1] </font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="'Courier New'">        </font></span><font class="Apple-style-span" face="'Courier New'">exceptions.AttributeError: 'NoneType' object has no attribute 'getContext'</font></div><div><br></div><div><br></div><div>Probably for another thread - it would be nice to be able to search previous emails.</div><div><br></div><div>Godfrey</div><div><br></div><div><div>On 15/11/2010, at 5:10 AM, Mike Greiner wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Godfrey,<div><br><div>I can share a few tips. I just started working with the calendar server this week and I encountered some of the same problems.</div><div><br></div><div>Note: I'm new to this list, so for those with more experience --- please speak up if I'm giving bad advice :)</div><div><br></div><div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><font class="Apple-style-span" face="'Courier New'">unrecognized .svn/entries format in </font></div><div><font class="Apple-style-span" face="'Courier New'">conftest.c:1:23: error: sys/epoll.h: No such file or directory</font></div><div><font class="Apple-style-span" face="'Courier New'">conftest.c:1:23: error: sys/epoll.h: No such file or directory</font></div><div><font class="Apple-style-span" face="'Courier New'">conftest.c:1:23: error: sys/epoll.h: No such file or directory</font></div><div><font class="Apple-style-span" face="'Courier New'">lipo: can't open input file: /var/folders/NF/NF7P443VE3K04yAADfdxwE+++TI/-Tmp-//ccGWCmnv.out (No such file or directory)</font></div><div><br></div><div></div><div><br></div></div></div></blockquote><div><br></div><div>I saw this error as well, but I didn't follow up on it. Like you said, it doesn't appear to cause any problems.</div><div><br></div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>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</div></div></div></blockquote><div><br></div>I can't exactly recall, but I think I needed to run pax as root as well. However, you can (and should) run caldavd as a regular user. You can do that by specifying a user and group in the caldavd.plist file.</div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><span class="Apple-style-span" style="font-family: 'Courier New'; ">twistedcaldav.config.ConfigurationError: Server root does not exist: ./data</span></div><div><br></div><div>So, how is the data directory supposed to be created? How is one supposed to install/deploy?</div></div></div></blockquote><div><br></div>The problem here is with your caldavd.plist. If you copied the caldavd-test.plist to caldavd-dev.plist (like the run script recommends), then the server's root folder is specified as a relative path:</div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div> <key>ServerRoot</key></div></div></blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div> <string>./data</string></div></div></div></blockquote><div><div><div><br></div><div>This works fine if you're running caldavd from the source tree, but not in deployment. I used an absolute path in my plist:</div></div><div><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div><div> <key>ServerRoot</key></div></div></blockquote><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div><div><div> <string>/Library/CalendarServer/Data</string></div></div></div></blockquote><div><div></div></div></div><div><br></div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><br></div><div>3) Tried to start caldavd from within my test area but got some sort of index out of range error:</div></div></div></blockquote><div><br></div><snip><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><br></div><div><div><span class="Apple-style-span" style="font-family: 'Courier New'; ">2010-11-14 13:21:20+1100 [-] File "/CalendarServer/txdav/base/datastore/subpostgres.py", line 382, in startService</span></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-14 13:21:20+1100 [-] initdb = which("initdb")[0]</font></div><div><font class="Apple-style-span" face="'Courier New'">2010-11-14 13:21:20+1100 [-] IndexError: list index out of range</font></div></div></div></div></blockquote></snip></div><div><br></div><div>The problem here is that your server can't find PostgreSQL. It appears that executing "./run -i" does not deploy PostgreSQL. You can install it from the PostgresSQL source yourself. Check out the instructions in the file postgresql-9.0.1/INSTALL</div><div><br></div><div>The only problem I had after that was that my PATH didn't include the location where I installed PostgreSQL (/usr/local/pgsql). Since I'm running the server as a launch daemon using launchd, I expected that having a setenv command in my launchd.config file would work -- but it didn't. Then I tried putting an entry in /etc/paths.d, but that didn't work either. Eventually I gave up and just added the path to my deployed copy of my caldavd shell script at /usr/local/bin/caldavd. :(</div><div><br></div><div>Anyway, that was enough to get things running for me in my test environment. My next challenge is to get this running on my creaky old 10.4 server.</div><div><br></div><div>Hope that helps,</div><div>Mike</div><div><br></div><br></div></div></div>_______________________________________________<br>calendarserver-users mailing list<br><a href="mailto:calendarserver-users@lists.macosforge.org">calendarserver-users@lists.macosforge.org</a><br><a href="http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users">http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users</a><br></blockquote></div><br></div></div></blockquote></div><br></div></div></div></div></body></html>