[jboss-jira] [JBoss JIRA] (WFCORE-993) Reload command on embed-host-controller fails
Ken Wills (JIRA)
issues at jboss.org
Tue Sep 22 16:17:00 EDT 2015
[ https://issues.jboss.org/browse/WFCORE-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13111482#comment-13111482 ]
Ken Wills commented on WFCORE-993:
----------------------------------
This appears to work for me with:
Embedded HC:
$ ./build/target/wildfly-core-2.0.0.CR4-SNAPSHOT/bin/jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] embed-host-controller --std-out=echo
15:12:21,532 INFO [org.jboss.modules] (AeshProcess: 1) JBoss Modules version 1.4.4.Final
15:12:21,690 INFO [org.jboss.msc] (AeshProcess: 1) JBoss MSC version 1.2.6.Final
15:12:21,717 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" starting
15:12:22,252 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" (Host Controller) started in 704ms - Started 25 of 27 services (8 services are lazy, passive or on-demand)
[domain at embedded /] reload --host=master
15:12:27,248 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0050: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" stopped in 4ms
15:12:27,248 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" starting
15:12:27,318 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" (Host Controller) started in 69ms - Started 25 of 27 services (8 services are lazy, passive or on-demand)
[domain at embedded /]
Standalone:
$ ./build/target/wildfly-core-2.0.0.CR4-SNAPSHOT/bin/jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] embed-server --std-out=echo
15:13:45,685 INFO [org.jboss.modules] (AeshProcess: 1) JBoss Modules version 1.4.4.Final
15:13:45,734 INFO [org.jboss.msc] (AeshProcess: 1) JBoss MSC version 1.2.6.Final
15:13:45,787 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" starting
15:13:46,229 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" started in 538ms - Started 35 of 42 services (13 services are lazy, passive or on-demand)
[standalone at embedded /] reload --admin-only=true
15:13:55,552 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" stopped in 9ms
15:13:55,554 INFO [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" starting
15:13:55,598 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" started in 42ms - Started 35 of 42 services (13 services are lazy, passive or on-demand)
[standalone at embedded /] reload --admin-only=true
15:13:59,883 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0050: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" stopped in 3ms
15:13:59,887 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" starting
15:13:59,939 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" started in 49ms - Started 35 of 42 services (13 services are lazy, passive or on-demand)
[standalone at embedded /]
test.cli:
$ cat test.cli
embed-server --std-out=echo
reload --admin-only=false
reload --admin-only=true
$ ./build/target/wildfly-core-2.0.0.CR4-SNAPSHOT/bin/jboss-cli.sh --file=test.cli
15:15:40,753 INFO [org.jboss.modules] (main) JBoss Modules version 1.4.4.Final
15:15:40,833 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
15:15:40,883 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" starting
15:15:41,312 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" started in 553ms - Started 35 of 42 services (13 services are lazy, passive or on-demand)
15:15:41,391 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0050: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" stopped in 5ms
15:15:41,393 INFO [org.jboss.as] (MSC service thread 1-4) WFLYSRV0049: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" starting
15:15:41,426 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
15:15:41,440 INFO [org.xnio] (MSC service thread 1-5) XNIO version 3.3.2.Final
15:15:41,452 INFO [org.xnio.nio] (MSC service thread 1-5) XNIO NIO Implementation Version 3.3.2.Final
15:15:41,475 INFO [org.jboss.remoting] (MSC service thread 1-5) JBoss Remoting version 4.0.10.Final
15:15:41,495 WARN [org.jboss.as.domain.http.api.undertow] (MSC service thread 1-1) WFLYDMHTTP0003: Unable to load console module for slot main, disabling console
15:15:41,555 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
15:15:41,557 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
15:15:41,559 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" started in 157ms - Started 55 of 57 services (15 services are lazy, passive or on-demand)
15:15:41,594 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" stopped in 2ms
15:15:41,596 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" starting
15:15:41,650 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" started in 52ms - Started 35 of 42 services (13 services are lazy, passive or on-demand)
15:15:41,695 INFO [org.jboss.as] (MSC service thread 1-8) WFLYSRV0050: WildFly Core 2.0.0.CR4-SNAPSHOT "Kenny" stopped in 1ms
> Reload command on embed-host-controller fails
> ---------------------------------------------
>
> Key: WFCORE-993
> URL: https://issues.jboss.org/browse/WFCORE-993
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.0.0.CR1
> Reporter: Petr Kremensky
> Assignee: Ken Wills
> Priority: Critical
>
> Reload operation on embed-host-controller gives me an error.
> {noformat}
> [disconnected /] embed-host-controller
> [domain at embedded /] reload --host=master
> 13:25:30,019 INFO [org.jboss.as] (MSC service thread 1-1) WFLYSRV0050: EAP 7.0.0.Alpha1 (WildFly Core 2.0.0.CR1) stopped in 6ms
> 13:25:30,020 INFO [org.jboss.as] (MSC service thread 1-4) WFLYSRV0049: EAP 7.0.0.Alpha1 (WildFly Core 2.0.0.CR1) starting
> 13:25:30,115 ERROR [org.jboss.as.controller] (AeshProcess: 2) WFLYCTL0369: Required capabilities are not available:
> org.wildfly.domain.server-group.main-server-group in context 'server-config'; There are no known registration points which can provide this capability.
> org.wildfly.domain.server-group.main-server-group in context 'server-config'; There are no known registration points which can provide this capability.
> org.wildfly.domain.server-group.other-server-group in context 'server-config'; There are no known registration points which can provide this capability.
> 13:25:30,138 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=default/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
> 13:25:30,150 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=ha/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
> 13:25:30,166 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=full/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
> 13:25:30,167 ERROR [org.jboss.as.controller] (AeshProcess: 2) WFLYCTL0369: Required capabilities are not available:
> org.wildfly.domain.server-group.main-server-group in context 'server-config'; There are no known registration points which can provide this capability.
> org.wildfly.domain.server-group.main-server-group in context 'server-config'; There are no known registration points which can provide this capability.
> org.wildfly.network.socket-binding.jgroups-mping in context 'profile=ha'; There are no known registration points which can provide this capability.
> org.wildfly.network.socket-binding.jgroups-udp-fd in context 'profile=ha'; There are no known registration points which can provide this capability.
> org.wildfly.network.socket-binding.http in context 'profile=ha'; There are no known registration points which can provide this capability.
> org.wildfly.network.socket-binding.jgroups-tcp in context 'profile=ha'; There are no known registration points which can provide this capability.
> org.wildfly.network.socket-binding.jgroups-tcp-fd in context 'profile=ha'; There are no known registration points which can provide this capability.
> org.wildfly.network.socket-binding.http in context 'profile=default'; There are no known registration points which can provide this capability.
> org.wildfly.network.socket-binding.ajp in context 'profile=ha'; There are no known registration points which can provide this capability.
> org.wildfly.network.socket-binding.jgroups-udp in context 'profile=ha'; There are no known registration points which can provide this capability.
> org.wildfly.domain.server-group.other-server-group in context 'server-config'; There are no known registration points which can provide this capability.
> 13:25:30,178 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=full-ha/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
> 13:25:30,196 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/server-group=main-server-group' are not available:
> org.wildfly.domain.profile.full in context 'server-groups'; There are no known registration points which can provide this capability.
> 13:25:30,198 FATAL [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0034: Host Controller boot has failed in an unrecoverable manner; exiting. See previous messages for details.
> 13:25:30,204 ERROR [org.jboss.as.protocol] (Thread-2) WFLYPRT0003: Failed to close resource org.jboss.as.cli.embedded.ThreadContextsModelControllerClient at 713124ae: java.lang.IllegalStateException: WFLYEMB0023: The embedded server is stopping and invocations on the ModelControllerClient are not available
> at org.wildfly.core.embedded.EmbeddedHostControllerFactory$HostControllerImpl.getActiveModelControllerClient(EmbeddedHostControllerFactory.java:331)
> at org.wildfly.core.embedded.EmbeddedHostControllerFactory$HostControllerImpl.access$200(EmbeddedHostControllerFactory.java:225)
> at org.wildfly.core.embedded.EmbeddedHostControllerFactory$HostControllerImpl$3.getDelegate(EmbeddedHostControllerFactory.java:309)
> at org.jboss.as.controller.client.helpers.DelegatingModelControllerClient.close(DelegatingModelControllerClient.java:103)
> at org.jboss.as.cli.embedded.ThreadContextsModelControllerClient.close(ThreadContextsModelControllerClient.java:139)
> at org.jboss.as.protocol.StreamUtils.safeClose(StreamUtils.java:66)
> at org.jboss.as.cli.impl.CommandContextImpl.disconnectController(CommandContextImpl.java:1181)
> at org.jboss.as.cli.impl.CommandContextImpl.terminateSession(CommandContextImpl.java:812)
> at org.jboss.as.cli.impl.CommandContextImpl$1.shutdown(CommandContextImpl.java:370)
> at org.jboss.as.cli.impl.CliShutdownHook$1.run(CliShutdownHook.java:50)
> at java.lang.Thread.run(Thread.java:745)
> 13:25:30,215 INFO [org.jboss.as] (MSC service thread 1-1) WFLYSRV0050: EAP 7.0.0.Alpha1 (WildFly Core 2.0.0.CR1) stopped in 11ms
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list