[jboss-jira] [JBoss JIRA] (WFCORE-1330) Deployment error after reboot [WFLYSRV0137]
Tobi Tobias (JIRA)
issues at jboss.org
Tue Jan 26 03:17:00 EST 2016
[ https://issues.jboss.org/browse/WFCORE-1330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153462#comment-13153462 ]
Tobi Tobias edited comment on WFCORE-1330 at 1/26/16 3:16 AM:
--------------------------------------------------------------
I deploy the apps and datasources using jboss api at the moment. But the problem occurs with manula deployment as well. Strange thing is, that this doesn't happen on my local machine. It is reproducable on the remote Ubuntu server only.
Code to add a datasource:
{{
ModelNode request = new ModelNode();
request.get(ClientConstants.OP).set(ClientConstants.ADD);
request.get(ClientConstants.OP_ADDR).add(ClientConstants.SUBSYSTEM, WildflyConstants.SUBSYSTEM_DATASOURCES);
request.get(ClientConstants.OP_ADDR).add(WildflyConstants.DATASOURCE, datasourceName);
request.get("jndi-name").set(WebServerUtils.jndiName(datasourceName));
request.get("connection-url").set(dbUrl);
request.get("driver-class").set(driverOpt.get().get(WildflyConstants.DRIVER_CLASS_NAME).asString());
request.get(WildflyConstants.DRIVER_NAME).set(driverOpt.get().get(WildflyConstants.DRIVER_NAME));
request.get("pool-name").set("pool_NewDatasource");
request.get("user-name").set(dbuser);
request.get("password").set("myPW");
return execute().apply(conn).apply(request);
}}
The deployment of the war looks as follows:
{{
// cli equivalent: /deployment=My_war_file.war:add(enabled=true,content=[url=file:///path/to/target/My_war_file.war])"
ModelNode request = new ModelNode();
request.get(ClientConstants.OP).set(ClientConstants.ADD);
request.get(ClientConstants.OP_ADDR).add(ClientConstants.DEPLOYMENT, deploymentName);
request.get(WildflyConstants.ENABLED).set(true);
request.get(ClientConstants.CONTENT).add(WildflyConstants.URL, file.toUri().toString());
return execute().apply(conn).apply(request);
}}
- All applications ever deployed to the server fail when restarting
- Each application depends on a datasource
The server startup log:
prod at aserver:/opt/wildfly-9.0.2.Final/bin$ ./standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/wildfly-9.0.2.Final
JAVA: /usr/lib/jvm/jre1.8.0_65/bin/java
JAVA_OPTS: -server -XX:+UseCompressedOops -server -XX:+UseCompressedOops -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
10:35:48,485 INFO [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final
10:35:50,605 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
10:35:51,234 INFO [org.jboss.as] (MSC service thread 1-8) WFLYSRV0049: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) starting
10:36:01,572 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 18) WFLYCTL0028: Attribute 'job-repository-type' in the resource at address '/subsystem=batch' 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.
10:36:01,573 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 8) 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.
10:36:01,800 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 8) WFLYCTL0028: Attribute 'enabled' in the resource at address '/subsystem=datasources/data-source=mmcontrollerdatasource' 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.
10:36:01,801 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 8) WFLYCTL0028: Attribute 'enabled' in the resource at address '/subsystem=datasources/data-source=tobidatasource' 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.
10:36:01,893 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "MM-Controller-0.1.0-SNAPSHOT.war")]) - failure description: "WFLYSRV0137: No deployment content with hash 966847a6f5f5bf8c3470f07ea9e65b7bbcdcd7b7 is available in the deployment content repository for deployment 'MM-Controller-0.1.0-SNAPSHOT.war'. This is a fatal boot error. To correct the problem, either restart with the --admin-only switch set and use the CLI to install the missing content or remove it from the configuration, or remove the deployment from the xml configuration file and restart."
10:36:01,990 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
10:36:02,071 INFO [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested.
10:36:02,256 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) stopped in 11ms
I'll try to reproduce with 10.0.0.CR5 and let you know.
Thanks for your help!
was (Author: wildflyer):
I deploy the apps using jboss-cli.sh. I copy the war file to the target machine, connect with the cli and use "deploy" command. The same with the data source.
For the datasource I use the jboss api:
{{
ModelNode request = new ModelNode();
request.get(ClientConstants.OP).set(ClientConstants.ADD);
request.get(ClientConstants.OP_ADDR).add(ClientConstants.SUBSYSTEM, WildflyConstants.SUBSYSTEM_DATASOURCES);
request.get(ClientConstants.OP_ADDR).add(WildflyConstants.DATASOURCE, datasourceName);
request.get("jndi-name").set(WebServerUtils.jndiName(datasourceName));
request.get("connection-url").set(dbUrl);
request.get("driver-class").set(driverOpt.get().get(WildflyConstants.DRIVER_CLASS_NAME).asString());
request.get(WildflyConstants.DRIVER_NAME).set(driverOpt.get().get(WildflyConstants.DRIVER_NAME));
request.get("pool-name").set("pool_NewDatasource");
request.get("user-name").set(dbuser);
request.get("password").set("myPW");
return execute().apply(conn).apply(request);
}}
The deployment of the war looks as follows:
{{
// cli equivalent: /deployment=My_war_file.war:add(enabled=true,content=[url=file:///path/to/target/My_war_file.war])"
ModelNode request = new ModelNode();
request.get(ClientConstants.OP).set(ClientConstants.ADD);
request.get(ClientConstants.OP_ADDR).add(ClientConstants.DEPLOYMENT, deploymentName);
request.get(WildflyConstants.ENABLED).set(true);
request.get(ClientConstants.CONTENT).add(WildflyConstants.URL, file.toUri().toString());
return execute().apply(conn).apply(request);
}}
- All applications ever deployed to the server fail when restarting
- Each application depends on a datasource
The server startup log:
prod at aserver:/opt/wildfly-9.0.2.Final/bin$ ./standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/wildfly-9.0.2.Final
JAVA: /usr/lib/jvm/jre1.8.0_65/bin/java
JAVA_OPTS: -server -XX:+UseCompressedOops -server -XX:+UseCompressedOops -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
10:35:48,485 INFO [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final
10:35:50,605 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
10:35:51,234 INFO [org.jboss.as] (MSC service thread 1-8) WFLYSRV0049: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) starting
10:36:01,572 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 18) WFLYCTL0028: Attribute 'job-repository-type' in the resource at address '/subsystem=batch' 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.
10:36:01,573 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 8) 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.
10:36:01,800 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 8) WFLYCTL0028: Attribute 'enabled' in the resource at address '/subsystem=datasources/data-source=mmcontrollerdatasource' 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.
10:36:01,801 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 8) WFLYCTL0028: Attribute 'enabled' in the resource at address '/subsystem=datasources/data-source=tobidatasource' 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.
10:36:01,893 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "MM-Controller-0.1.0-SNAPSHOT.war")]) - failure description: "WFLYSRV0137: No deployment content with hash 966847a6f5f5bf8c3470f07ea9e65b7bbcdcd7b7 is available in the deployment content repository for deployment 'MM-Controller-0.1.0-SNAPSHOT.war'. This is a fatal boot error. To correct the problem, either restart with the --admin-only switch set and use the CLI to install the missing content or remove it from the configuration, or remove the deployment from the xml configuration file and restart."
10:36:01,990 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
10:36:02,071 INFO [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested.
10:36:02,256 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) stopped in 11ms
I'll try to reproduce with 10.0.0.CR5 and let you know.
Thanks for your help!
> Deployment error after reboot [WFLYSRV0137]
> -------------------------------------------
>
> Key: WFCORE-1330
> URL: https://issues.jboss.org/browse/WFCORE-1330
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 1.0.2.Final
> Environment: Ubuntu 14.04 LTS 64bit, jre-1.8.0_65
> Several deployed (JavaEE) web applications including non XA datasources that connect to a MySQL instance.
> Reporter: Tobi Tobias
> Assignee: ehsavoie Hugonnet
> Priority: Critical
>
> I have a working configuration on wildfly 9.0.2 final with several web applications (JavaEE).
> After a couple of days, I deployed another war file via jboss CLI. This application worked correctly and no deployment error occurred.
> But if I restart the server now, I get following error message:
> 10:36:01,893 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "MM-Controller-0.1.0-SNAPSHOT.war")]) - failure description: "WFLYSRV0137: No deployment content with hash 966847a6f5f5bf8c3470f07ea9e65b7bbcdcd7b7 is available in the deployment content repository for deployment 'MM-Controller-0.1.0-SNAPSHOT.war'. This is a fatal boot error. To correct the problem, either restart with the --admin-only switch set and use the CLI to install the missing content or remove it from the configuration, or remove the deployment from the xml configuration file and restart."
> 10:36:01,990 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
> I reproduced this at least 30 times - even with different jars. I always get this error. The server works fine as long as I don't reboot.
> The only way to fix the configuration is to manually remove the deployments from the standalone.xml.
> But this is not an option for me as I want to have the wildfly running as production server where I have several automatic deployments every day.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list