-
Notifications
You must be signed in to change notification settings - Fork 640
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
Intermittently losing Cortex #739
Comments
Well, these notifications are displayed when TheHive sees a status change related to the configured cortex instances. This Can you provide the result of
|
I ran that and got the following:
I then waited a couple of minutes and ran it again:
|
OK, so the UI is behaving as expected. No the question is: Why your TheHive is randomly reaching your Cortex. Do you have any logs in |
@gonrada Do you use docker-compose ? If so, what is your docker-compose file ? |
@nadouani I was running a |
Probably doesn't help a lot but I'm using docker as well and also get this error constantly. Happy to provide any logs or data that might help troubleshoot |
We are losing the Cortex connection as well. TheHive 3.1.0 and Cortex 2.1 installed as a "normal" service on 2 Ubuntu servers. |
Hello, I'm curious about what |
In my case yes we get the UI pop up constantly saying it has disconnected and then that it's back and get analyzer failures. |
@rayschippers and @secdecompiled can you please call this type of script, to poll the status API:
This will wait 30 seconds and call the API, you can stop it manually. |
@nadouani is there any further information I can provide? |
I need the restult for my last question, to see how does thehive poll the cortex connection |
Hi @nadouani I spent today upgrading everything to latest to see if there was any improvements, and it's happening less but still happening, output when it's broken: and when it's back "cortex":{"enabled":true,"servers":[{"name":"XXCORTEX","version":"2.1.2","status":"OK"}] |
Well, again. I need to know does the status polling work, so without running that script for few minutes, I cannot investigate. Thanks |
Ran it for a few minutes and the output for Cortex status |
Well this looks like a bug within the status polling that has a very small timeout. Will be fixed in the next hotfix |
We have been running cortex almost 3 hours with 200 users in loop of 5. 1000 samples continuously. when we reach 12k cortex jobs, our codebase can not hit cortex /api/run or /api/<<jobid//results. we use httpClient axios to communicate cortex end point. its not responding. we thought its an issue on axios side but apparantly we started cortex, communication between our service (axios client) and cortex working. so sounds like cortex is holding up connections of client. we really need some inputs on it. Note : very important : we can run scan from UI without any issue. but not from our httpClient. Restarting cortex fixes our issue. need some inside on this issue. Another aspects is even we restart the pod of our service, cortex communication with our service is not functional. |
Request Type
Bug
Work Environment
Problem Description
TheHive intermittently loses connection to Cortex. After a few minutes I will see another message that the connection is up. While the connectivity between TheHive and Cortex is down I am still able to login to the Cortex via the web gui and run jobs. Both TheHive and Cortex are running in docker containers on the same machine. The CPU load is not high when this happens. I've checked the logs for TheHive container and I'm not seeing errors. I'm not sure where to look for more information to try to debug this.
The text was updated successfully, but these errors were encountered: