Open peterbe opened 12 years ago
Can you reproduce this consistently? If so, would you mind running the server in debug mode (python server.py -d
will do the trick) and find out what the underlying exception is? I suspect I know what the fix for this particular bug is, but I want to understand the underlying issue better as well.
I encountered the exact same error. Ran server in debug mode and got the following error:
OperationFailure: database error: too much data for sort() with no index. add an index or specify a smaller limit
Occurs at line 160 in professor.logic.aggregate function. I think maybe you need an index on profiles collection.
I added the following indexes. It helps me to resolve some failures in logs.
db.profiles.ensureIndex({collection: 1});
db.profiles.ensureIndex({collection: 1, op: 1});
db.profiles.ensureIndex({collection: 1, op: 1, skel: 1});
I wouldn't be so lazy and not look it up in the source myself but today I'm just too body.