[jboss-jira] [JBoss JIRA] (WFCORE-242) the deployment content is deleted if first undeploy and then deploy the same application using CLI batch

Emmanuel Hugonnet (JIRA) issues at jboss.org
Tue Nov 18 07:17:39 EST 2014


    [ https://issues.jboss.org/browse/WFCORE-242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020529#comment-13020529 ] 

Emmanuel Hugonnet edited comment on WFCORE-242 at 11/18/14 7:17 AM:
--------------------------------------------------------------------

This has nothing to do with the CLI nor the ordering of operations on the server side, so I'm decreasing the priority.
This behaviour is incorrect but there is a simple workaround using --force in the deploy command to avoid it.

With the fix, you'll need to start the deployment after the batch :
{code}
batch
undeploy example.war --server-groups=main-server-group
deploy /PATH/TO/example.war --name=example.war --server-groups=main-server-group
/server-group=main-server-group/deployment=example.war:redeploy
run-batch

{code}



was (Author: ehugonnet):
This has nothing to do with the CLI nor the ordering of operations on the server side, so I'm decreasing the priority.
This behaviour is incorrect but there is a simple workaround using --force in the deploy command to avoid it.

With the fix, you'll need to start the deployment after the batch :
{code}
batch
undeploy example.war --server-groups=main-server-group
deploy /PATH/TO/example.war --name=example.war --server-groups=main-server-group
run-batch
/server-group=main-server-group/deployment=example.war:deploy
{code}


> the deployment content is deleted if first undeploy and then deploy the same application using CLI batch
> --------------------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-242
>                 URL: https://issues.jboss.org/browse/WFCORE-242
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI, Domain Management
>            Reporter: Jay Kumar SenSharma
>            Assignee: Emmanuel Hugonnet
>            Priority: Minor
>
> - If deploy and undeploy CLI commands executed in a batch mode then it causes missing  deployment inside the "data/content" directory which leads to the following error:
> {code}
> [Host Controller] 10:33:42,387 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "example.war")]) - failure description: "WFLYDC0058: No deployment content with hash d85f1e3106bc8a49838a0dccae9e80819c25e02c is available in the deployment content repository for deployment 'example.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 configuraiton file and restart."
> [Host Controller] 10:33:42,390 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.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jboss-jira mailing list