How to run oc debug for AMQ 7 broker pod?

Solution Verified - Updated -

Issue

In AMQ 7, we would like to run the command line tool "artemis pref-journal"

If we try to run the command on the current pod (oc rsh "pod"), we get
"Error: There is another process using the server at /home/jboss/amq-broker/lock. Cannot start the process!"

If we try to run the command on debug pod (oc debug "pod"), the broker instance and config are not in /home/home/amq-broker.

Environment

Red Hat AMQ 7.x
Openshift 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content