Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-242

the deployment content is deleted if first undeploy and then deploy the same application using CLI batch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.0.0.Alpha14
    • None
    • CLI, Management
    • None
    • Hide
      • 1. Take a fresh WildFly 9 and start the domain mode.
      • 2. Deploy any simple application to it as following:
        deploy /PATH/TO/example.war --name=example.war --server-groups=main-server-group
        
      • 3. Check the application is working and accessible and the contetns are present inside the "domain/servers/server-one/data/content" and "domain/servers/server-two/data/content"
      • 4. Now run the following command sequence in batch mode using CLI.
        batch
        undeploy example.war --server-groups=main-server-group
        deploy /PATH/TO/example.war --name=example.war --server-groups=main-server-group
        run-batch
        
      • 5. Check the domain.xml file that it has the deployment entry properly inside it. However the Content of this WAR is missing from the server's content directory which "domain/servers/server-one/data/content" and "domain/servers/server-two/data/content", So when attempt to restart the domain next time it leads to the following error:
      [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.
      
      Show
      1. Take a fresh WildFly 9 and start the domain mode. 2. Deploy any simple application to it as following: deploy /PATH/TO/example.war --name=example.war --server-groups=main-server-group 3. Check the application is working and accessible and the contetns are present inside the "domain/servers/server-one/data/content" and "domain/servers/server-two/data/content" 4. Now run the following command sequence in batch mode using CLI. batch undeploy example.war --server-groups=main-server-group deploy /PATH/TO/example.war --name=example.war --server-groups=main-server-group run-batch 5. Check the domain.xml file that it has the deployment entry properly inside it. However the Content of this WAR is missing from the server's content directory which "domain/servers/server-one/data/content" and "domain/servers/server-two/data/content", So when attempt to restart the domain next time it leads to the following error: [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.
      • Do not run the deploy and undeploy CLI commands together inside the same CLI batch run.

      • 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:
      [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.
      

              ehugonne1@redhat.com Emmanuel Hugonnet
              jaysensharma Jay SenSharma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: