[jboss-jira] [JBoss JIRA] (WFCORE-993) Reload command on embed-host-controller fails
Petr Kremensky (JIRA)
issues at jboss.org
Tue Sep 22 01:56:00 EDT 2015
[ https://issues.jboss.org/browse/WFCORE-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13111085#comment-13111085 ]
Petr Kremensky edited comment on WFCORE-993 at 9/22/15 1:55 AM:
----------------------------------------------------------------
Mix of reload commands in cli script could lead into a crash of CLI process.
{noformat}
$ cat test.cli
embed-server --std-out=echo
reload --admin-only=false
reload --admin-only=true
...
{noformat}
{noformat}
$ ./jboss-cli.sh --file=test.cli
...
07:48:01,871 INFO [org.jboss.as] (MSC service thread 1-5) WFLYSRV0049: WildFly Full 10.0.0.CR1 (WildFly Core 2.0.0.CR1) starting
07:48:01,920 ERROR [org.jboss.as.controller] (main) WFLYCTL0369: Required capabilities are not available:
org.wildfly.network.socket-binding.management-http; Possible registration points for this capability:
/core-service=management/management-interface=http-interface
07:48:01,921 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 6) WFLYCTL0028: Attribute 'enabled' in the resource at address '/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.
07:48:01,933 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=remoting/configuration=endpoint' are not available:
org.wildfly.io.worker.default; There are no known registration points which can provide this capability.
07:48:01,936 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=undertow/server=default-server/http-listener=default' are not available:
org.wildfly.network.socket-binding.http; There are no known registration points which can provide this capability.
org.wildfly.io.buffer-pool.default; There are no known registration points which can provide this capability.
org.wildfly.io.worker.default; There are no known registration points which can provide this capability.
07:48:01,940 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
07:48:01,945 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: WildFly Full 10.0.0.CR1 (WildFly Core 2.0.0.CR1) stopped in 1ms
07:48:07,904 ERROR [org.jboss.as.protocol] (main) WFLYPRT0003: Failed to close resource org.jboss.as.cli.embedded.ThreadContextsModelControllerClient at 707194ba: java.lang.IllegalStateException: WFLYEMB0023: The embedded server is stopping and invocations on the ModelControllerClient are not available
at org.wildfly.core.embedded.EmbeddedStandAloneServerFactory$StandaloneServerImpl.getActiveModelControllerClient(EmbeddedStandAloneServerFactory.java:393)
at org.wildfly.core.embedded.EmbeddedStandAloneServerFactory$StandaloneServerImpl.access$100(EmbeddedStandAloneServerFactory.java:210)
at org.wildfly.core.embedded.EmbeddedStandAloneServerFactory$StandaloneServerImpl$2.getDelegate(EmbeddedStandAloneServerFactory.java:245)
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.handlers.ReloadHandler.ensureServerRebootComplete(ReloadHandler.java:222)
at org.jboss.as.cli.handlers.ReloadHandler.doHandleEmbedded(ReloadHandler.java:182)
at org.jboss.as.cli.handlers.ReloadHandler.doHandle(ReloadHandler.java:142)
at org.jboss.as.cli.handlers.CommandHandlerWithHelp.handle(CommandHandlerWithHelp.java:88)
at org.jboss.as.cli.impl.CommandContextImpl.handle(CommandContextImpl.java:763)
at org.jboss.as.cli.impl.CommandContextImpl.handleSafe(CommandContextImpl.java:786)
at org.jboss.as.cli.impl.CliLauncher.processFile(CliLauncher.java:333)
at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:261)
at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.jboss.modules.Module.run(Module.java:308)
at org.jboss.modules.Main.main(Main.java:487)
Failed to establish connection in 6056ms
{noformat}
Running the same script (without the first line) against a standalone server started in a normal manner (non-embedded) works fine (no error logs).
was (Author: pkremens):
Mix of reload operations in cli script could lead into a crash of CLI process.
{noformat}
$ cat test.cli
embed-server --std-out=echo
reload --admin-only=false
reload --admin-only=true
...
{noformat}
{noformat}
$ ./jboss-cli.sh --file=test.cli
...
07:48:01,871 INFO [org.jboss.as] (MSC service thread 1-5) WFLYSRV0049: WildFly Full 10.0.0.CR1 (WildFly Core 2.0.0.CR1) starting
07:48:01,920 ERROR [org.jboss.as.controller] (main) WFLYCTL0369: Required capabilities are not available:
org.wildfly.network.socket-binding.management-http; Possible registration points for this capability:
/core-service=management/management-interface=http-interface
07:48:01,921 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 6) WFLYCTL0028: Attribute 'enabled' in the resource at address '/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.
07:48:01,933 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=remoting/configuration=endpoint' are not available:
org.wildfly.io.worker.default; There are no known registration points which can provide this capability.
07:48:01,936 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=undertow/server=default-server/http-listener=default' are not available:
org.wildfly.network.socket-binding.http; There are no known registration points which can provide this capability.
org.wildfly.io.buffer-pool.default; There are no known registration points which can provide this capability.
org.wildfly.io.worker.default; There are no known registration points which can provide this capability.
07:48:01,940 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
07:48:01,945 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: WildFly Full 10.0.0.CR1 (WildFly Core 2.0.0.CR1) stopped in 1ms
07:48:07,904 ERROR [org.jboss.as.protocol] (main) WFLYPRT0003: Failed to close resource org.jboss.as.cli.embedded.ThreadContextsModelControllerClient at 707194ba: java.lang.IllegalStateException: WFLYEMB0023: The embedded server is stopping and invocations on the ModelControllerClient are not available
at org.wildfly.core.embedded.EmbeddedStandAloneServerFactory$StandaloneServerImpl.getActiveModelControllerClient(EmbeddedStandAloneServerFactory.java:393)
at org.wildfly.core.embedded.EmbeddedStandAloneServerFactory$StandaloneServerImpl.access$100(EmbeddedStandAloneServerFactory.java:210)
at org.wildfly.core.embedded.EmbeddedStandAloneServerFactory$StandaloneServerImpl$2.getDelegate(EmbeddedStandAloneServerFactory.java:245)
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.handlers.ReloadHandler.ensureServerRebootComplete(ReloadHandler.java:222)
at org.jboss.as.cli.handlers.ReloadHandler.doHandleEmbedded(ReloadHandler.java:182)
at org.jboss.as.cli.handlers.ReloadHandler.doHandle(ReloadHandler.java:142)
at org.jboss.as.cli.handlers.CommandHandlerWithHelp.handle(CommandHandlerWithHelp.java:88)
at org.jboss.as.cli.impl.CommandContextImpl.handle(CommandContextImpl.java:763)
at org.jboss.as.cli.impl.CommandContextImpl.handleSafe(CommandContextImpl.java:786)
at org.jboss.as.cli.impl.CliLauncher.processFile(CliLauncher.java:333)
at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:261)
at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.jboss.modules.Module.run(Module.java:308)
at org.jboss.modules.Main.main(Main.java:487)
Failed to establish connection in 6056ms
{noformat}
Running the same script (without the first line) against a standalone server started in a normal manner (non-embedded) works fine (no error logs).
> 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