2021-12-03

IBM mq- The security authentication was not valid that was supplied to queue manager 'X'. MQCC_Failed with compcode 2

I am having authentication issues when a pod is trying to connect to the IBM mq. The error that I am getting at the pod level is:

So we have a config.yaml file where it specifies which channel to and what user to use to connect from a particular env. We have dev, prod env. The prod env is working correctly however the dev env is giving the above error. However, we also have a docker file of the ibm-mq where user y is created in the base image. This is separate from the config.json file. So it is taking the user in the dockerfile rather than the user in the config.yaml file. So I want to use staging user which is mentioned in config.yml file and has all the permissions but it is using the user in the docker base image.

config.yml

ibm:
  mq:
    connName: x.x.x.x(1414)
    queueManager: x
    channel: x.x
    user: staging

Docker file

User y created in base image
USER 7676
ENTRYPOINT ["/entrypoint.sh"]
CMD ["./app.jar"]
nested exception is com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').","context":"default","module":"app"}
{"timestamp":"2021-12-01 17:05:14.370","level":"ERROR","thread":"DefaultMessageListenerContainer-1","logger":"org.springframework.jms.listener.DefaultMessageListenerContainer","message":"Could not refresh JMS Connection for destination 'K' - retrying using FixedBackOff{interval=5000, currentAttempts=202648, maxAttempts=unlimited}. Cause: JMSWMQ2013: The security authentication was not valid that was supplied for QueueManager 'x' with connection mode 'Client' and host name '....'.; nested exception is com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').","context":"default","module":"app"}

The error that I am seeing at the queue manager is:

AMQ9557: Queue Manager User ID initialization failed for 'y'.

EXPLANATION:
The call to initialize the User ID 'y' failed with CompCode 2 and Reason
2035.
ACTION:
Correct the error and try again.
----- cmqxrsrv.c : 2282 -------------------------------------------------------
12/01/2021 04:40:45 PM - Process(1388.82388) User(mqm) Program(amqrmppa)
                    Host(....)Installation(Installation1)
                    VRMF(8.0.0.2) QMgr(Y)


from Recent Questions - Stack Overflow https://ift.tt/3o6n0zQ
https://ift.tt/eA8V8J

No comments:

Post a Comment