glassfish
  1. glassfish
  2. GLASSFISH-20992

Clustered deployment sometimes fails with error "Command disable failed on server instance xxx: remote failure: Application not registered Command deploy failed."

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: deployment
    • Labels:
      None
    • Environment:

      Linux, JDK 1.7.0_45

      Description

      Sometimes when redeploying an application, the deploy fails with the following error:

      Failure: Command disable failed on server instance xxxxxx: remote failure: Application not registered Command deploy failed.

      Repeated attempts always fail. After the error appears once it seems like nothing can be deployed.

      Sometimes the error is:

      Error occurred during deployment: Keys cannot be duplicate. Old value of this key property, nullwill be retained. 
      

      Here is the command:

      asadmin deploy --force=true --deploymentorder 300 --target yyyyy 
      

      Sometimes by trial and error I can get the deploy to work. Here is what I've tried:

      1. Stop the domain then remove the "generated" and "osgi-cache" and re-start the domain
      2. Stop the cluster and the domain then remove the "generated" and "osgi-cache" from the domain and the nodes and re-start the domain and cluster
      3. Undeploy the problem app, then redeploy it. However, sometimes the app is listed as having been un-deployed already and this fails
      4. Undeploy everything that can be undeployed. Manually delete the applications that could not be undeployed via asadmin from the applications folder and manually edit the domain.xml to remove references to those apps.

        Activity

        electricsam created issue -

          People

          • Assignee:
            Hong Zhang
            Reporter:
            electricsam
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: