Issue:
service fisheye restart
Warning: could not find /var/atlassian/sfs/application-data/fisheye/config.xml
Fisheye not running? Problem connecting to 127.0.0.1:8078 : Connection refused (Connection refused)
Starting Fisheye/Crucible... Output redirected to /var/atlassian/sfs/application-data/fisheye /var/log/fisheye.out
/opt/atlassian/sfs/fisheye/current/bin/fisheyectl.sh: line 58: /var/atlassian/sfs/application-data/fisheye /var/log/fisheye.out: No such file or directory
The environment variable ($FISHEYE_HOME) from init script has extra characters in it. Could not eliminate the extra characters.
Had to change the /opt/atlassian/sfs/fisheye/current/bin/fisheyectl.sh in order to resolve issue. Below is a code snip.
<pre>
if [ -z "$FISHEYE_INST" ] ; then
FISHEYE_INST=$FISHEYE_HOME
fi
# Prepare FISHEYE_OPTS from other variables (like FISHEYE_LOAD_BYTEMAN)
FISHEYE_OPTS=`$JAVACMD -cp $FISHEYE_HOME/fisheyeboot.jar com.cenqua.fisheye.boot.OptsSetter`
# Flags used by Fisheye
FISHEYE_JVM_FLAGS="-Dfisheye.library.path=$FISHEYE_LIBRARY_PATH -Dfisheye.inst=$FISHEYE_INST -Djava.awt.headless=true -Djava.endorsed.dirs=$FISHEYE_HOME/lib/endorsed"
case "$1" in
"start")
cd $FISHEYE_INST
mkdir -p $FISHEYE_INST/var/log
CMD="$JAVACMD $FISHEYE_OPTS $FISHEYE_JVM_FLAGS -jar $FISHEYE_HOME/fisheyeboot.jar $@ $FISHEYE_ARGS"
echo "Starting Fisheye/Crucible... Output redirected to $FISHEYE_INST/var/log/fisheye.out"
VALUE="$FISHEYE_INST/var/log/fisheye.out" #create value equal to string that doesn't work. -sjc20220613
VALUE=$(echo "$VALUE" | sed 's/ *//g') #remove any spaces in string
##Original command below. -sjc 2022-06-13
##nohup sh -c "exec $CMD" >> "$FISHEYE_INST/var/log/fisheye.out" 2>&1 &
nohup sh -c "exec $CMD" >> $VALUE 2>&1 & #run the same command with new clean VALUE.
;;
"run")
CMD="$JAVACMD $FISHEYE_OPTS $FISHEYE_JVM_FLAGS -jar $FISHEYE_HOME/fisheyeboot.jar $@ $FISHEYE_ARGS"
echo "Running Fisheye/Crucible..."
exec $CMD
;;
*)
# FISHEYE_OPTS may contain -Xmx, don't use it for 'stop' and other commands
CMD="$JAVACMD $FISHEYE_JVM_FLAGS -jar $FISHEYE_HOME/fisheyeboot.jar $@ $FISHEYE_ARGS"
exec $CMD
;;
esac
</pre>
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.