This repository has been archived by the owner on Nov 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Context: we want to move away from environment variables and use either config files or env files (such as the rabbitmq-env.conf). Since .erlang.cookie is neither, the official RabbitMQ Docker image handles this by writing the value from the RABBITMQ_ERLANG_COOKIE env var into the file if it does not exist. The problem is that if this file exists, and the value is different from the RABBITMQ_ERLANG_COOKIE env var, CLI tools will not be able to communicate with the rabbit node, as described here: rabbitmq/rabbitmq-cli#443 The only gotcha is that this file must be owned by the user, and privileges should not be too open (git should have captured this). If not, RabbitMQ will fail to boot. This is somewhat similar to how OpenSSH reacts when private key permissions are too open. re docker-library/rabbitmq#422 (comment) Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
- Loading branch information
Showing
4 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rabbitmq-prometheus |
c4b04ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid that this commit seems to have broken this tutorial for me https://www.rabbitmq.com/prometheus.html#quick-start
I'm running docker linux containers on a windows machine.
When I ran
docker-compose-overview.yml
docker asked to share elang.cookie, refusing stopped the process and saying yes caused the rabbit containers to fail withcookie file must be accessible by owner only
Reverting this commit on my local copy of the repository solved the issue and it works fine.
I imagine the issue is with how git sets the permissions on windows but I'm not sure how to fix that. Another solution might be to make a note in the tutorial about how to manually adjust the permissions.
Have a good day!
c4b04ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @wainwrightmark, fixed via 7b5a876 👍🏻