Hello. I tried connecting my MQ Explorer to my MQ running in Docker but got this error: “Could not establish a connection to the queue manager - reason 2538 (AMQ4059)”. I use Docker Desktop in Windows OS, with installed Windows Subsystem for Linux (WSL) and Ubuntu distro.
Here are the steps I took:
From the MQ Explorer, I added a Remote Queue Manager
Specified the connection details: inputted my machine’s IP address, port number (30014), server-connection channel (same as the one running in my Docker MQ)
Specified user identification details: inputted my Windows OS user credentials (admin)
Is there anything that I missed? Thank you so much!
How did you start the container? Are you sure the right port is forwarded to the right port in the container? You mention you installed an Ubuntu distro. How is it relevant? Did you run commands from there? When you say you used your host’s IP address, was it the IP of the Windows host or the WSL distro?
I’ve been trying to input both ports: 30014 and 1414 in my MQ explorer, but both have errors.
3. No, I did not run commands for MQ in the Ubuntu Distro. I only run commands in the Ubuntu Distro when I was creating my Docker environment.
4. IP of the Windows host.
Is MQ Explorer running on the Windows host or in another container? If it is running on the host, try “localhost” instead of the Windows host IP. If that doesn’t work either, check the container logs. You can do it from Docker Desktop too. Or just run docker logs mq-1 from powershell or command line, or the Ubuntu distro. Maybe there is something in the logs explaning why it is not listening properly so you can’t connect.
It would have been better sharing the logs as text. Please, take a look at our formatting guide: How to format your forum posts
I never used MQ or MQ Explorer. But if it is an authentication issue, I won’t be able to help. If you see auth error logs, that means the problem is not with port. If there is any verbose log, you could try to enable that. Maybe it would show more details about the auth error.