Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
MongoCursorException with message: couldn't send query
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
WennY  
View profile  
 More options Oct 9 2012, 11:27 pm
From: WennY <anty...@mail.ru>
Date: Tue, 9 Oct 2012 20:27:20 -0700 (PDT)
Local: Tues, Oct 9 2012 11:27 pm
Subject: MongoCursorException with message: couldn't send query

Hello. When i try to connect, my php said: "PHP Fatal error: Uncaught
exception 'MongoCursorException' with message 'couldn't send query: [here
broken encoding]". Sure, it is not php problem. I think problem in mongo
connections. In the log I found the following:
if we have exception, in log we may see:
Wed Oct 10 07:03:15 [initandlisten] connection accepted from
127.0.0.1:60305 #9
Wed Oct 10 07:03:15 [conn9] end connection 127.0.0.1:60305

but if we have valid connection we always see:
Wed Oct 10 07:03:15 [initandlisten] connection accepted from
127.0.0.1:60306 #10
Wed Oct 10 07:03:16 [conn10] killcursors: found 0 of 1
Wed Oct 10 07:03:16 [conn10] end connection 127.0.0.1:60306

What is it and how fix it? Problem manifests in random time. Thx and sorry
for my eng :(


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hannes Magnusson  
View profile  
 More options Oct 10 2012, 1:16 am
From: Hannes Magnusson <han...@10gen.com>
Date: Tue, 9 Oct 2012 22:16:34 -0700
Local: Wed, Oct 10 2012 1:16 am
Subject: Re: [mongodb-user] MongoCursorException with message: couldn't send query

On Tue, Oct 9, 2012 at 8:27 PM, WennY <anty...@mail.ru> wrote:
> Hello. When i try to connect, my php said: "PHP Fatal error: Uncaught
> exception 'MongoCursorException' with message 'couldn't send query: [here
> broken encoding]". Sure, it is not php problem. I think problem in mongo
> connections. In the log I found the following:
> if we have exception, in log we may see:
> Wed Oct 10 07:03:15 [initandlisten] connection accepted from 127.0.0.1:60305
> #9
> Wed Oct 10 07:03:15 [conn9] end connection 127.0.0.1:60305

> but if we have valid connection we always see:
> Wed Oct 10 07:03:15 [initandlisten] connection accepted from 127.0.0.1:60306
> #10
> Wed Oct 10 07:03:16 [conn10] killcursors: found 0 of 1
> Wed Oct 10 07:03:16 [conn10] end connection 127.0.0.1:60306

We apparently don't kill the cursor when we encounter bad data... It
shouldn't cause any issues though.

We have seen this couple of times in virtualised environments, and we
suspect something is corrupting the network traffic...

Could you try to repair the database (using db.repairDatabase() from
the shell)? Note that it could take some time if you have a lot of
data.
You may want to try just validating the collection first (using
db.collectionName.validate(true)).

That should atleast make sure the database itself isn't at fault :)

-Hannes


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
WennY  
View profile  
 More options Oct 10 2012, 1:43 am
From: WennY <anty...@mail.ru>
Date: Tue, 9 Oct 2012 22:43:53 -0700 (PDT)
Local: Wed, Oct 10 2012 1:43 am
Subject: Re: MongoCursorException with message: couldn't send query

When trying validate, it say:
SyntaxError: missing ; before statement (shell):1
:(


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
WennY  
View profile  
 More options Oct 10 2012, 6:14 am
From: WennY <anty...@mail.ru>
Date: Wed, 10 Oct 2012 03:14:25 -0700 (PDT)
Local: Wed, Oct 10 2012 6:14 am
Subject: Re: MongoCursorException with message: couldn't send query
 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hannes Magnusson  
View profile  
 More options Oct 10 2012, 8:17 pm
From: Hannes Magnusson <han...@10gen.com>
Date: Wed, 10 Oct 2012 17:17:25 -0700
Local: Wed, Oct 10 2012 8:17 pm
Subject: Re: [mongodb-user] Re: MongoCursorException with message: couldn't send query
Looks fine.

Which driver version are you using?
Is this a virtualised environment?
Could you paste the exact query?
Is this a standalone instance running on localhost?

-Hannes


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
WennY  
View profile  
 More options Oct 11 2012, 3:55 am
From: WennY <anty...@mail.ru>
Date: Thu, 11 Oct 2012 00:55:14 -0700 (PDT)
Local: Thurs, Oct 11 2012 3:55 am
Subject: Re: MongoCursorException with message: couldn't send query

*Which driver version are you using?*

php driver file version - 1.2.12.0

*Is this a virtualised environment?*

No

*Could you paste the exact query?*

From php - find(array('userId' => 'ololonickname')). Which clean request -
dont know :(

*Is this a standalone instance running on localhost?*

Yeah


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
WennY  
View profile  
 More options Oct 12 2012, 8:29 am
From: WennY <anty...@mail.ru>
Date: Fri, 12 Oct 2012 05:29:31 -0700 (PDT)
Local: Fri, Oct 12 2012 8:29 am
Subject: Re: MongoCursorException with message: couldn't send query

The problem not in driver! I've got it from shell:
<http://imageshack.us/scaled/landing/513/errorexample.jpg>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
WennY  
View profile  
 More options Oct 12 2012, 8:35 am
From: WennY <anty...@mail.ru>
Date: Fri, 12 Oct 2012 05:35:17 -0700 (PDT)
Local: Fri, Oct 12 2012 8:35 am
Subject: Re: MongoCursorException with message: couldn't send query

And corrupted error: "remote host forcibly severed connection "


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Mikola  
View profile  
 More options Oct 12 2012, 4:09 pm
From: Jeremy Mikola <jmik...@gmail.com>
Date: Fri, 12 Oct 2012 13:09:50 -0700 (PDT)
Local: Fri, Oct 12 2012 4:09 pm
Subject: Re: MongoCursorException with message: couldn't send query

If the database validated and this is manifesting itself in both the PHP
driver and shell, I would suspect some sort of network corruption.

It may be helpful to monitor the packets using something like RawCap (see
http://stackoverflow.com/q/1566234/162228).

Also, are you at all able to reproduce this behavior on separate hardware?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
WennY  
View profile  
 More options Oct 13 2012, 2:21 am
From: WennY <anty...@mail.ru>
Date: Fri, 12 Oct 2012 23:21:34 -0700 (PDT)
Local: Sat, Oct 13 2012 2:21 am
Subject: Re: MongoCursorException with message: couldn't send query

I've installed your sniffer. What doing? What to look for? Thx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Mikola  
View profile  
 More options Oct 15 2012, 11:35 am
From: Jeremy Mikola <jmik...@gmail.com>
Date: Mon, 15 Oct 2012 08:35:31 -0700 (PDT)
Local: Mon, Oct 15 2012 11:35 am
Subject: Re: MongoCursorException with message: couldn't send query

Once you capture the network traffic, you should be able to visualize it in
Wireshark, which as special support for Mongo's wire protocol:
http://wiki.wireshark.org/Mongo

I don't have any more specific advice for you, but the sniffer and
Wireshark should be suitable for determining if the network traffic is
corrupted.

I would strongly encourage you to also attempt reproduction on another
machine.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »