blacktop / docker-elastic-stack

ELK Stack Dockerfile
MIT License
190 stars 75 forks source link

Supervisor running as root, privileges not dropped #30

Closed vanosg closed 2 years ago

vanosg commented 2 years ago
2022-04-30 14:31:12,287 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
<snip>
2022-04-30 14:14:41,900 INFO gave up: kibana entered FATAL state, too many start retries too quickly

And kibana cannot load. This seems to be perhaps a recent change in docker, needing to set the user command in a docker-compose file (maybe), but I was unable to resolve it. This image "just worked" for the longest time, and it did not come back up after restarting it today. Any suggestions to remedy are welcome, thank you!

vanosg commented 2 years ago

That was a red herring, sorry- the solution has to do with mode needing some glibc stuff not provided by the musl libc implementation in alpine. For more info see: https://stackoverflow.com/questions/62478670/failing-to-build-node-re2-on-a-node12-18-1-alpine-docker-image

I was able to resolve by exec'ing into the container and running: apk add libc6-compat; ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 while startup was taking place.