IBM Support What's New?

WebSphere MQ AMQ7472 and AMQ8101 Fail to delete a damaged queue

Technote (troubleshooting)


You get a WebSphere MQ error message AMQ7472 reporting queue damaged. When you try to delete the damaged queue, you get error AMQ8101 Unexpected error.


The error log of the WebSphere MQ queue manager reports an error for a damaged queue:
AMQ7472: Object QUEUE1, type queue damaged

However, when you try to run the following runmqsc command:
delete queue(QUEUE1)

You get an error:
AMQ8101: Unexpected error (2063)

If you try to create a queue with the same name, you get the error:
AMQ8150: Queue already exists


One possible reason is that the queue's authority information is now incorrect. In the above example, the error AMQ8101: Unexpected error (2063) has a return code of 2063. You can use the "mqrc" utility to find the meaning of the error code:

# mqrc 2063
2063 0x0000080f MQRC_SECURITY_ERROR

Resolving the problem

It may be possible to fix this problem by copying the information from a good queue file and replacing the information of the damaged queue file. You can perform the following recovery steps:

1. Rename the damaged queue file reported in the MQ error log to a temporary directory:
#cd /var/mqm/qmgrs/<QMGRNAME>/queues/<damaged queue name>

    # mv q q.backup

2. Replace the damaged queue file with the q file from a good queue. Note that the good queue must have the same type used by the damaged queue:

    # cp /var/mqm/qmgrs/<QMGRNAME>/queues/<good queue name>/q /var/mqm/qmgrs/<QMGRNAME>/queues/<damaged queue name>/

    # cd /var/mqm/qmgrs/<QMGRNAME>/queues/<damaged queue name>

    # chown mqm:mqm q

    # chmod 770 q

If the queue still cannot be deleted, please contact IBM Support and provide the following information:
1. Output of runmqsc command:
    dis qstatus(damaged queue name) type(handle) all
2. MQ Trace
    - Start trace:
    # strmqtrc -m QMGRNAME -t detail -t all

    - Attempt to delete the queue.

    - Stop trace:
    # endmqtrc -a

3. /var/mqm/qmgrs/<QMGRNAME>/errors/AMQERR01.LOG, AMQERR02.LOG, AMQERR03.LOG
4. /var/mqm/errors/AMQERR01.LOG, AMQERR02.LOG, AMQERR03.LOG and FDC files (if present).

Product Alias/Synonym


Document information

More support for: WebSphere MQ

Software version: 6.0, 7.0, 7.1, 7.5

Operating system(s): AIX, HP-UX, Linux, Solaris, Windows

Software edition: All Editions

Reference #: 1508447

Modified date: 2013-09-25