Skip to content

RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: unbound variable #160

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

Closed
mikenowak opened this issue Jun 6, 2017 · 4 comments
Closed

RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: unbound variable #160

mikenowak opened this issue Jun 6, 2017 · 4 comments

Comments

@mikenowak
Copy link

It appears that this is caused by #159

++ erl -eval 'io:format("~p", [code:lib_dir(ssl, ebin)]),halt().' -noshell

  • export 'ERL_SSL_PATH="/usr/lib/erlang/lib/ssl-8.1.1/ebin"'
  • ERL_SSL_PATH='"/usr/lib/erlang/lib/ssl-8.1.1/ebin"'
  • sslErlArgs='-pa "/usr/lib/erlang/lib/ssl-8.1.1/ebin" -proto_dist inet_tls -ssl_dist_opt server_certfile /tmp/combined.pem -ssl_dist_opt server_secure_renegotiate true client_secure_renegotiate true'
    /docker-entrypoint.sh: line 401: RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: unbound variable
@michaelklishin
Copy link
Collaborator

@mikenowak would you mind providing a bit more details about how this can be reproduced?

@mikenowak
Copy link
Author

@michaelklishin hi, and sorry about that.

Basically I am suspecting that the problem is with this line:

export RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="$RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS $sslErlArgs"

that in my case gets evaluated as:

export RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS="$RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS -pa "/usr/lib/erlang/lib/ssl-8.1.1/ebin" -proto_dist inet_tls -ssl_dist_opt server_certfile /tmp/combined.pem -ssl_dist_opt server_secure_renegotiate true client_secure_renegotiate true"

Mind the double quotes twice over there.

In case you need it, here is how I start the container:

docker run -d --restart always --name rabbitmq --hostname rabbitmq -p 5671:5671 -p 15671:15671 -e RABBITMQ_SSL_CERT_FILE="/etc/ssl/certs/server.crt" -e RABBITMQ_SSL_KEY_FILE="/etc/ssl/certs/server.key" -e RABBITMQ_SSL_CA_FILE="/etc/ssl/certs/CASA-CA.pem" -e RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT="false" -v /etc/ssl/certs:/etc/ssl/certs:ro -v rabbitmq_var-lib-rabbitmq:/var/lib/rabbitmq rabbitmq:latest

Let me know if you need anything else.

@tianon
Copy link
Member

tianon commented Jun 6, 2017

Doh, excellent catch -- I'll submit a fix ASAP.

@michaelklishin
Copy link
Collaborator

@mikenowak thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants