-
Notifications
You must be signed in to change notification settings - Fork 189
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
mqweb does not stop / restart #448
Comments
Can you clarify the steps you're taking to see the error, please? I've just tried restart the web server, and it seemed to work: docker run -d -e LICENSE=accept ibmcom/mq
4b5c1547289d532109ec13e058c2bf2f73edd5a3942ee73451d743e5ef20c278
$ docker exec -ti 4b5 bash
bash-4.4$ ps -ef
UID PID PPID C STIME TTY TIME CMD
1001 1 0 2 15:59 ? 00:00:00 runmqserver -nologruntime -dev
1001 52 1 0 15:59 ? 00:00:00 /bin/sh /opt/mqm/bin/strmqweb
1001 152 52 0 15:59 ? 00:00:00 /bin/sh /opt/mqm/web/bin/server start mqweb
1001 175 152 99 15:59 ? 00:00:22 /opt/mqm/java/jre64/jre/bin/java -javaagent:/opt/mqm/web/bin/tools/ws-javaagent.jar -Djava.awt.headless=true -Djdk.attach.allowAttachSelf=true -XX:MaxPermSize=256m -Djdk.tls.ephemeralDHKey
1001 176 152 8 15:59 ? 00:00:00 /opt/mqm/java/jre64/jre/bin/java -javaagent:/opt/mqm/web/bin/tools/ws-javaagent.jar -Djava.awt.headless=true -Djdk.attach.allowAttachSelf=true -jar /opt/mqm/web/bin/tools/ws-server.jar mqw
1001 229 1 1 15:59 ? 00:00:00 /opt/mqm/bin/amqzxma0 -m 4b5c1547289d -x -u mqm
1001 245 229 0 15:59 ? 00:00:00 /opt/mqm/bin/amqzfuma -m 4b5c1547289d
1001 250 229 0 15:59 ? 00:00:00 /opt/mqm/bin/amqzmgr0 -m 4b5c1547289d
1001 253 229 1 15:59 ? 00:00:00 /opt/mqm/bin/amqzmuc0 -m 4b5c1547289d
1001 271 229 0 15:59 ? 00:00:00 /opt/mqm/bin/amqzmur0 -m 4b5c1547289d
1001 300 229 0 15:59 ? 00:00:00 /opt/mqm/bin/amqzmuf0 -m 4b5c1547289d
1001 316 229 0 15:59 ? 00:00:00 /opt/mqm/bin/amqrrmfa -m 4b5c1547289d -t2332800 -s2592000 -p2592000 -g5184000 -c3600
1001 339 250 0 15:59 ? 00:00:00 /opt/mqm/bin/runmqchi -m 4b5c1547289d -q SYSTEM.CHANNEL.INITQ -r
1001 343 250 0 15:59 ? 00:00:00 /opt/mqm/bin/amqpcsea 4b5c1547289d
1001 346 250 0 15:59 ? 00:00:00 /opt/mqm/bin/runmqlsr -r -m 4b5c1547289d -t TCP -p 1414
1001 353 229 0 15:59 ? 00:00:00 /opt/mqm/bin/amqzlaa0 -m4b5c1547289d -fip0
1001 358 300 0 15:59 ? 00:00:00 /opt/mqm/bin/amqfqpub -m4b5c1547289d
1001 391 358 0 15:59 ? 00:00:00 /opt/mqm/bin/amqfcxba -m 4b5c1547289d
1001 446 0 1 15:59 pts/0 00:00:00 bash
1001 454 446 1 15:59 pts/0 00:00:00 ps -ef
bash-4.4$ dspmqweb
MQWB1124I: Server 'mqweb' is running.
MQWB1121E: The status of the mqweb server applications cannot be determined.
A request was made to read the status of the deployed mqweb server applications, however the data was not available. This may indicate that there is already an mqweb server started on this system, probably related to another IBM MQ instance.
Check the startup logs for the mqweb server, looking in particular for conflicting usage of network ports. Ensure that if you have multiple mqweb servers on a system, they are configured to use distinct network ports. Restart the mqweb server and ensure it started correctly. If the problem persists, seek assistance from IBM support.
bash-4.4$ endmqweb
Stopping server mqweb.
Server mqweb stopped.
bash-4.4$ strmqweb
Starting server mqweb.
Server mqweb started with process ID 759.
bash-4.4$ dspmqweb
MQWB1124I: Server 'mqweb' is running.
MQWB1123E: The status of the mqweb server applications cannot be determined.
A request was made to read the status of the deployed mqweb server applications, however the data appears corrupt. This may indicate that there is already an mqweb server started on this system, probably related to another IBM MQ instance.
Check the startup logs for the mqweb server, looking in particular for conflicting usage of network ports. Ensure that if you have multiple mqweb servers on a system, they are configured to use distinct network ports. Restart the mqweb server and ensure it started correctly. If the problem persists, seek assistance from IBM support. |
docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --publish 1415:1414 --publish 9445:9443 --detach --volume qm1data:/mnt/mqm ibmcom/mq docker ps docker stop b9a74bfc8be6 docker start b9a74bfc8be6 docker logs b9a74bfc8be6 |
docker exec -ti b9a bash Stopping server mqweb. |
I am also facing same issue with ibmcom/mq latest container |
Facing the same issue here!
|
I forced a refresh of my docker image (it was a 2 months old). It worked on the first execution but not on subsequent one... |
I have the same issue. In a fresh container the web UI works fine, but if the container gets restarted it stops working. The mqweb logs show some errors related to keystore bindings, I suspect the issue has to do with how mqweb is setting up a cert when it runs for the https connection to the UI, but I have no idea how to fix it. |
Yup, I'm seeing the same behavior with Run command: |
For me, I had to downgrade to 9.2.0.0-r1 in order to restart correctly the web console. |
Same behavior and same error message running 9.2.3.0-r1. Note that I am on docker for Windows but I assume this should have no influence. |
I get the same behavior on latest but also 9.2.1.0-r1. Its log when trying to resume it with docker start :
Also, I noticed if I run the endmqweb and strmqweb while the container is running, even though the mqweb process is running, it no longer is accessible in the web browser. |
I am seeing the same issues. The web server starts fine when the container starts, but if stopped and restarted independently it fails with errors connecting to the keystore: Initial state: Stop: Stopping server mqweb. Check: Restart: Starting server mqweb. Check: The web console is unusable at this point. Checking the webserver logs gives me the following errors: Console.log: Messages.log |
UPDATE: Reported this directly to IBM and they have recreated the issue. Working with the platform team to resolve. |
+1 ver 9.2.3.0-r1 |
Anyone of IBM messaging team has some kind of update about this issue? |
The update from the IBM platform team to the ticket I raised above is that this is working as designed now. Control of the web server has been moved to the container level. |
Hello I'm using latest image: 9.2.4.0-r1 and I'm having the same problem. If I get latest and run it, it works the first time but if I stop the container and start again I get the above error. I'm following this tutorial and using the commands provided there: Workaround is to not use volumes and add the --rm flag to remove the container when it stops:
|
I'd also like to mention that I experienced the very same problem using the latest (9.2.4.0-r1) as well as 9.2.1.0-r1. As per fergardi, mqweb is working fine (post restart) after downgrading to 9.2.0.0-r1. Hopefully IBM addresses this issue soon. Thanks all for the inputs, this thread was very helpful! |
+1. I have tried icr.io/ibm-messaging/mq:9.2.5.0-r1 and the problem still persists if you run the
Another thing, it seems like IBM have deprecated the containers in DockerHub and the new versions of ibm-mq are available in IBM Container Registry. |
Still an issue in v9.3.0.0 |
Still issue for me here with v9.3.0.0 too |
Me too. Spun up a docker container with the following: docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --publish 1414:1414 --publish 9443:9443 --detach --volume qm1data:/mnt/mqm icr.io/ibm-messaging/mq:latest IBM MQ queue manager 'QM1' started using V9.3.0.0 |
Any updates on this? |
I was facing the same problem, I was following this tutorial.. I solved the problem deleting the docker volumen where Ibm stores data with the next command: docker volume rm yourIBMVolume I created the volumen once again and the container too and problem was fixed !! |
I have the same issue with 9.3.1.0 from docker pull icr.io/ibm-messaging/mq:latest |
Any update on this? The same issue with the latest version!! |
There seem to be two sets of people doing different things on this issue:
I think the original issue was for option (1), which would be for a new feature of the code, which we're not working on, and have no plans for. Therefore I think this issue should be closed. However, if someone can confirm that option (2) is happening, I think that might be worth a new issue. I cannot reproduce that behaviour with Podman, so the answer may be Docker specific, but we can handle that if someone raising a new issue. |
This issue is about restarting the entire container. Last time I tried it, and as others mentioned above, only deleting the volume solved the issue. |
Multiple comments in this issue are specific to just restarting the web component within a running container. The issue has become confused, so I have closed it. If someone wants to raise a new issue for the full container restart, providing full details of how to reproduce, including their environment details, we can try reproduce it and fix the problem. As it is, I cannot reproduce it. |
I was able to reproduce the problem, the web console worked the first time when the container was started, I restarted the container and web console stopped working. I am running Docker Desktop 4.17.0 for windows with WSL2 enabled in docker. |
I previously closed this as I thought it was confusing, and hoped to clear up that confusion with new issues. Seeing the negative reactions, I realise this was the wrong approach. My apologies. Re-opening. |
I also faced same issue and could not find a solution from IBM for this. After some digging based on previous comments on deleting the volume, I figured out the web configuration is in the folder /mnt/mqm/data/web. To make life easy I have added a script to delete this folder at the start up. Every time you restart the container, the web folder is deleted and recreated. This is not the most elegant solution but at least it works for me until IBM comes up with a solution. DockerfileFROM icr.io/ibm-messaging/mq:9.3.1.1-r1 USER root init_script.sh#!/bin/bash Hope this helps. |
Alternate workaround based on the solution by @chamila-lfs : before stopping the container, execute |
Any updates? I faced the same issue with the latest image |
the same issue here: |
Restart is still not working for "latest". |
Hi all, can anyone here try the same using |
Update .whitesource to scan 9.3.0 container branch
i am having the exact same issue with my setup "AWS fargate + EFS Storage" . if the container got restarted for any reason, the mqweb reports that it is already running. |
+1, same issue here, and delete /mnt/mqm/data/web can fix it. log2024-02-06 14:23:05 2024-02-06T06:23:05.893Z Error 1 starting web server: imageicr.io/ibm-messaging/mq:latest dspmqverName: IBM MQ |
It works for me: cp /opt/mqm/web/mq/samp/configuration/basic_registry.xml /var/mqm/web/installations/Installation1/servers/mqweb/mqwebuser.xml setmqweb properties -k httpHost -v '*' setmqweb properties -k mqRestMftEnabled -v true |
Yes, this worked for me too. |
Hi all, please note that latest cd release |
@jwende @espaciomore @jcreforme @KoakiMiku @afahmy11 @peters-axon @elawady55 @rubenramosDev ^^^ |
Thanks, I downloaded this latest MQ 9.3.5 image, and the issue with the web console appears to be fixed in that it successfully launches each time the container is executed. However, has something changed with the login id/password mechanism? I used the --env MQ_APP_PASSWORD=passw0rd option in my docker run, but I can't log in (userid admin). I tried a bunch of basic credential combinations and none of them are working. I'm also following the mqweb setup instructions here: https://developer.ibm.com/tutorials/mq-setting-up-using-ibm-mq-console/ |
The There was a related change in MQ 9.3.4, where you now have to set a password if you want to have either user: there's no default password. |
Thanks a lot, this resolved my issue. One small note for the IBM folks who compiled this latest 9.3.5 image -- vi doesn't appear to be available (it is in 9.2.0.0). So I'm not sure how to edit the mqwebuser.xml file.
|
Glad that solved the problem. IBM MQ uses the |
@jwende as the issue is now resolved in the latest version of mq-container, can this git issue be closed? |
No, in version 9.4.0.0-r3 we are still having this issue. So basically, if OOM terminates the web console process, strmqweb is unable to normally start the web console. |
The reason why is quite simply,
If I set those variables in the terminal and then start strmqweb, MQ web console starts normally because strmqweb has those variables from the bash process.
Example:
|
@dariodsa the initial issue reported in this git issue is something like this - the user first starts mq-container. Web server will be running fine. Later stops the container and restarts it, the container console logs throw the error, Your scenario seems a little different unlike the one mentioned above. Suggest you to raise a new git issue for the same, so that it can be discussed in a new thread. Cc: @arthurbarr |
Ok, I opened a new issue #583. |
I'm just running the latest container from dockerhub. It starts fine but if I stop and restart the mqweb component does not work any longer. Same behavior with and without volumes attached to the container.
9.2.0.0 works fine
Regards
Joerg
2021-03-22T15:33:06.951Z Error 1 starting web server:
Server mqweb is already running.
2021-03-22T15:33:06.951Z Error starting web server: exit status 1
The text was updated successfully, but these errors were encountered: