Я получаю приведенную ниже ошибку при подключении к IBM MQ с использованием библиотеки pymqi.
Это кластерный канал MQ
AMQ6235: Directory 'U:' missing.
Traceback (most recent call last):
File "postToQueue.py", line 425, in <module>
qmgr = pymqi.connect(queue_manager)
File "C:\Python\lib\site-packages\pymqi\__init__.py", line 2534, in connect
qmgr = QueueManager(queue_manager)
File "C:\Python\lib\site-packages\pymqi\__init__.py", line 1319, in __init__
self.connect(name)
File "C:\Python\lib\site-packages\pymqi\__init__.py", line 1345, in connect
raise MQMIError(rv[1], rv[2])
pymqi.MQMIError: MQI Error. Comp: 2, Reason 2009: FAILED: MQRC_CONNECTION_BROKEN
Пожалуйста, смотрите мой код ниже.
queue_manager = 'quename here'
channel = 'channel name here'
host = 'host-name here'
port = '2333'
queue_name = 'queue name here'
conn_info = '%s(%s)' % (host, port)
print(conn_info)
qmgr = pymqi.connect(queue_manager, channel, conn_info)
queue = pymqi.Queue(qmgr, queue_name)
queue.put(message)
print("message sent")
queue.close()
qmgr.disconnect()
message = 'my message here'
Получение ошибки в строке ниже
qmgr = pymqi.connect(queue_manager, channel, conn_info)