微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Docker:无法访问 IBM MQ Web 管理控制台

如何解决Docker:无法访问 IBM MQ Web 管理控制台

我按照文章 - https://github.com/nuviosoftware/custom-ibm-mq 操作并使用桌面版 docker 在我的 Windows 笔记本电脑中使用以下命令部署容器

docker build -t nuviosoftware-mq-local .
docker volume create qm1data

并执行

docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --volume qm1data:/mnt/mqm --publish 1414:1414 --publish 9443:9443  --env MQ_APP_PASSWORD=passw0rd nuviosoftware-mq-local

下面是容器日志

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (windows/amd64) and no specific platform was requested
2021-07-15T08:58:20.659Z cpu architecture: amd64
2021-07-15T08:58:20.659Z Linux kernel version: 4.19.27-linuxkit
2021-07-15T08:58:20.661Z Base image: Red Hat Enterprise Linux 8.3 (Ootpa)
2021-07-15T08:58:20.661Z Running as user ID 0 with primary group 0
2021-07-15T08:58:20.661Z Capabilities (bounding set): chown,dac_override,fowner,fsetid,kill,setgid,setuid,setpcap,net_bind_service,net_raw,sys_chroot,mknod,audit_write,setfcap
2021-07-15T08:58:20.661Z seccomp enforcing mode: disabled
2021-07-15T08:58:20.661Z Process security attributes: none
2021-07-15T08:58:20.661Z Detected '9p' volume mounted to /mnt/mqm
2021-07-15T08:58:25.540Z Using queue manager name: QM1
2021-07-15T08:58:27.316Z Created directory structure under /var/mqm
2021-07-15T08:58:27.316Z Image created: 2021-03-12T09:57:54+00:00
2021-07-15T08:58:27.316Z Image tag: ibm-mqadvanced-server-dev:9.2.2.0-r1.20210312094918.14987c1-amd64
2021-07-15T08:58:27.794Z MQ version: 9.2.2.0
2021-07-15T08:58:27.794Z MQ level: p922-L210310.DE
2021-07-15T08:58:27.794Z MQ license: Developer
2021-07-15T08:58:29.405Z Creating queue manager QM1
2021-07-15T08:58:29.405Z Starting web server
2021-07-15T08:58:29.652Z Detected existing queue manager QM1
2021-07-15T08:58:29.675Z Error 126 starting web server: AMQ5061E: Program 'strmqweb' cannot be run with root privileges.

