Skip to content

Failure to start queue manager in Azure with error: AMQ6109S: An internal IBM MQ error has occurred. #486

@thranedn

Description

@thranedn

When I try to run a container on Azure Container Instances, then I'm getting the same error every time I try to launch it.
Please help me diagnose this problem, as I don't know whether this is Azure related or not.

Here is the docker file used for for the container (I'm to get mutual auth to work down the line):

FROM ibmcom/mq:9.2.3.0-r1-amd64 USER 1001 COPY 20-config.mqsc /etc/mqm/ COPY key.crt /etc/mqm/pki/keys/mykey/ COPY key.key /etc/mqm/pki/keys/mykey/ 

The config file 20-config.mqsc contains:

ALTER CHANNEL(DEV.APP.SVRCONN) CHLTYPE(SVRCONN) SSLCIPH(ANY_TLS12) ALTER CHANNEL(DEV.APP.SVRCONN) CHLTYPE(SVRCONN) SSLCAUTH(OPTIONAL) 

I push the container to the Azure container registry with the tag crprototype.azurecr.io/mqauth:1.

Here are the start commands in Azure :

az group create --name rg-prototype-auth --location westeurope az container create -g rg-prototype-auth --name mq2 --image crprototype.azurecr.io/mqauth:1 --environment-variables LICENSE=accept MQ_QMGR_NAME=QM1 --ports 1414 9443 9157 --location westeurope --dns-name-label happytitan 

It produces this output when I try to start the container:

2021-12-06T19:12:20.999Z CPU architecture: amd64 2021-12-06T19:12:21.000Z Linux kernel version: 4.15.0-1113-azure 2021-12-06T19:12:21.000Z Container runtime: kube 2021-12-06T19:12:21.000Z Base image: Red Hat Enterprise Linux 8.4 (Ootpa) 2021-12-06T19:12:21.000Z Running as user ID 1001 with primary group 0 2021-12-06T19:12:21.000Z Capabilities (bounding set): chown,dac_override,fowner,fsetid,kill,setgid,setuid,setpcap,net_bind_service,net_raw,sys_chroot,mknod,audit_write,setfcap 2021-12-06T19:12:21.000Z seccomp enforcing mode: disabled 2021-12-06T19:12:21.000Z Process security attributes: docker-default (enforce) 2021-12-06T19:12:21.000Z No volume detected. Persistent messages may be lost 2021-12-06T19:12:21.111Z Using queue manager name: QM1 2021-12-06T19:12:21.113Z DEBUG: --- Start Diagnostics --- 2021-12-06T19:12:21.116Z DEBUG: /mnt/: total 12 drwxrwsr-x 3 1001 root 4096 Jul 9 06:05 mqm drwxrwsr-x 3 1001 root 4096 Jul 9 06:05 mqm-data drwxrwsr-x 3 1001 root 4096 Jul 9 06:05 mqm-log 2021-12-06T19:12:21.119Z DEBUG: /mnt/mqm: total 4 drwxrwsr-x 2 1001 root 4096 Jul 9 06:05 data 2021-12-06T19:12:21.122Z DEBUG: /mnt/mqm/data: total 0 2021-12-06T19:12:21.125Z DEBUG: /mnt/mqm-log/log: total 0 2021-12-06T19:12:21.128Z DEBUG: /mnt/mqm-data/qmgrs: total 0 2021-12-06T19:12:21.130Z DEBUG: /var/mqm: lrwxrwxrwx 1 root root 13 Jul 9 06:05 /var/mqm -> /mnt/mqm/data 2021-12-06T19:12:21.132Z DEBUG: /var/mqm/errors: ls: cannot access '/var/mqm/errors': No such file or directory 2021-12-06T19:12:21.135Z DEBUG: /etc/mqm: total 44 -rw-r----- 1 1001 root 2392 Dec 6 19:12 10-dev.mqsc -rw-r--r-- 1 1001 root 2401 Jul 9 05:58 10-dev.mqsc.tpl -rw-r--r-- 1 1001 root 745 Jul 9 05:58 15-tls.mqsc.tpl -rw-rw-rw- 1 root root 133 Dec 6 18:26 20-config.mqsc -rw-r--r-- 1 1001 root 803 Jul 9 05:58 20-dev-tls.mqsc.tpl -rw-r--r-- 1 1001 root 3842 Jul 9 05:58 admin.json.tpl -rw-rw---- 1 1001 root 132 Dec 6 19:12 mq.htpasswd -rw-r--r-- 1 1001 root 591 Jul 9 05:58 native-ha.ini.tpl drwxr-sr-x 1 root root 4096 Dec 6 18:27 pki -rw-r--r-- 1 1001 root 268 Jul 9 05:58 qm-service-component.ini drwxrwsr-x 1 1001 root 4096 Jul 9 06:08 web 2021-12-06T19:12:21.135Z DEBUG: ffstsummary: 2021-12-06T19:12:21.135Z DEBUG: --- End Diagnostics --- 2021-12-06T19:12:21.144Z Created directory structure under /var/mqm 2021-12-06T19:12:21.144Z DEBUG: --- Start Diagnostics --- 2021-12-06T19:12:21.147Z DEBUG: /mnt/: total 16 drwxrwsr-x 1 1001 root 4096 Jul 9 06:05 mqm drwxrwsr-x 3 1001 root 4096 Jul 9 06:05 mqm-data drwxrwsr-x 3 1001 root 4096 Jul 9 06:05 mqm-log 2021-12-06T19:12:21.150Z DEBUG: /mnt/mqm: total 4 drwxrwsr-x 1 1001 root 4096 Dec 6 19:12 data 2021-12-06T19:12:21.153Z DEBUG: /mnt/mqm/data: total 52 drwxrwsr-x 2 1001 root 4096 Dec 6 19:12 config drwxrwsr-x 3 1001 root 4096 Dec 6 19:12 conv drwxrwsrwx 2 1001 root 4096 Dec 6 19:12 errors drwxrwsr-x 3 1001 root 4096 Dec 6 19:12 exits drwxrwsr-x 3 1001 root 4096 Dec 6 19:12 exits64 drwxrwsr-x 2 1001 root 4096 Dec 6 19:12 log -rw-rw-r-- 1 1001 root 671 Dec 6 19:12 mqclient.ini drwxrwsr-x 5 1001 root 4096 Dec 6 19:12 mqft drwxrwsr-x 3 1001 root 4096 Dec 6 19:12 qmgrs -rw-rw-r-- 1 1001 root 1941 Dec 6 19:12 service.env drwxrwsr-x 3 1001 root 4096 Dec 6 19:12 sockets drwxrwsrwx 2 1001 root 4096 Dec 6 19:12 trace drwxrwsr-x 3 1001 root 4096 Dec 6 19:12 web 2021-12-06T19:12:21.156Z DEBUG: /mnt/mqm-log/log: total 0 2021-12-06T19:12:21.161Z DEBUG: /mnt/mqm-data/qmgrs: total 0 2021-12-06T19:12:21.163Z DEBUG: /var/mqm: lrwxrwxrwx 1 root root 13 Jul 9 06:05 /var/mqm -> /mnt/mqm/data 2021-12-06T19:12:21.171Z DEBUG: /var/mqm/errors: total 0 -rw-rw-r-- 1 1001 root 0 Dec 6 19:12 AMQERR01.LOG -rw-rw-r-- 1 1001 root 0 Dec 6 19:12 AMQERR02.LOG -rw-rw-r-- 1 1001 root 0 Dec 6 19:12 AMQERR03.LOG 2021-12-06T19:12:21.175Z DEBUG: /etc/mqm: total 44 -rw-r----- 1 1001 root 2392 Dec 6 19:12 10-dev.mqsc -rw-r--r-- 1 1001 root 2401 Jul 9 05:58 10-dev.mqsc.tpl -rw-r--r-- 1 1001 root 745 Jul 9 05:58 15-tls.mqsc.tpl -rw-rw-rw- 1 root root 133 Dec 6 18:26 20-config.mqsc -rw-r--r-- 1 1001 root 803 Jul 9 05:58 20-dev-tls.mqsc.tpl -rw-r--r-- 1 1001 root 3842 Jul 9 05:58 admin.json.tpl -rw-rw---- 1 1001 root 132 Dec 6 19:12 mq.htpasswd -rw-r--r-- 1 1001 root 591 Jul 9 05:58 native-ha.ini.tpl drwxr-sr-x 1 root root 4096 Dec 6 18:27 pki -rw-r--r-- 1 1001 root 268 Jul 9 05:58 qm-service-component.ini drwxrwsr-x 1 1001 root 4096 Jul 9 06:08 web 2021-12-06T19:12:21.183Z DEBUG: ffstsummary: 2021-12-06T19:12:21.183Z DEBUG: --- End Diagnostics --- 2021-12-06T19:12:21.183Z Image created: 2021-07-09T06:03:07+00:00 2021-12-06T19:12:21.183Z Image tag: ibm-mqadvanced-server-dev:9.2.3.0-r1.20210709055735.f5fdd10-amd64 2021-12-06T19:12:21.208Z MQ version: 9.2.3.0 2021-12-06T19:12:21.208Z MQ level: p923-L210708.DE 2021-12-06T19:12:21.208Z MQ license: Developer 2021-12-06T19:12:21.931Z Creating queue manager QM1 2021-12-06T19:12:21.931Z Starting web server 2021-12-06T19:12:24.775Z Error 71 creating queue manager: IBM MQ queue manager 'QM1' created. Directory '/mnt/mqm/data/qmgrs/QM1' created. The queue manager is associated with installation 'Installation1'. AMQ6109S: An internal IBM MQ error has occurred. 2021-12-06T19:12:24.775Z DEBUG: Writing termination message: /opt/mqm/bin/crtmqm: exit status 71 2021-12-06T19:12:24.776Z /opt/mqm/bin/crtmqm: exit status 71 2021-12-06T19:12:24.776Z DEBUG: --- Start Diagnostics --- 2021-12-06T19:12:24.780Z DEBUG: /mnt/: total 16 drwxrwsr-x 1 1001 root 4096 Jul 9 06:05 mqm drwxrwsr-x 3 1001 root 4096 Jul 9 06:05 mqm-data drwxrwsr-x 3 1001 root 4096 Jul 9 06:05 mqm-log 2021-12-06T19:12:24.783Z DEBUG: /mnt/mqm: total 4 drwxrwsr-x 1 1001 root 4096 Dec 6 19:12 data 2021-12-06T19:12:24.787Z DEBUG: /mnt/mqm/data: total 56 drwxrwsr-x 2 1001 root 4096 Dec 6 19:12 config drwxrwsr-x 3 1001 root 4096 Dec 6 19:12 conv drwxrwsrwx 2 1001 root 4096 Dec 6 19:12 errors drwxrwsr-x 3 1001 root 4096 Dec 6 19:12 exits drwxrwsr-x 3 1001 root 4096 Dec 6 19:12 exits64 drwxrwsr-x 3 1001 root 4096 Dec 6 19:12 log -rw-rw-r-- 1 1001 root 671 Dec 6 19:12 mqclient.ini drwxrwsr-x 5 1001 root 4096 Dec 6 19:12 mqft -rw-rw-r-- 1 1001 root 1422 Dec 6 19:12 mqs.ini drwxrwsr-x 4 1001 root 4096 Dec 6 19:12 qmgrs -rw-rw-r-- 1 1001 root 1941 Dec 6 19:12 service.env drwxrwsr-x 4 1001 root 4096 Dec 6 19:12 sockets drwxrwsrwx 2 1001 root 4096 Dec 6 19:12 trace drwxrwsr-x 3 1001 root 4096 Dec 6 19:12 web 2021-12-06T19:12:24.791Z DEBUG: /mnt/mqm-log/log: total 0 2021-12-06T19:12:24.794Z DEBUG: /mnt/mqm-data/qmgrs: total 0 2021-12-06T19:12:24.797Z DEBUG: /var/mqm: lrwxrwxrwx 1 root root 13 Jul 9 06:05 /var/mqm -> /mnt/mqm/data 2021-12-06T19:12:24.801Z DEBUG: /var/mqm/errors: total 272 -rw-rw---- 1 1001 root 265666 Dec 6 19:12 AMQ192.0.FDC -rw-rw-r-- 1 1001 root 6037 Dec 6 19:12 AMQERR01.LOG -rw-rw-r-- 1 1001 root 3773 Dec 6 19:12 AMQERR01.json -rw-rw-r-- 1 1001 root 0 Dec 6 19:12 AMQERR02.LOG -rw-rw-r-- 1 1001 root 0 Dec 6 19:12 AMQERR02.json -rw-rw-r-- 1 1001 root 0 Dec 6 19:12 AMQERR03.LOG -rw-rw-r-- 1 1001 root 0 Dec 6 19:12 AMQERR03.json 2021-12-06T19:12:24.869Z DEBUG: /etc/mqm: total 56 -rw-r----- 1 1001 root 2392 Dec 6 19:12 10-dev.mqsc -rw-r--r-- 1 1001 root 2401 Jul 9 05:58 10-dev.mqsc.tpl -rw-r----- 1 1001 root 737 Dec 6 19:12 15-tls.mqsc -rw-r--r-- 1 1001 root 745 Jul 9 05:58 15-tls.mqsc.tpl -rw-rw-rw- 1 root root 133 Dec 6 18:26 20-config.mqsc -rw-r----- 1 1001 root 803 Dec 6 19:12 20-dev-tls.mqsc -rw-r--r-- 1 1001 root 803 Jul 9 05:58 20-dev-tls.mqsc.tpl -rw-r--r-- 1 1001 root 3842 Jul 9 05:58 admin.json.tpl -rw-rw---- 1 1001 root 132 Dec 6 19:12 mq.htpasswd -rw-r--r-- 1 1001 root 591 Jul 9 05:58 native-ha.ini.tpl drwxr-sr-x 1 root root 4096 Dec 6 18:27 pki -rw-r--r-- 1 1001 root 268 Jul 9 05:58 qm-service-component.ini drwxrwsr-x 1 1001 root 4096 Jul 9 06:08 web 2021-12-06T19:12:24.889Z DEBUG: ffstsummary: AMQ192.0.FDC 2021/12/06 19:12:24.483072 Installation1 amqzxma0 192 1 XY504000 xcsSetSocketAddress STOP OK AMQ192.0.FDC 2021/12/06 19:12:24.594911 Installation1 amqzxma0 192 1 XY504000 xcsSetSocketAddress STOP OK 2021-12-06T19:12:24.889Z DEBUG: --- End Diagnostics --- 

EOM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions