ibm-messaging / mq-helm

Apache License 2.0
28 stars 36 forks source link

Issue in using MQ Advanced image with Native HA setup #106

Closed DanielTamil closed 1 day ago

DanielTamil commented 3 days ago

I am using the Helm to host ibmmq advanced image, but it fails with below error. I tried different stoageclass, its the same issue.

Reason: AMQ5708E: Native HA is unavailable. 2024-10-28T10:36:23.977Z /opt/mqm/bin/crtmqm: exit status 93 2024-10-28T10:36:24.051Z stat /var/mqm/web/installations/Installation1/servers/mqweb/logs/messages.log: no such file or directory

2024-10-28T10:36:18.907Z Running as user ID 1001 with primary group 0, and supplementary groups 0 2024-10-28T10:36:18.908Z Capabilities: none 2024-10-28T10:36:18.908Z seccomp enforcing mode: disabled 2024-10-28T10:36:18.908Z Process security attributes: none 2024-10-28T10:36:18.908Z Detected 'nfs' volume mounted to /mnt/mqm 2024-10-28T10:36:18.908Z Detected 'nfs' volume mounted to /mnt/mqm-data 2024-10-28T10:36:18.908Z Detected 'nfs' volume mounted to /mnt/mqm-log 2024-10-28T10:36:18.937Z Warning creating directory structure: The filesystem object '/mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml' is a symbolic link. AMQ6245E: Error executing system call 'chmod 660' on file '/mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml' error '30'. 2024-10-28T10:36:18.937Z Created directory structure under /var/mqm 2024-10-28T10:36:18.937Z Image created: 2024-09-09T15:19:25+00:00 2024-10-28T10:36:18.937Z Image tag: ibm-mqadvanced-server:9.3.0.21-amd64 2024-10-28T10:36:18.967Z MQ version: 9.3.0.21 2024-10-28T10:36:18.967Z MQ level: p930-021-240813 2024-10-28T10:36:18.967Z MQ license: Production 2024-10-28T10:36:23.938Z Starting web server 2024-10-28T10:36:23.938Z FIPS cryptography is not enabled. 2024-10-28T10:36:23.938Z Creating queue manager QM1 2024-10-28T10:36:23.977Z Error creating queue manager: the 'crtmqm' command returned with code: 93. Reason: AMQ5708E: Native HA is unavailable. 2024-10-28T10:36:23.977Z /opt/mqm/bin/crtmqm: exit status 93 2024-10-28T10:36:24.051Z stat /var/mqm/web/installations/Installation1/servers/mqweb/logs/messages.log: no such file or directory

vgavinash commented 3 days ago

@DanielTamil, hi Daniel, since its a volume of type 'nfs' it is creating permissions issue on mq folders. Appropriate fsGroup/SupplementalGroups need to be added. The values will be specific to storage class you use, which you may have to figure out.

DanielTamil commented 2 days ago

Hi,

What's the use of this environment variable ? This solved my issue.

vgavinash commented 2 days ago

Prior to 9.3.2, when Native HA was originally implemented, it was Cloud Pak-only, so the environment variable named AMQ_CLOUD_PAK was used to signal that you were in the Cloud Pak, and could use Native HA. Post that its extended to advanced license, the variable MQ_NATIVE_HA can be used for that.

DanielTamil commented 1 day ago

Thanks for the response. Now I get it.