Giter VIP home page Giter VIP logo

Comments (10)

MSchantz avatar MSchantz commented on July 26, 2024 1

@drewmiranda-gl Thank you so much - that did it. I'm sorry I had missed that note in the readme.

from docker-compose.

janheise avatar janheise commented on July 26, 2024

@drewmiranda-gl We have the Readme in the repo itself on the root level which gives some DataNode specific infos and also the DataNode section in the regular docs. What would you suggest? Do you think an additional comment like If you're new to the DataNode, please read the docs. would be helpful or add a complete paragraph about setup?

edit: btw, we already agreed that the initial basic auth dialog needs improvement and shows a welcome page and some additional info before we ask for a password the first time. Would that be enough?

from docker-compose.

drewmiranda-gl avatar drewmiranda-gl commented on July 26, 2024

My thinking is having a one line comment in the compose file itself will ensure that anyone who runs it will at least get a hint that they need to look at the server log to obtain that first run password.

If the login dialog could also contain that same message that would also be useful. I can only assume that because we are asking users to set an admin password (either in the docker compose file, or in the server.conf itself but thats unrelated to this specific GH issue) they are confused that the password they set doesn't work and they need to go somewhere else to get the correct password.

Appreciate y'all's hard work on this!

from docker-compose.

MSchantz avatar MSchantz commented on July 26, 2024

Apologies if I'm in the wrong place, but I'm a confused user, and my problem appears to be with the DataNode. Specifically, I'm getting this error at first install, and the DataNode container is continuously rebooting.

[Timestamp] ERROR [CmdLineTool] Startup error:
org.graylog2.bootstrap.preflight.PreflightCheckException: /proc/sys/vm/max_map_count value should be at least 262144 but is 65530 (set via "vm.max_map_count" sysctl)

I am able to log into the preflight, but I get stuck at the provisioning step because graylog can't find the datanode. Can I fix that in the container? Thanks in advance for your help.

from docker-compose.

drewmiranda-gl avatar drewmiranda-gl commented on July 26, 2024

@MSchantz what operating system and OS version are you using?

from docker-compose.

MSchantz avatar MSchantz commented on July 26, 2024

@drewmiranda-gl Linux - Ubuntu 22.04.4 LTS

from docker-compose.

drewmiranda-gl avatar drewmiranda-gl commented on July 26, 2024

@MSchantz I just tested on Ubuntu 22 and replicated the exact same error. I found a suggestion that said to configure that setting on the host that the docker container runs on. I tested this and that seemed to resolve the issue:

sudo sysctl -w vm.max_map_count=262144
echo 'vm.max_map_count=262144' | sudo tee -a /etc/sysctl.conf

It looks like this isn't spelled out very clearly, but it is in the readme via https://github.com/Graylog2/docker-compose?tab=readme-ov-file#configure-your-os

from docker-compose.

drewmiranda-gl avatar drewmiranda-gl commented on July 26, 2024

For the internal graylog folks, can we add a note/comment in the docker compose files to make sure this is more obvious and more clear? Ideally offering an example for at least Debian (e.g. Debian, Ubuntu) and Redhat (e.g. RHEL, Centos, Alma, Rockey) based distros.

from docker-compose.

Nebucatnetzer avatar Nebucatnetzer commented on July 26, 2024

I was confused by this change as well.
Currently we are using OpenSearch 2.5 and when there is an update I check the docker-compose files here to see if you recommend any new settings.
However from what I've seen here and in the documentation I can just ignore the section for the DataNode because there is no migration path?

from docker-compose.

d00vy avatar d00vy commented on July 26, 2024

We have the Readme in the repo itself on the root level which gives some DataNode specific infos and also the DataNode section in the regular docs. What would you suggest? Do you think an additional comment like If you're new to the DataNode, please read the docs. would be helpful or add a complete paragraph about setup?

Reading the docs would be helpful if there was relevant information in the docs, but I couldn't find anything in the docs or the forums about how to find the initial password. Somehow this issue has been open for 6 months when all you need is one extra command to find the initial password...

For anyone else struggling, use: docker logs <containerID> to get the initial password

from docker-compose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.