Closed pmorch closed 1 year ago
Hmmm. I don't remember assigning @RoddieKieley . Sorry if I did.
Hi! Any progress on this issue?
/Erik
@pmorch For the anonymous login, if you are using the docker, just add additional environment variable as below: AMQ_EXTRA_ARGS=--require-login, for the issue where any character you input, login is possible. There is similar configuration when you create your broker using zip file(windows) as well
For the blank screen issue, just found out that by utilizing on AMQ_EXTRA_ARGS too, on AMQ_EXTRA_ARGS=--host 0.0.0.0 , it should be able to render correctly after that, works for me in kubernetes.
I am preparing a Docker Compose for local development and I found the same issue of @pmorch.
I have disabled the Jolokia restrictions with docker run -e AMQ_EXTRA_ARGS='--relax-jolokia' ...
. Obviously, this is not a solution for production environments but works for dev environments.
@sweeguan-ng solution setting AMQ_EXTRA_ARGS=--host 0.0.0.0
did not work for me.
I am preparing a Docker Compose for local development and I found the same issue of @pmorch.
I have disabled the Jolokia restrictions with
docker run -e AMQ_EXTRA_ARGS='--relax-jolokia' ...
. Obviously, this is not a solution for production environments but works for dev environments.@sweeguan-ng solution setting
AMQ_EXTRA_ARGS=--host 0.0.0.0
did not work for me.
Hey, i typed it wrongly, it should be --http-host 0.0.0.0 instead of --host 0.0.0.0
Hey, i typed it wrongly, it should be --http-host 0.0.0.0 instead of --host 0.0.0.0
Tried both (combined and separated) without luck using WSL2 (Docker Desktop) since the redirection to 0.0.0.0 from Windows does not work. @pmorch commented this in Stackoverflow too.
I suppose that works when you are not using Docker Desktop. In the end, I just use --relax-jolokia
for local development, that seems to fix the issue in my environment.
I'm unsubscribing from this issue, as I'm no longer considering use of activemq - primarily for this reason - but am using rabbitmq instead.
At least when I wrote the issue, it was valid, but if you want to close this issue because it no longer is an issue for me, for my sake feel free to do so.
Any news on that issue. The problem is still relevant when using Docker on Windows.
Hey, y'all!
This is my working command on Windows WSL2 (Docker Desktop)
docker run --rm -e AMQ_USER=admin -e AMQ_PASSWORD=admin123 -e AMQ_EXTRA_ARGS='--relax-jolokia --http-host 0.0.0.0' -p8161:8161 --name artemis quay.io/artemiscloud/activemq-artemis-broker:latest
As you can see, I'm using --http-host
and --relax-jolokia
to have a working environment.
@hguerrero Works! Thank you very much.
@hguerrero thanks for your solution
I've described this issue on stackoverflow. An answer says this is by design, so I'm posting here.
Short version
When I run ActiveMQ Artemis in docker I see this basically empty screen:
That doesn't look right... I was expecting this, like I get when using the zip file:
Regardless of whether I use docker or the zip file, it doesn't matter what username or password I enter, I just get logged in regardless, which is a little concerning...
Quickly deploy a basic Container image that runs the broker suggests I should now be able to access the console as: http://localhost:8161/console/ , but an answer on stackoverflow suggest that I must use the URL printed in the log: http://172.17.0.3:8161/console .
If that is true, that is a problem because that URL is not accessible using Docker for Windows. Only http://localhost:8161/console and using the IP of the windows host.
I'm guessing this restriction is because launch.sh line 16 has
... --http-host $BROKER_IP ...
and a previous line has:export BROKER_IP=\
hostname -I | cut -f 1 -d ' '`` :-(It is also possible, that the empty screen has a completely different cause. But I think the empty screen is a problem whatever the cause.
Longer Version
I'm attempting a "Hello World" style installation of ActiveMQ. It sounds like ActiveMQ Artemis is what I should be using. We'll be using this on Kubernetes, so I found and have followed https://artemiscloud.io/. There is a Quickly deploy a basic Container image that runs the broker right there on the front page. It suggests:
I changed the port to
-p8161:8161
and run it using Docker for Windows. Visiting http://localhost:8161/console/ shows me the first screenshot above.If I instead download from https://activemq.apache.org/components/artemis/download/ and follow https://activemq.apache.org/components/artemis/documentation/latest/using-server.html I get the second screenshot.
Regardless of whether I use docker or the zip file, it doesn't matter what username or password I enter, I just get logged in regardless.
Full docker console log