This article describes how to use the change-paths script in different scenarios and operating systems. This script should be utilized when errors related to process notes and/or archived processes are observed after changing Appian's <APPIAN_HOME> path or when migrating from one server to another.
<APPIAN_HOME>
Please make sure that Service Manager(s) and Engines are up and running in the environment while executing change-paths.(sh|bat). This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly.
If the issues persist after utilizing change-paths.(sh|bat), please create a support case for further investigation with Appian Support.
Note: Failures related to process notes location should not impact the execution of Process Models. The process note feature has also been deprecated since Appian 16.3.
Symptoms
The following errors are observed in tomcat-stdOut.log:
2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of '<OLD_APPIAN_HOME>/_admin/process_notes/exec/00/0/0' (Canonical: '<OLD_APPIAN_HOME>/_admin/process_notes/exec/00/0/0'); a notes location must be under '<NEW_APPIAN_HOME>/_admin/process_notes' (Canonical: '<NEW_APPIAN_HOME>/_admin/process_notes').
2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: <NEW_APPIAN_HOME>/_admin/process_notes/exec/00/0/0
Actions
<APPIAN_HOME>/_admin/_scripts/tools/
#!/bin/bash #OLD_PATH_MSG=/appian/server/msg #OLD_PATH_MWS=/appian/_admin/mini OLD_PATH_NOTES=<OLD_APPIAN_HOME>/_admin/process_notes #OLD_PATH_ARCHIVED=/appian/server/archived-process #NEW_PATH_MSG=/appian_new/server/msg/ #NEW_PATH_MWS=/appian_new/_admin/mini NEW_PATH_NOTES=<NEW_APPIAN_HOME>/_admin/process_notes #NEW_PATH_ARCHIVED=/appian_new/server/archived-process pushd .. #java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS #java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES #java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED popd
<NEW_APPIAN_HOME>/server/archived-process/
<OLD_APPIAN_HOME
>/server/archived-process/
#!/bin/bash #OLD_PATH_MSG=/appian/server/msg #OLD_PATH_MWS=/appian/_admin/mini #OLD_PATH_NOTES=/appian/_admin/process_notes OLD_PATH_ARCHIVED=<OLD_APPIAN_HOME>/server/archived-process #NEW_PATH_MSG=/appian_new/server/msg/ #NEW_PATH_MWS=/appian_new/_admin/mini #NEW_PATH_NOTES=/appian_new/_admin/process_notes NEW_PATH_ARCHIVED=<NEW_APPIAN_HOME>/server/archived-process pushd .. #java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS #java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG #java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED popd
<NEW_APPIAN_HOME>/server/archived-process
For Appian 21.2 and later, two debug flags are available to help users determine the values of OLD_PATH_NOTES and NEW_PATH_NOTES.
OLD_PATH_NOTES
NEW_PATH_NOTES
Note: Running the script with debug flags will not actually execute the change paths action.
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES <old path> <new path> NOTES_DEBUG_BRIEF
#!/bin/bash OLD_PATH_NOTES=<OLD_APPIAN_HOME>/_admin/process_notes NEW_PATH_NOTES=<NEW_APPIAN_HOME>/_admin/process_notes pushd .. java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF popd
#!/bin/bash OLD_PATH_NOTES=<OLD_APPIAN_HOME>/_admin/process_notes NEW_PATH_NOTES=<NEW_APPIAN_HOME>/_admin/process_notes pushd .. java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL popd
<APPIAN_HOME>/_admin/process_notes/exec/
/
\
set NEW_PATH_NOTES=E:/appian/_admin/process_notes
::
::set NEW_PATH_NOTES=c:/appian_new/_admin/process_notes
This article applies to all versions of Appian.
Last Reviewed: November 2023