2021-07-15T08:58:29.675Z Error starting web server: exit status 126
2021-07-15T08:58:29.982Z Removing existing ServiceComponent configuration
2021-07-15T08:58:29.991Z Starting queue manager
2021-07-15T08:58:31.031Z AMQ5657W: The system resource RLIMIT_NOFILE is set at an unusually low level for IBM MQ. [ArithInsert1(1024),ArithInsert2(10240),CommentInsert1(RLIMIT_NOFILE)]
2021-07-15T08:58:31.216Z AMQ5657W: The system resource RLIMIT_NPROC is set at an unusually low level for IBM MQ. [ArithInsert1(3844),ArithInsert2(4096),CommentInsert1(RLIMIT_NPROC)]
2021-07-15T08:58:31.962Z AMQ5775I: Successfully applied automatic configuration INI deFinitions. [CommentInsert1(INI)]
2021-07-15T08:58:36.368Z Initializing MQ Advanced for Developers custom authentication service
2021-07-15T08:58:39.939Z AMQ5051I: The queue manager task 'LOGGER-IO' has started. [ArithInsert2(1),CommentInsert1(LOGGER-IO)]
2021-07-15T08:58:42.052Z AMQ7229I: 6 log records accessed on queue manager 'QM1' during the log replay phase. [ArithInsert1(6),CommentInsert1(QM1)]
2021-07-15T08:58:42.104Z AMQ7230I: Log replay for queue manager 'QM1' complete. [ArithInsert1(6),CommentInsert1(QM1)]
2021-07-15T08:58:42.244Z AMQ5051I: The queue manager task 'CHECKPOINT' has started. [ArithInsert2(1),CommentInsert1(CHECKPOINT)]
2021-07-15T08:58:42.359Z AMQ7231I: 0 log records accessed on queue manager 'QM1' during the recovery phase. [CommentInsert1(QM1)]
2021-07-15T08:58:42.405Z AMQ7232I: Transaction manager state recovered for queue manager 'QM1'. [CommentInsert1(QM1)]
2021-07-15T08:58:42.542Z AMQ7233I: 0 out of 0 in-flight transactions resolved for queue manager 'QM1'. [CommentInsert1(QM1)]
2021-07-15T08:58:43.559Z AMQ5037I: The queue manager task 'APP-SIGNAL' has started. [ArithInsert2(1),CommentInsert1(APP-SIGNAL)]
2021-07-15T08:58:43.603Z AMQ5037I: The queue manager task 'APP-SIGNAL' has started. [ArithInsert2(2),CommentInsert1(APP-SIGNAL)]
2021-07-15T08:58:43.643Z AMQ5037I: The queue manager task 'APP-SIGNAL' has started. [ArithInsert2(3),CommentInsert1(APP-SIGNAL)]
2021-07-15T08:58:43.689Z AMQ5037I: The queue manager task 'APP-SIGNAL' has started. [ArithInsert2(4),CommentInsert1(APP-SIGNAL)]
2021-07-15T08:58:43.731Z AMQ5037I: The queue manager task 'APP-SIGNAL' has started. [ArithInsert2(5),CommentInsert1(APP-SIGNAL)]
2021-07-15T08:58:43.793Z AMQ5037I: The queue manager task 'ERROR-LOG' has started. [ArithInsert2(1),CommentInsert1(ERROR-LOG)]
2021-07-15T08:58:43.822Z AMQ5037I: The queue manager task 'APP-SIGNAL' has started. [ArithInsert2(6),CommentInsert1(APP-SIGNAL)]
2021-07-15T08:58:43.849Z AMQ5037I: The queue manager task 'APP-SIGNAL' has started. [ArithInsert2(7),CommentInsert1(APP-SIGNAL)]
2021-07-15T08:58:43.896Z AMQ5037I: The queue manager task 'APP-SIGNAL' has started. [ArithInsert2(8),CommentInsert1(APP-SIGNAL)]
2021-07-15T08:58:45.037Z AMQ8003I: IBM MQ queue manager 'QM1' started using V9.2.2.0. [CommentInsert1(9.2.2.0),CommentInsert3(QM1)]
2021-07-15T08:58:45.551Z AMQ5051I: The queue manager task 'DUR-SUBS-MGR' has started. [ArithInsert2(1),CommentInsert1(DUR-SUBS-MGR)]
2021-07-15T08:58:45.559Z AMQ9410I: Repository manager started.
2021-07-15T08:58:45.643Z AMQ5051I: The queue manager task 'TOPIC-TREE' has started. [ArithInsert2(1),CommentInsert1(TOPIC-TREE)]
2021-07-15T08:58:45.689Z AMQ5024I: The command server has started. ProcessId(135). [ArithInsert1(135),CommentInsert1(SYstem.CmdsERVER.1)]
2021-07-15T08:58:45.758Z AMQ5022I: The channel initiator has started. ProcessId(137). [ArithInsert1(137),CommentInsert1(SYstem.CHANNEL.INITQ)]
2021-07-15T08:58:45.802Z AMQ5051I: The queue manager task 'AUTOCONfig' has started. [ArithInsert2(1),CommentInsert1(AUTOCONfig)]
2021-07-15T08:58:45.838Z AMQ5051I: The queue manager task 'IQM-COMMS-MANAGER' has started. [ArithInsert2(1),CommentInsert1(IQM-COMMS-MANAGER)]
2021-07-15T08:58:46.262Z AMQ8942I: Starting to process automatic MQSC configuration script.
2021-07-15T08:58:46.291Z AMQ8024I: IBM MQ channel initiator started. [CommentInsert1(SYstem.CHANNEL.INITQ)]
2021-07-15T08:58:59.758Z AMQ8939I: Automatic MQSC configuration script has completed,and contained 24 command(s),of which 0 had errors. [ArithInsert1(24),CommentInsert1(0)]
2021-07-15T08:58:59.809Z AMQ5051I: The queue manager task 'ACTVTRC' has started. [ArithInsert2(1),CommentInsert1(ACTVTRC)]
2021-07-15T08:58:59.818Z AMQ5037I: The queue manager task 'DEFERRED_DELIVERY' has started. [ArithInsert2(1),CommentInsert1(DEFERRED_DELIVERY)]
2021-07-15T08:58:59.831Z AMQ5052I: The queue manager task 'QPUBSUB-CTRLR' has started. [ArithInsert2(1),CommentInsert1(QPUBSUB-CTRLR)]
2021-07-15T08:58:59.840Z AMQ5051I: The queue manager task 'EXPIRER' has started. [ArithInsert2(1),CommentInsert1(EXPIRER)]
2021-07-15T08:58:59.846Z AMQ5037I: The queue manager task 'DEFERRED-MSG' has started. [ArithInsert2(1),CommentInsert1(DEFERRED-MSG)]
2021-07-15T08:58:59.859Z AMQ5052I: The queue manager task 'QPUBSUB-SUBPT-NLCACHE' has started. [ArithInsert2(1),CommentInsert1(QPUBSUB-SUBPT-NLCACHE)]
2021-07-15T08:58:59.867Z AMQ5051I: The queue manager task 'Q-DELETION' has started. [ArithInsert2(1),CommentInsert1(Q-DELETION)]
2021-07-15T08:58:59.879Z AMQ5052I: The queue manager task 'QPUBSUB-QUEUE-NLCACHE' has started. [ArithInsert2(1),CommentInsert1(QPUBSUB-QUEUE-NLCACHE)]
2021-07-15T08:58:59.882Z AMQ5037I: The queue manager task 'STATISTICS' has started. [ArithInsert2(1),CommentInsert1(STATISTICS)]
2021-07-15T08:58:59.892Z AMQ5051I: The queue manager task 'ASYNCQ' has started. [ArithInsert2(1),CommentInsert1(ASYNCQ)]
2021-07-15T08:58:59.915Z AMQ5051I: The queue manager task 'RESOURCE_MONITOR' has started. [ArithInsert2(1),CommentInsert1(RESOURCE_MONITOR)]
2021-07-15T08:58:59.918Z AMQ5037I: The queue manager task 'MARKINTSCAN' has started. [ArithInsert2(1),CommentInsert1(MARKINTSCAN)]
2021-07-15T08:58:59.930Z AMQ5052I: The queue manager task 'PUBSUB-DAEMON' has started. [ArithInsert2(1),CommentInsert1(PUBSUB-DAEMON)]
2021-07-15T08:58:59.930Z AMQ5975I: 'IBM MQ distributed Pub/Sub Controller' has started. [CommentInsert1(IBM MQ distributed Pub/Sub Controller)]
2021-07-15T08:58:59.966Z AMQ5026I: The listener 'SYstem.LISTENER.TCP.1' has started. ProcessId(174). [ArithInsert1(174),CommentInsert1(SYstem.LISTENER.TCP.1)]
2021-07-15T08:58:59.984Z AMQ5051I: The queue manager task 'PRESERVED-Q' has started. [ArithInsert2(1),CommentInsert1(PRESERVED-Q)]
2021-07-15T08:59:00.011Z AMQ5051I: The queue manager task 'MULTICAST' has started. [ArithInsert2(1),CommentInsert1(MULTICAST)]
2021-07-15T08:59:00.142Z Started queue manager
2021-07-15T08:59:00.142Z Metrics are disabled
2021-07-15T08:59:00.225Z AMQ5975I: 'IBM MQ distributed Pub/Sub Command Task' has started. [CommentInsert1(IBM MQ distributed Pub/Sub Command Task)]
2021-07-15T08:59:00.279Z AMQ5975I: 'IBM MQ distributed Pub/Sub Publish Task' has started. [CommentInsert1(IBM MQ distributed Pub/Sub Publish Task)]
2021-07-15T08:59:00.294Z AMQ5975I: 'IBM MQ distributed Pub/Sub Fan Out Task' has started. [CommentInsert1(IBM MQ distributed Pub/Sub Fan Out Task)]
2021-07-15T08:59:00.498Z AMQ5806I: Queued Publish/Subscribe Daemon started for queue manager QM1. [CommentInsert1(QM1)]
2021-07-15T08:59:07.843Z AMQ5041I: The queue manager task 'AUTOCONfig' has ended. [CommentInsert1(AUTOCONfig)]

但是我可以访问网络管理控制台

enter image description here

以及我无法从客户端应用程序连接到 MQ

2021-07-15 14:31:40.922 ERROR 4884 --- [enerContainer-1] o.s.j.l.DefaultMessageListenerContainer  : Could not refresh JMS Connection for destination 'ORDER.RESPONSE' - retrying using FixedBackOff{interval=5000,currentAttempts=0,maxAttempts=unlimited}. Cause: JMSWMQ2013: The security authentication was not valid that was supplied for QueueManager 'QM1' with connection mode 'Client' and host name 'localhost(1414)'.; nested exception is com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call Failed with compcode '2' ('MQCC_Failed') reason '2035' ('MQRC_NOT_AUTHORIZED').
2021-07-15 14:31:47.368 ERROR 4884 --- [enerContainer-1] o.s.j.l.DefaultMessageListenerContainer  : Could not refresh JMS Connection for destination 'ORDER.RESPONSE' - retrying using FixedBackOff{interval=5000,currentAttempts=1,maxAttempts=unlimited}. Cause: JMSWMQ2013: The security authentication was not valid that was supplied for QueueManager 'QM1' with connection mode 'Client' and host name 'localhost(1414)'.; nested exception is com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call Failed with compcode '2' ('MQCC_Failed') reason '2035' ('MQRC_NOT_AUTHORIZED')

解决方法

我使用的是 Windows 模式并切换到 Linux 模式,它起作用了。

enter image description here

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?