-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission denied when passing SSL certificates #66
Comments
👍 i've the same issue |
@mavdi @toretto460 you should probably FROM rabbitmq:3.6.1-management
MAINTAINER Ory Band @ Rounds <ory@rounds.com>
ENV RABBITMQ_DEFAULT_USER=guest \
RABBITMQ_DEFAULT_PASS=guest \
RABBITMQ_DEFAULT_VHOST=/ \
RABBITMQ_SSL_CERT_FILE=/etc/rabbitmq/ssl/cert.pem \
RABBITMQ_SSL_KEY_FILE=/etc/rabbitmq/ssl/key.pem \
RABBITMQ_SSL_CA_FILE=/etc/rabbitmq/ssl/cacert.pem
# set erlang cookie if desired
# https://www.rabbitmq.com/clustering.html
# ENV RABBITMQ_ERLANG_COOKIE=
# copy ssl keys and set rabbitmq to use them
COPY etc/rabbitmq/ssl/* /etc/rabbitmq/ssl/
RUN chown rabbitmq:rabbitmq /etc/rabbitmq/ssl/* \
&& chmod 400 /etc/rabbitmq/ssl/* |
UPDATE: this happens to me as well, regardless of what I wrote. |
UPDATE: I managed to fix this. I changed this: RUN chown rabbitmq:rabbitmq /etc/rabbitmq/ssl/* \
&& chmod 400 /etc/rabbitmq/ssl/* Into this: RUN chown 999:999 /etc/rabbitmq/ssl/* \
&& chmod 400 /etc/rabbitmq/ssl/*
# alternatively you can use `chown -R 999:999 /etc/rabbitmq/ssl`
# instead of the `chown ...` statement above. Apparantly the problem was with accessing the I've noticed in #59 that the I don't exactly understand why this fixed the problem, since the user:group already exist because of Line 4 in e9e416f
Hope this helps. |
UPDATE: this still occurs on random as well. I haven't fixed the problem. This bug renders the rabbitmq trusted build unusable. :\ |
Running the container with the following settings:
getting:
The script doesn't have access to the temp combined file it creates?
Edit: After many tries it starts up sometimes, it seems to me some sort of race condition.
The text was updated successfully, but these errors were encountered: