[CalendarServer-dev] Error running calendarserver after upgrading db from 5.x to 7.x

Andre LaBranche dre at apple.com
Thu Jan 28 17:17:53 PST 2016


> On Jan 28, 2016, at 11:57 AM, Rahul Amaram <amaramrahul at users.sourceforge.net> wrote:
> 
> 
> 
> On Thursday 28 January 2016 11:54 PM, Cyrus Daboo wrote:
>> Hi Andre,
>> 
>> --On January 28, 2016 at 10:21:50 AM -0800 Andre LaBranche <dre at apple.com> wrote:
>> 
>>> It kind of looks like you're not running ./bin/develop after the upgrade,
>>> before starting the service.
>> 
>> Right - you definitely need to do that because some of the Python packages have been updated - the 'NUM_CPUS' error results from an old version of the psutil package.
>> 
> calendarserver is packaged. So, I cannot run ./bin/develop to install new packages. I have gone through the requirements-stable.txt and have ensured that all the libraries are at the requested minimum version. Does develop script does anything more which I should handle?

For your use case, I don't think so.

> Also, the psutil version installed on the system is 3.4.1 while the version mentioned in requirements-stable.txt is 2.2.1. So, I went ahead and downgraded psutil to 2.2.1 by installing an older debian package and the error went away. So, psutil was the cause of the issue. Is it possible to make calendarserver compatible with 3.4.1? The incompatibility issue seems to be becoming a recurring theme :).

I can check on that, but I vaguely recall some reason why we haven't updated to newer psutil.

> Finally, tasks were still not enabled for the user after the upgrade. What do I need to check for this?

I think this should be based only on the config value for EnableCardDAV, and possibly also the listener port configuration, depending on how the clients are configured.

-dre


More information about the calendarserver-dev mailing list