JON Bundle deployment is failing with "Failed to create destination, it may already exist" error

Solution Verified - Updated -

Issue

  • I get the following error when trying to install a single file via a JON bundle:

    Failed to create destination, it may already exist. (Note, for an existing destination deploy from the Destination view)
    
  • I have tried this several different ways and it fails with the same error. The file is copied to the agent on the correct servers but is never deployed due to the above error.

Environment

  • JBoss Operations Network (JON) 2.4
  • Deploy.xml:
    <?xml version="1.0"?>
    <project name="java2-security" default="main" xmlns:rhq="antlib:org.rhq.bundle">
    
        <rhq:bundle name="java2-security-uat" version="01.07" description="IDCS Java2 Security Policy File">
            
            <rhq:deployment-unit name="appserver" preinstallTarget="preinstall" postinstallTarget="postinstall">
            <rhq:file name="java2.policy" destinationFile="/hosting/apps/idcs-uat02-c02/deploy"/>
          </rhq:deployment-unit>
        </rhq:bundle>
    
        <target name="main" />
    
        <target name="preinstall">
            <echo>Deploying Java2 Security policy file to UAT /hosting/apps/idcs-uat02-c02/deploy ...</echo>
            <property name="preinstallTargetExecuted" value="true"/>
        <rhq:audit status="SUCCESS" action="Preinstall Notice" info="Preinstalling to /hosting/apps/idcs-uat02-c02/deploy"  message="Completed ...."> 
            java2.policy file deployed to UAT2 
        </rhq:audit>
        </target>
        <target name="postinstall">
            <echo>Finished deploying Java2 Security policy file to UAT /hosting/apps/idcs-uat02-c02/deploy....</echo>
            <property name="postinstallTargetExecuted" value="true"/>
        </target>
    </project>
    

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.