<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Andre,<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 25.01.2017 um 02:01 schrieb Andre LaBranche &lt;<a href="mailto:dre@apple.com" class="">dre@apple.com</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" class=""><div class=""><br class="Apple-interchange-newline">On Jan 21, 2017, at 3:43 AM, Axel Rau &lt;<a href="mailto:Axel.Rau@Chaos1.DE" class="">Axel.Rau@Chaos1.DE</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br class=""><div class=""><blockquote type="cite" class=""><div class="">Am 18.12.2016 um 14:01 schrieb Axel Rau &lt;<a href="mailto:Axel.Rau@chaos1.de" class="">Axel.Rau@chaos1.de</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br class=""><div class=""><blockquote type="cite" class=""><div class="">Am 18.12.2016 um 00:35 schrieb Andre LaBranche &lt;<a href="mailto:dre@apple.com" class="">dre@apple.com</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><span class="" style="font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">Do you by chance have the default log level set to debug?</span><br class="" style="font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"></div></blockquote></div>No it is set to ‚warn‘:<div class=""><br class=""></div><div class=""><div class="">&nbsp; &nbsp; &lt;key&gt;DefaultLogLevel&lt;/key&gt;</div><div class="">&nbsp; &nbsp; &lt;string&gt;warn&lt;/string&gt; &lt;!-- debug, info, warn, error --&gt;</div><div class=""><br class=""></div></div></div></div></blockquote><br class=""></div><div class="">Nobody any idea on that ?</div></div></div></blockquote><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Hi,</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">I suspect this is related to the import ordering / race condition that you've noticed in the past. Is it still the case that the calendar server command line tools don't work in the freebsd CS port?</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">I had a VM with this partially set up, but I banged on it enough last week that I sort of forget where it's at. Currently, attempts to "pkg install&nbsp;py27-calendarserver-9.0" yield a CS installation that is pretty broken:</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">[cs@ ~]$ calendarserver_config -h<br class="">Traceback (most recent call last):<br class="">&nbsp;&nbsp;File "/usr/local/bin/calendarserver_config", line 6, in &lt;module&gt;<br class="">&nbsp; &nbsp;&nbsp;from pkg_resources import load_entry_point<br class="">&nbsp;&nbsp;File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3019, in &lt;module&gt;<br class="">&nbsp; &nbsp;&nbsp;@_call_aside<br class="">&nbsp;&nbsp;File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3003, in _call_aside<br class="">&nbsp; &nbsp;&nbsp;f(*args, **kwargs)<br class="">&nbsp;&nbsp;File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3032, in&nbsp;_initialize_master_working_set<br class="">&nbsp; &nbsp;&nbsp;working_set = WorkingSet._build_master()<br class="">&nbsp;&nbsp;File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 657, in _build_master<br class="">&nbsp; &nbsp;&nbsp;return cls._build_from_requirements(__requires__)<br class="">&nbsp;&nbsp;File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 670, in _build_from_requirements<br class="">&nbsp; &nbsp;&nbsp;dists = ws.resolve(reqs, Environment())<br class="">&nbsp;&nbsp;File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 849, in resolve<br class="">&nbsp; &nbsp;&nbsp;raise DistributionNotFound(req, requirers)<br class="">pkg_resources.DistributionNotFound: The ‚Twisted==15.4.0' distribution was not found and is required by&nbsp;CalendarServer</div></div></blockquote><div><br class=""></div>The package www/calendarserver currently installs twisted 16.6.0, and that works.</div><div><br class=""></div><div>One of the reasons, I never got the commandline tools working are those hard wired dependencies.</div><div>Would 16.6.0 not work with them?<br class=""><blockquote type="cite" class=""><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">... and if I explicitly install Twisted 15.4.0, the CLI tools work at least. Try this:</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">[cs@ ~]$ calendarserver_config DefaultLogLevel<br class="">DefaultLogLevel=warn</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">The above should be similar to what the server actually does to obtain config values. If I change DefaultLogLevel in /usr/local/etc/caldavd.plist, that change is reflected by calendarserver_config.</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Also, can you share the command you use to actually start CS?</div></div></blockquote><div>If you install the package, its in /usr/local/etc/rc.d/caldavd .</div><br class=""><blockquote type="cite" class=""><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""> I never invoke caldavd directly, and CS changes its process name after launch so you can't just look at it, and newproc.d on OS X will show you processes names and launch args, but not ALL of the args... All my attempts seem to result in:</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>/usr/local/bin/twistd: Unknown command: caldav</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">… but I'm surely doing it wrong.</div></div></blockquote><div><br class=""></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[caldav3:/] root# service caldavd onestart</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Starting caldavd.</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Reading configuration from file: /usr/local/etc/caldavd/caldavd.plist</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[caldav3:/] root# service caldavd onestatus</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">caldavd is running as pid 10762.</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class="">[caldav3:/] root# ps -axlww&nbsp; | grep CalendarServer</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; 0 10762 &nbsp; &nbsp; 1 &nbsp; 0&nbsp; 20&nbsp; 0 224484 94564 kqread SJ&nbsp; &nbsp; -&nbsp; 0:02.22 python2.7: CalendarServer Combined&nbsp; (python2.7)</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">639 10764 10762 &nbsp; 0&nbsp; 20&nbsp; 0 219220 90872 kqread SJ&nbsp; &nbsp; -&nbsp; 0:06.74 python2.7: CalendarServer Directory Proxy Service (python2.7)</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">639 10765 10762 &nbsp; 0&nbsp; 20&nbsp; 0 232172 97156 kqread SJ&nbsp; &nbsp; -&nbsp; 0:08.22 python2.7: CalendarServer Slave #0&nbsp; (python2.7)</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">639 10766 10762 &nbsp; 0&nbsp; 20&nbsp; 0 231024 95332 kqread IJ&nbsp; &nbsp; -&nbsp; 0:07.97 python2.7: CalendarServer Slave #1&nbsp; (python2.7)</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; 0 10817 10689 &nbsp; 0&nbsp; 20&nbsp; 0&nbsp; 14796&nbsp; 2472 -&nbsp; &nbsp; &nbsp; R+J &nbsp; 2&nbsp; 0:00.00 grep CalendarServer</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[caldav3:/] root#&nbsp;</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><blockquote type="cite" class=""><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">•</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">What I want to try is getting CS to run in the 'developer mode' from a git checkout, using the bin/run script. In that state, the location and import order of all the modules should be fairly predictable, and I suspect that might be enough to get the config to load as expected. But, I still have to wade through a bunch of broken stuff to get ./bin/develop to run cleanly. There are some aspects of the ./bin/develop script (and the scripts it sources) that just don’t work very well on BSD.</div></div></blockquote>Yes.</div><div><br class=""></div><div>I’m no expert in ports and pkg. Perhaps you get some insight here</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><a href="https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-python.html" class="">https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-python.html</a></div><div><br class=""></div><div>The port is based on this makefile:</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><a href="https://svnweb.freebsd.org/ports/head/www/calendarserver/Makefile?revision=428900&amp;view=markup" class="">https://svnweb.freebsd.org/ports/head/www/calendarserver/Makefile?revision=428900&amp;view=markup</a></div><div><br class=""></div><div style="orphans: auto; widows: auto;"><span style="orphans: 2; text-align: -webkit-auto; widows: 2;" class="">I’m currently quite busy, but could allocate more time to this next week.</span></div><div style="orphans: auto; widows: auto;"><span style="orphans: 2; text-align: -webkit-auto; widows: 2;" class=""><br class=""></span></div><div style="orphans: auto; widows: auto;"><span style="orphans: 2; text-align: -webkit-auto; widows: 2;" class="">Axel</span></div><div style="orphans: auto; widows: auto;"><span style="orphans: 2; text-align: -webkit-auto; widows: 2;" class="">---</span></div><div class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">PGP-Key:29E99DD6 &nbsp;☀ &nbsp;computing @ chaos claudius</div></div></div>
</div>
<br class=""></div></body></html>