-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mongotail just closes #19
Comments
Before execute Mongotail you have to active the MongoDB profiler of the database. You can achive this also with Mongotail executing:
Then the MongoDB engine will start to record your queries, so you can execute:
To see the latest 10 queries and exit, or execute the same command with the Tell me if this help you so I can close this issue or check what is wrong. |
Yes I tried the Now some queries are shown, but then the program still closes, not before showing this error trace:
|
So now we have a real bug :-)
Try to execute also |
Here are some test queries that are being performed:
|
mm... I need the instruction that is crashing the app, it's happening after a specific action? like create a new kind of registry in your DB, the startup of the application... you can use the |
I think it's because this weird query that uses a really long array of 10k+ strings in an |
mm shouldn't be that, and I tested a query with the
And it's logged without problem:
|
Sorry, I didn't see the last part of one of your responses with this example:
All these registries are unknown for me, it must be that, but I don't understand why this registries are logged, what is for example This line in the example is the full line or just a part?:
I need the full line to understand what kind of logging is. If there is a sensitive data logged you can change the value anyway, but please don't remove "columns" from the JSON. |
Oh no, those aren't logs by mongotail, those are actually "console.log" outputs (with some edits) of the queries that I was performing, I posted them because you asked me what operations I was doing. As you can see in the third query, there's an |
Ok @Parziphal, I understand you, but i don't think that the problem is the big array. At the bottom of the error is described what error is and where is launched:
The
A correct access in this case is I made a commit in the repo to avoid exit the program on This patch is not released yet, but can try this version cloning the Mongotail repo and installing it with |
I'm performing
I installed the master version and Mongotail no longer crashes and the error is shown in the console, but I can't get the whole output because the long array fills the screen completely. The problem query looks like this with the
When it's empty it works. When it's not, it doesn't. I've also modified my data so I get one id in the I think I've noticed something interesting. Here's the last line of the error that is thrown by Mongotail (the master version) when the problem query is performed:
The value of the previous key is a string that ends with three dots. It seems like the query is converted to string due to the length of the array? I don't know if that makes sense... I actually have no idea. Well, that's all the info I could get. |
Thanks @Parziphal for your help. I thinking you have right, maybe the PyMongo controller or the MongoDB engine itself changes the type of the
But anyway you can see the query in this way instead of get mongotail crashed. I released the version 2.1.1 with this fix, and with a fix to filter the |
Hello,
I installed
mongotail
and run it like:but nothing happens, the program just closes after less than a second. It's a local db, it has no password or anything. I don't know if mongotail logs anything, I did a quick search and found no logs.
The text was updated successfully, but these errors were encountered: