-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Docker Containers Are not Working #1208
Comments
If you don't mind #1202, you can use this docker-compose.yml: version: "2"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.0
environment:
- http.host=0.0.0.0
- transport.host=0.0.0.0
- xpack.security.enabled=false
- cluster.name=hive
- script.allowed_types=inline
- thread_pool.index.queue_size=100000
- thread_pool.search.queue_size=100000
- thread_pool.bulk.queue_size=100000
ulimits:
nofile:
soft: 65536
hard: 65536
thehive:
image: thehiveproject/thehive:3.4.0
ports:
- "0.0.0.0:9000:9000" However I cannot say what impact the failed migration might have. |
I noticed that there has been mention of moving off of elasticsearch in a future major release. Is that still the plan? Elasticsearch 5.6.x reached EOL last year in March. |
@jstewart101 with the release of TheHive 3.4.0 & Cortex 3.0.0, we added support for ES 6. We are currently working on TheHive 4.0, which will be the first version to introduce support for graph databases. If everything goes according to our plans, we should be able to release TheHive 4.0-RC1 by the end of February. We also plan to provide a smooth migration path from ES to graph databases with TheHive 4. |
The following error is after updating the database (initial setup): [error] o.e.c.Authenticated - Authentication failure: |
This worked for me (finally after 2 days of searching through similar issues). That said, I have the same problem as @Nadderley in that I cannot find |
This means the API key that you have specified in TheHive configuration when declaring the Cortex instance is wrong: The |
TheHiveDocs ES6 question has been updated on the FAQ: |
I think I figured it out. In the event any other wayward Internet souls find this and need help
|
@peasead did you manage to get thehive and cortex to set up themselves automatically, or did you create a holy bespoken setup where you created the organizations, keys and restarted the containers to feed the cortex key to thehive? |
I had to do it as a post-installation step. I guess it could be possible if you could automate:
I assume you could automate the creation of the Cortex admin, organization, and user directly in Elasticsearch or just the Cortex admin and then the Organization and users via the Cortex API, if it has the ability to do that? |
@peasead I am using the docker-compose yml file. Here it looks like you are starting the containers indiviually. I will take your settings and try to apply them to the compose yml file and see what happens. It's just frustrating that all these problems exists out of the box. |
@nadouani Why would it be doing this the first time i run 'docker-compose up' after downloading the latest repo? Is it defaulted to generate AUTH_ERROR the very first time you run it? |
What is the name of your integration account? I got auth issues when I
named the account and/or org “api”.
On Sun, Jan 26, 2020 at 4:15 PM Nadderley ***@***.***> wrote:
Now I'm getting AUTH_ERROR for cortex
This means the API key that you have specified in TheHive configuration
when declaring the Cortex instance is wrong: The AUTH_ERROR here means:
TheHive is not authenticated to call Cortex.
@nadouani <https://github.com/nadouani> Why would it be doing this the
first time i run 'docker-compose up' after downloading the latest repo? Is
it defaulted to generate AUTH_ERROR the very first time you run it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1208?email_source=notifications&email_token=ABYY5K4ZJ6RV54XEVVIQHYLQ7YDQPA5CNFSM4KI2WVE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ57JUY#issuecomment-578548947>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYY5K2FATNWNRHLVGILUX3Q7YDQPANCNFSM4KI2WVEQ>
.
--
- Andrew D. Pease
|
@peasead not sure what you mean by integration account. |
The account you created in Cortex.
When you stand up Cortex, you migrate the database and create and account.
As soon as you log in, create a new organization. Click on that
organization and make an account with read, write permissions (this is the
integration account I referenced). Click the API button to create the API
key, click reveal, copy that API key, put that in application.conf, restart
TheHive container.
On Sun, Jan 26, 2020 at 4:21 PM Nadderley ***@***.***> wrote:
I got auth issues when I named the account and/or org “api”.
@peasead <https://github.com/peasead> not sure what you mean by
integration account.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1208?email_source=notifications&email_token=ABYY5K5H3B2PICQ2ZPZYK73Q7YEGVA5CNFSM4KI2WVE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ57NOA#issuecomment-578549432>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYY5K5AN7SRSFQUXYPH44LQ7YEGVANCNFSM4KI2WVEQ>
.
--
- Andrew D. Pease
|
@peasead are you access the application.conf file from inside the container or a volume? |
I used this So if you download that
|
I think this issue is no longer relevant |
Hi Team, |
I also find issue after running docker and registering for the first time in thehive. When logging in there is Authentication failure message. This is my compose file: |
You are using unsupported Elasticsearch database. Version 3.5.x supports only Elasticsearch 7.x. |
Hi Guys!! |
Thanks, but sorry I am really new to docker and the hive. Can you please show me how would a correct docker compose will look like? Or where is the above mentioned 3.5.x configured? |
Here is compose file for 3.5.x. |
Oh I got it now I did not know what database you thinks. Thanks :) also thanks for your work I am trying to build automated SOC. The Hive is perfect. |
I just downloaded the latest Repo from Github ([https://github.com/TheHive-Project/TheHiveDocs][1]). I used the docker option for install.
Just notice that the Installation Guide at TheHive-Project/TheHiveDocs on GIT list elasticsearch 5.6.0 while the repo docker-compose yml file has 6.8.0. Then I found this (https://github.com/TheHive-Project/TheHiveDocs/blob/master/FAQ.md#do-you-support-elasticsearch-6x-or-later):
Is anyone running the current docker repo? I spent last 24 hours trying to get this work. Instead of listing all the errors I'm seeing I would like to start here; trying to figure out if the repo does work.
SPECS:
Current repo settings on ubuntu 18.04
elasticsearch:6.8.0 image: thehiveproject/cortex:3.0.0-RC4 image: thehiveproject/thehive:3.4.0-RC2
Also mentioned here #1203
The text was updated successfully, but these errors were encountered: