MQI Error. Comp2, Reason 2058

Asked by Vivek C

Trying to connect to remote queue using queue_manager and conn_info

Tested using the windows 64bit binaries v 1.2 py2,7 client
 and am getting the following

  File "mqtest.py", line 12, in <module>
    qmgr = pymqi.connect(queue_manager, conn_info)
  File "C:\Python27\lib\site-packages\pymqi.py", line 2174, in connect
    qmgr = QueueManager(queue_manager)
  File "C:\Python27\lib\site-packages\pymqi.py", line 1152, in __init__
    self.connect(name)
  File "C:\Python27\lib\site-packages\pymqi.py", line 1177, in connect
    raise MQMIError(rv[1], rv[2])
pymqi.MQMIError: MQI Error. Comp: 2, Reason 2058: FAILED: MQRC_Q_MGR_NAME_ERROR

Question information

Language:
English Edit question
Status:
Answered
For:
PyMQI Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dariusz Suchojad (dsuch) said :
#1

> pymqi.MQMIError: MQI Error. Comp: 2, Reason 2058: FAILED: MQRC_Q_MGR_NAME_ERROR

Hi Vivek,

this is a standard MQ error meaning the queue manager name you provided
was incorrect.

Also, please always copy & paste code that causes you trouble.

Many thanks!

Revision history for this message
Vivek C (giskarded) said :
#2

Thanks for the quick response Dariusz.
The hostname I provided was incomplete and was the cause of the problem.

I updated the connection details and it worked, but I was getting the following error message

2035 MQRC Not Authorized.

The admin from MQ team was able to get that resolved. Any idea what the cause of the Not Authorized msg would have been?

Revision history for this message
Dariusz Suchojad (dsuch) said :
#3

I've just released PyMQI 1.3 and the development effort has moved to GitHub - https://github.com/dsuch/pymqi

Can you help with this problem?

Provide an answer of your own, or ask Vivek C for more information if necessary.

To post a message you must log in.