简体   繁体   English

Websphere MQ:队列管理器无法连接

[英]Websphere MQ : Queue manager cannot connect

I have tried the different solutions offered in multiple threads but none of them are solving my issue.我尝试了多个线程中提供的不同解决方案,但没有一个解决了我的问题。 Also I noticed i have no error in my logs so it does not facilitate to find the root cause of my error.我还注意到我的日志中没有错误,因此不利于找到错误的根本原因。 Ok first thing first:好的,首先:

  • I am an administrator on my laptop我是笔记本电脑的管理员
  • I m running Windows 7 64 bit我正在运行 Windows 7 64 位
  • I m using MQ 8.0.0.5我正在使用 MQ 8.0.0.5

When I create a queue manager (btw i open WMQ as an administrator), the queue manager is created but I am getting the message AMQ8157: Security Error See attached picture当我创建队列管理器时(顺便说一句,我以管理员身份打开 WMQ),队列管理器已创建,但我收到消息 AMQ8157:安全错误 见附图在此处输入图片说明

The queue manager appears under the Queue Managers folder but it will not connect.队列管理器出现在 Queue Managers 文件夹下,但它不会连接。 When I click on connect i am getting the error当我点击连接时,我收到错误

An unexpected error (2063) has occurred.发生意外错误 (2063)。 (AMQ4999) An unexpected error (2063) has occurred. (AMQ4999) 发生意外错误 (2063)。 (AMQ4999) Severity: 10 (Warning) (AMQ4999) 严重性:10(警告)
Explanation: An unlisted error has occurred in the system while retrieving PCF data.说明: 检索 PCF 数据时,系统中发生了未列出的错误。 Response: Try the operation again.响应:重试该操作。 If the error persists, examine the problem determination information to see if any details have been recorded.如果错误仍然存​​在,请检查问题确定信息以查看是否记录了任何详细信息。

The .log does not display any error message so i am really stuck. .log 没有显示任何错误消息,所以我真的被卡住了。 Below is the only log im getting when creating the queue manager, nothing when i try to connect.下面是我在创建队列管理器时得到的唯一日志,当我尝试连接时什么也没有。

!ENTRY org.eclipse.osgi 2 1 2018-07-09 11:10:32.557 !MESSAGE NLS missing message: UI_WIZARD_FILE_SIZE_UNCHANGED2_LABEL in: com.ibm.wmqfte.explorer.elements !SESSION 2018-07-09 11:14:46.319 ----------------------------------------------- eclipse.buildId=unknown java.fullversion=JRE 1.7.0 IBM J9 2.7 Windows 7 amd64-64 Compressed References 20160406_298393 (JIT enabled, AOT enabled) J9VM - R27_Java727_SR3_20160406_0942_B298393 JIT - tr.r13.java_20160328_114186 GC - R27_Java727_SR3_20160406_0942_B298393_CMPRSS J9CL - 20160406_298393 BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB Command-line arguments: -os win32 -ws win32 -arch x86_64 !ENTRY org.eclipse.osgi 2 1 2018-07-09 11:10:32.557 !MESSAGE NLS 缺少消息:UI_WIZARD_FILE_SIZE_UNCHANGED2_LABEL in: com.ibm.wmqfte.explorer.elements !SESSION-20194:SESSION-20194:UI_WIZARD_FILE_SIZE_UNCHANGED2_LABEL ---------------------------------------------- eclipse.buildId=未知java.fullversion = JRE 1.7.0 IBM J9 2.7的Windows 7 amd64-64压缩参考20160406_298393(JIT启用,启用AOT)J9VM - R27_Java727_SR3_20160406_0942_B298393 JIT - tr.r13.java_20160328_114186 GC - R27_Java727_SR3_20160406_0942_B298393_CMPRSS J9CL - 20160406_298393 BootLoader的常数:OS = Win32中, ARCH=x86_64, WS=win32, NL=en_GB 命令行参数:-os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.osgi 2 1 2018-07-09 11:14:51.921 !MESSAGE NLS missing message: UI_WIZARD_FILE_SIZE_UNCHANGED2_LABEL in: com.ibm.wmqfte.explorer.elements !ENTRY org.eclipse.osgi 2 1 2018-07-09 11:14:51.921 !MESSAGE NLS 缺少消息:UI_WIZARD_FILE_SIZE_UNCHANGED2_LABEL 在:com.ibm.wmqfte.explorer.elements

This definitely seems like an issue related to permissions, you might want to double check on the users and groups for MQ that you have.这显然是一个与权限相关的问题,您可能需要仔细检查您拥有的 MQ 用户和组。 Also, could you check the MQ service if its using the same account which is supposed to be taken.另外,您能否检查 MQ 服务是否使用了应该使用的相同帐户。 (though its wierd that there aren't any logs for security error) (虽然奇怪的是没有任何安全错误日志)

Usually the reason for a security error will be logged by the queue manager in its own error logs (for security reasons you don't want to give the reason the client as they could use this against you).通常,安全错误的原因将由队列管理器记录在其自己的错误日志中(出于安全原因,您不想向客户端提供原因,因为他们可能会使用它来对付您)。 You can find your error logs here:您可以在此处找到错误日志:

C:\\ProgramData\\IBM\\MQ\\qmgrs\\Mel2\\errors C:\\ProgramData\\IBM\\MQ\\qmgrs\\Mel2\\errors

AMQERR01.LOG is the most recent log file. AMQERR01.LOG 是最新的日志文件。

The biggest mistake people make is trying to do MQ changes under the Administration account (Windows) or root (Unix/Linux).人们犯的最大错误是试图在管理帐户 (Windows) 或 root (Unix/Linux) 下进行 MQ 更改。 First, you will make a mess of things and secondly, it does not work as you think it does.首先,你会把事情弄得一团糟,其次,它不像你想象的那样工作。

You should ONLY use the Administration or root account for the installation of MQ, after that use your own account.您应该只使用管理或 root 帐户安装 MQ,然后使用您自己的帐户。

If you are going to be the "MQAdmin" on your WIndows PC then:如果您要成为 WINdows PC 上的“MQAdmin”,那么:

  1. Stop using the Administrator account for MQ停止使用 MQ 的管理员帐户
  2. Use your OWN user account for MQ configuration/administration使用您自己的用户帐户进行 MQ 配置/管理
  3. Add your user account to the "mqm" group将您的用户帐户添加到“mqm”组
  4. Either restart the queue manager(s) or issue the refresh security command重新启动队列管理器或发出 refresh security 命令
  5. Once your UserId is in the "mqm" group, you can configure your queue managers一旦您的 UserId 在“mqm”组中,您就可以配置您的队列管理器

Note: If you were configuring MQ with Administration account then I would delete EVERYTHING you did under the Administrator account and simply start over doing it the right way.注意:如果您使用管理帐户配置 MQ,那么我会删除您在管理员帐户下所做的一切,然后按照正确的方式重新开始。 Otherwise, you will be posting question after question on Stackoverflow asking why "this does not work" and "that does not work".否则,您将在 Stackoverflow 上发布一个又一个问题,询问为什么“这不起作用”和“那不起作用”。

I was also facing same issue.我也面临同样的问题。 So,I have the MQMD service , right click on MQMD service, and change the log on to 'Local System Account' and and restarted the service and now working fine.所以,我有 MQMD 服务,右键单击 MQMD 服务,然后将登录更改为“本地系统帐户”并重新启动该服务,现在工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM