Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-11962

Unable to start wildfly in domain mode when metrics and health extensions are enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 16.0.0.Final
    • None
    • None
    • Hide
      cd wildfly-16.0.0.Final/bin
      embed-host-controller --domain-config=domain.xml
      
      /extension=org.wildfly.extension.microprofile.metrics-smallrye/:add(module=org.wildfly.extension.microprofile.metrics-smallrye)
      /extension=org.wildfly.extension.microprofile.health-smallrye/:add(module=org.wildfly.extension.microprofile.health-smallrye)
      
      /profile=full/subsystem=microprofile-health-smallrye/:add
      /profile=full/subsystem=microprofile-health-smallrye/:write-attribute(name=security-enabled,value=false)
      /profile=full/subsystem=microprofile-metrics-smallrye/:add
      /profile=full/subsystem=microprofile-metrics-smallrye/:write-attribute(name=security-enabled,value=false)
      /profile=full/subsystem=microprofile-metrics-smallrye/:write-attribute(name=exposed-subsystems,value=[*])
      /profile=full/subsystem=microprofile-metrics-smallrye/:write-attribute(name=prefix,value=${wildfly.metrics.prefix:wildfly})
      
      exit
      
      sh domain.sh
      
      Show
      cd wildfly-16.0.0.Final/bin embed-host-controller --domain-config=domain.xml /extension=org.wildfly.extension.microprofile.metrics-smallrye/:add(module=org.wildfly.extension.microprofile.metrics-smallrye) /extension=org.wildfly.extension.microprofile.health-smallrye/:add(module=org.wildfly.extension.microprofile.health-smallrye) /profile=full/subsystem=microprofile-health-smallrye/:add /profile=full/subsystem=microprofile-health-smallrye/:write-attribute(name=security-enabled,value=false) /profile=full/subsystem=microprofile-metrics-smallrye/:add /profile=full/subsystem=microprofile-metrics-smallrye/:write-attribute(name=security-enabled,value=false) /profile=full/subsystem=microprofile-metrics-smallrye/:write-attribute(name=exposed-subsystems,value=[*]) /profile=full/subsystem=microprofile-metrics-smallrye/:write-attribute(name=prefix,value=${wildfly.metrics.prefix:wildfly}) exit sh domain.sh

      When WF is started in domain mode as described in steps to reproduce there is following in console

      [Host Controller] 09:10:13,260 INFO  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0023: Starting server server-one
      09:10:13,396 INFO  [org.jboss.as.process.Server:server-one.status] (ProcessController-threads - 3) WFLYPC0018: Starting process 'Server:server-one'
      [Host Controller] 09:10:14,876 INFO  [org.jboss.as.host.controller] (management task-1) WFLYHC0021: Server [Server:server-one] connected using connection [Channel ID 24b9374c (inbound) of Remoting connection 408c47e7 to localhost/127.0.0.1:38776 of endpoint "master:MANAGEMENT" <a16e023>]
      [Host Controller] 09:10:14,906 INFO  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0023: Starting server server-two
      [Host Controller] 09:10:14,921 INFO  [org.jboss.as.host.controller] (server-registration-threads - 1) WFLYHC0020: Registering server server-one
      09:10:15,031 INFO  [org.jboss.as.process.Server:server-two.status] (ProcessController-threads - 3) WFLYPC0018: Starting process 'Server:server-two'
      09:10:16,854 INFO  [org.jboss.as.process.Server:server-one.status] (reaper for Server:server-one) WFLYPC0011: Process 'Server:server-one' finished with an exit status of 1
      [Host Controller] 09:10:16,896 INFO  [org.jboss.as.host.controller] (ProcessControllerConnection-thread - 2) WFLYHC0027: Unregistering server server-one
      [Host Controller] 09:10:17,172 INFO  [org.jboss.as.host.controller] (management task-1) WFLYHC0021: Server [Server:server-two] connected using connection [Channel ID 3d4db366 (inbound) of Remoting connection 382df477 to localhost/127.0.0.1:38794 of endpoint "master:MANAGEMENT" <a16e023>]
      [Host Controller] 09:10:17,207 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0062: Http management interface listening on http://127.0.0.1:9990/management and https://127.0.0.1:-1/management
      [Host Controller] 09:10:17,208 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0053: Admin console listening on http://127.0.0.1:9990 and https://127.0.0.1:-1
      [Host Controller] 09:10:17,212 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 16.0.0.Final (WildFly Core 8.0.0.Final) (Host Controller) started in 6589ms - Started 79 of 81 services (23 services are lazy, passive or on-demand)
      [Host Controller] 09:10:17,232 INFO  [org.jboss.as.host.controller] (server-registration-threads - 1) WFLYHC0020: Registering server server-two
      09:10:18,663 INFO  [org.jboss.as.process.Server:server-two.status] (reaper for Server:server-two) WFLYPC0011: Process 'Server:server-two' finished with an exit status of 1
      [Host Controller] 09:10:18,665 INFO  [org.jboss.as.host.controller] (ProcessControllerConnection-thread - 2) WFLYHC0027: Unregistering server server-two
      

      and there is following in domain/servers/server-one/log/server.log

      2019-04-09 09:04:52,385 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=microprofile-health-smallrye' are not available:
          org.wildfly.management.http.extensible; There are no known registration points which can provide this capability.
      2019-04-09 09:04:52,386 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=microprofile-metrics-smallrye' are not available:
          org.wildfly.management.http.extensible; There are no known registration points which can provide this capability.
      2019-04-09 09:04:52,389 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      2019-04-09 09:04:52,420 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0050: WildFly Full 16.0.0.Final (WildFly Core 8.0.0.Final) stopped in 18ms

              bstansbe@redhat.com Brian Stansberry
              vramik@redhat.com Vlasta Ramik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: