KB-1241 "BUILD FAILED... Target doesn't exist!" error thrown when running the cleanup script

Symptoms

The cleanup script returns the following:

./cleanup.sh data -keep 3
Buildfile: <APPIAN_HOME>/server/_scripts/ant/aemovefiles.xml

BUILD FAILED
<APPIAN_HOME>/server/_scripts/ant/aemovefiles.xml:46: Target doesn't exist!

Cause

The cleanup script is unable to find the target directory to move the files to a back up.

Action

To resolve the issue:

If the data can be moved to a backup location, pass the target parameter:

./cleanup.sh data -keep 3 -target <APPIAN_HOME>
copykdbs:
[echo] KDB Directory <APPIAN_HOME>/server/notifications/gw1
[sortedfilelist] Set property sortedkdblist with value
[aeserversubdir] Set property serversubdir with value /notifications/gw1

BUILD SUCCESSFUL
Total time: 1 second

If the data can be removed, pass the delete parameter:

./cleanup.sh data -delete -keep 3
Buildfile: <APPIAN_HOME>\server\_scripts\ant\aedeletefiles.xml

default:
Trying to override old definition of task bool
Trying to override old definition of task bool

batch:
     [echo] Source AE installation location is <APPIAN_HOME>
     [echo]
     [echo] If archiving option is selected, archived file will be tarred and appended with timestamp to 'aearchive', for example, aearchive_20060606_102030.tar

 [echo]
 deletedata:

deletekdbs:
    [echo] KDB Directory <APPIAN_HOME>\server\metadata\gw1
[sortedfilelist] Set property sortedkdblist with value dtXXX.kdb
[aeserversubdir] Set property serversubdir with value \metadata\gw1
[delete] Deleting C:\appian7.9\server\metadata\gw1\dtXXX.kdb

BUILD SUCCESSFUL
Total time: 1 second

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: March 2017

Related
Recommended