Hello,
I have setup crucible/fisheye on AWS with EFS, but when I run the restore, the files are being restored in the default installation directory, rather than the FISHEYE_INST:
I have followed https://community.atlassian.com/t5/Fisheye-Crucible-questions/Manually-restore-Crucible-data-from-backup/qaq-p/468
My setup is AWS, EFS with an ALB
the service has been started as the fisheye user
this is my init.d script:
'/etc/init.d/fisheye':
content: |
#!/bin/bash
# RUN_AS: The user to run fisheye as. Its recommended that you create a separate user account for security reasons
RUN_AS=fisheye
# FISHEYE_HOME: The path to the FishEye installation. It's recommended to create a symbolic link to the latest version so
# the process will still work after upgrades. Be sure to update the symlink itself when upgrading.
# Example: ln -s /usr/local/atlassian/applications/fisheye/4.2.0 /usr/local/atlassian/applications/fisheye/latest
FISHEYE_HOME="/opt/fecru-4.8.1"
# FISHEYE_INST: The path to store Fisheye data.
# The 2 lines below should be uncommented only if you don't have the environment variables set in /etc/environment file.
export FISHEYE_INST="/var/lib/atlassian/application-data/fecru"
#mkdir -p $FISHEYE_INST || sudo mkdir -p $FISHEYE_INST
fisheyectl() {
if [ ! -f "$FISHEYE_HOME/fisheyeboot.jar" ] ; then
echo "Error: Could not find $FISHEYE_HOME/fisheyeboot.jar"
exit 1
fi
"$FISHEYE_HOME/bin/fisheyectl.sh" "$1"
}
case "$1" in
start)
# Remove lock file before starting program
# Removing lock file before starting is necessary to ensure
# program doesn't refuse to start because of a useless
# lock file from the past
if [ -f $FISHEYE_INST/var/fisheye.lck ] ; then
echo "Warn: Found existing lock file. Removing it and starting Fisheye"
rm $FISHEYE_INST/var/fisheye.lck
fi
fisheyectl start
;;
stop)
fisheyectl stop
;;
restart)
fisheyectl stop
sleep 10
fisheyectl start
;;
status)
fecru_pid=$(ps -eAf|grep fecru|grep -v grep|sed "s/[ \t][ \t]*/ /g"|cut -d" " -f2|head -1)
if [[ -n "${fecru_pid}" ]];
then
echo "Process 'fecru' fisheye/crucible is running. PID (${fecru_pid})"
else
echo "Process 'fecru' fisheye/crucible is NOT running."
fi
;;
*)
echo "Usage: $0 {start|stop|status|restart}"
esac
echo "- Log files are available here:"
if [[ -n "${FISHEYE_INST}" ]];
then
echo "$(find "${FISHEYE_INST}/var/log" 2>/dev/null | sed "s/^/ /")";
else
echo "$(find "${FISHEYE_HOME}/var/log" 2>/dev/null | sed "s/^/ /")"
fi
echo
exit 0
When I do a manual restore, it is restoring it in `/opt/fecru-4.8.1` and not in FISHEYE_INST as the config.xml files gets overwritten.
What is the correct way to restore the backup manually into the right place?