Cortex icon indicating copy to clipboard operation
Cortex copied to clipboard

Linux spec user can't find user thehive: no matching entries in passwd file

Open kajov opened this issue 5 years ago • 0 comments

Request Type

Bug

Work Environment

Question Answer
Environment Kubernetes
K8s version 1.15.5
Cortex version / git hash 3.1.0-0.1RC1 / f47de61
Package Type Docker
Browser type & version Chrome v84.0.4147.125

Problem Description

Due to the reason that Cortex 3.0.1 does not support ES-7.x but(Tested using seperate ES-6.8.8 and OpenDistro 0.9.0) this new RC allows implementation of preexisting infrastructure in the cluster that utilizes OpenDistro 1.9.0 ES-7.8.0 stable version.

I have modified the docker file and created Helm chart referencing docker-compose.yaml to utilize Kubernetes. The deployment fails since daemon in the container can not find thehive user that matches entries in passwd file but after inspecting Docker image I can see that the user is created but can't figure out why it's not symlinking.

Log is listed below in Complimentary information section

Log number is incremental since it has been in the ContainerCreatError then CrashLoopBackOff state for some time. Knowing how Kubernetes deals with containers, log extraction is impossible and I can not find any logs in Kibana either.

Steps to Reproduce

  1. Create Helm Chart for Cortex
  2. Deploy Cortex together with TheHive4
  3. Error: failed to start container "cortex": Error response from daemon: linux spec user: unable to find user thehive: no matching entries in passwd file; Back-off restarting failed container
  4. Profit ?!

Possible Solutions

Unknown

Complementary information

I am aware that there is no official of Helm chars for the Cortex and most of the time it is do-it-yourself task in order to make it work

failed to try resolving symlinks in path "/var/log/pods/response_thehive-m1dj48x1k2-cortex-dpl-5856988c8d-qpzr4_7cec1ead-b2b0-4111-8f74-a3158a20a65f/cortex/9.log": lstat /var/log/pods/response_thehive-m1dj48x1k2-cortex-dpl-5856988c8d-qpzr4_7cec1ead-b2b0-4111-8f74-a3158a20a65f/cortex/9.log: no such file or directory

kajov avatar Aug 14 '20 14:08 kajov