Seeing "Internal Error" when trying to applying a patch to JBoss EAP through the Management Console in an RPM installation.

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x

Issue

  • I'm not able to apply patch from JBoss console as I'm getting the below error while clicking the patching tab: Failed to create security context, and getting the below error while trying to do it from jboss cli:
[disconnected /] patch apply /var/opt/rh/eap7/log/wildfly/standalone/jboss-eap-7.1.6-patch.zip
Unexpected command 'patch apply /var/opt/rh/eap7/log/wildfly/standalone/jboss-eap-7.1.6-patch.zip'. Type 'help --commands' for the list of supported commands.
[disconnected /]
  • The issue we see is when "Patching" is selected we get the following error message: Failed to create security context.
Unexpected HTTP response: 500

Request
{
    "operation" => "composite",
    "address" => [],
    "steps" => [
        {
            "address" => undefined,
            "operation" => "read-resource-description",
            "operations" => true,
            "access-control" => "combined-descriptions",
            "locale" => "en",
            "include-aliases" => true
        },
        {
            "address" => [("core-service" => "patching")],
            "operation" => "read-resource-description",
            "operations" => true,
            "access-control" => "combined-descriptions",
            "locale" => "en",
            "include-aliases" => true
        }
    ]
}

Response

Internal Server Error
{
    "outcome" => "failed",
    "result" => {
        "step-1" => undefined,
        "step-2" => undefined
    },
    "failure-description" => "WFLYCTL0030: No resource definition is registered for address [(\"core-service\" => \"patching\")]",
    "rolled-back" => true
}
  • Patching behavior with RPM is confusing. When using domain mode and clicking on "Patching" tab, it pops an "Internal error" box with the following details:
------------------------------------
Unable to load required resources for column 'patching-domain': {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "WFLYCTL0030: No resource definition is registered for address [
    (\"host\" => \"*\"),
    (\"core-service\" => \"patching\")
]"}}
------------------------------------

Also, when I attempt to apply a patch I get this error:

[domain@hostname:9999 /] patch apply /var/tmp/jboss-eap-7.2.1-patch.zip
Unexpected command 'patch apply /var/tmp/jboss-eap-7.2.1-patch.zip'. Type 'help --commands' for the list of supported commands.
  • We get this error when trying to look at patch management. I am trying from the GUI to look at Patch management. RPM installation and I did see that we might have to update over Satellite. However, we are wanting to control the process via the console. Is this possible with RPM installed Jboss?
  • Unable to load required resources for column 'patching-domain': "WFLYCTL0063: Composite operation was rolled back". Every time "Patching" web-console tab is clicked, we get "Internal Error" in an rpm installation with a configured domain (1 domain controller, 2 hosts).

Resolution

To patch an RPM installation of JBoss EAP users should update through the normal RHEL yum update command-line. The patch management system in JBoss EAP should be used only for zip installations.

For more detailed information, please refers to Patching and Upgrading Guide

Root Cause

That is a bug already addressed in Content from issues.jboss.org is not included.JBEAP-17484 and the EAP Management Console should avoid Patching tab in an RPM installation.

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.