Mongo error: Exception in queued task: MongoError: Can't canonicalize query: BadValue bad sort speci

502 views
Skip to first unread message

Hakan Uysal

unread,
Jan 6, 2015, 5:16:01 AM1/6/15
to meteo...@googlegroups.com

Hi there,

I have been facing with this issue with my meteor instance.

After running the server for one day with some average level of reads and writes, the server starts to throw this error while saving something:

Mongo error: Exception in queued task: MongoError: Can't canonicalize query: BadValue bad sort specification

If I restart the server, the issue is gone. This happens in production environment. Haven't seen in dev env. The thing is that I tried to host mongo instance in the same machine as app server and also in another machine, the problem still occurs in both conditions. Changing the mongo provider does not really help. I think this is a meteor related issue.

Do you have any idea how to solve this?

Here is the bug related to this topic: https://github.com/meteor/meteor/issues/3414

Thanks.

Hakan Uysal

unread,
Jan 16, 2015, 5:45:02 AM1/16/15
to meteo...@googlegroups.com
Ping? Anybody has a similar issue?

Jan Hendrik Mangold

unread,
Jan 16, 2015, 11:51:12 AM1/16/15
to meteo...@googlegroups.com

On Jan 16, 2015, at 02:45, Hakan Uysal <hakanuy...@gmail.com> wrote:

Mongo error: Exception in queued task: MongoError: Can't canonicalize query: BadValue bad sort specification



I think I saw that error when trying to sort on a field that didn’t have an index on it.

Graham McBain

unread,
Jan 22, 2015, 12:31:21 PM1/22/15
to meteo...@googlegroups.com
I too am having this issue. It happens sometimes when submitting a post/comment. Also when I click the Digest link on the telescope views menu.


I'm hearing mixed thoughts on switching the database fixing this issue. 
Reply all
Reply to author
Forward
0 new messages