Cannot recover configuration after upgrade from FishEye 2.8.1 to 2.9

Zenterio AB November 14, 2012

Hi,

I have followed the instructions here (number 3), for upgrading a previous installation to a new one that uses FISHEYE_INST:

https://confluence.atlassian.com/display/FISHEYE/FishEye+Upgrade+Guide

No matter what I try, the System Info shows the wrong FISHEYE_INST, always /home/fisheye/fecru-2.9.0, which is where I installed the new version. When I start FishEye, the I am asked for my FishEye and Crucible passwords. I then have no repositories. I had about 25 configured. I have tried to remove the config.xml file inside fecru-2.9.0, but then FisheEye does not start. I thought that that might force it to use the one I copied to fecru-data, but no luck.

Below is the info I have, running on Ubuntu 64-bit, 12.04 LTS:

erlid@reposerver:/home/fisheye$

erlid@reposerver:/home/fisheye$ sudo ./fecru-2.9.0/bin/start.sh

nohup: appending output to `nohup.out'

erlid@reposerver:/home/fisheye$

erlid@reposerver:/home/fisheye$ echo $FISHEYE_INST

/home/fisheye/fecru-data/

erlid@reposerver:/home/fisheye$ ls -l $FISHEYE_INST

total 28

drwxr-xr-x 5 fisheye fisheye 4096 Nov 15 16:56 cache

-rw-r--r-- 1 fisheye fisheye 19411 Nov 15 16:38 config.xml

drwxr-xr-x 7 fisheye fisheye 4096 Nov 15 16:54 var

erlid@reposerver:/home/fisheye$

erlid@reposerver:/home/fisheye$ cat /etc/environment

FISHEYE_INST=/home/fisheye/fecru-data/

erlid@reposerver:/home/fisheye$ cat .profile

# ~/.profile: executed by the command interpreter for login shells.

# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login

# exists.

# see /usr/share/doc/bash/examples/startup-files for examples.

# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask

# for ssh logins, install and configure the libpam-umask package.

#umask 022

# if running bash

if -n $BASH_VERSION ; then

# include .bashrc if it exists

if -f $HOME/.bashrc ; then

. $HOME/.bashrc

fi

fi

# set PATH so it includes user's private bin if it exists

if -d $HOME/bin ; then

PATH=$HOME/bin:$PATH

fi

export FISHEYE_INST=/home/fisheye/fecru-data/

erlid@reposerver:/home/fisheye$ ls -l

total 25198220

drwxr-xr-x 15 fisheye fisheye 4096 Nov 15 14:14 fecru-2.8.1

-rw-r--r-- 1 root root 25777756846 Nov 15 15:52 fecru-2.8.1.tgz

drwxr-xr-x 13 fisheye fisheye 4096 Nov 15 18:03 fecru-2.9.0

drwxr-xr-x 4 fisheye fisheye 4096 Nov 15 16:56 fecru-data

erlid@reposerver:/home/fisheye$ ls -l fecru-2.9.0/

total 7828

drwxr-xr-x 2 fisheye fisheye 4096 Nov 12 10:11 bin

drwxr-xr-x 5 fisheye fisheye 4096 Nov 15 16:02 cache

-rw-r--r-- 1 root root 7955 Nov 15 18:08 config.xml

-rw-r--r-- 1 fisheye fisheye 57844 Nov 12 10:11 config.xsd

drwxr-xr-x 11 fisheye fisheye 4096 Nov 12 10:11 content

-rw-r--r-- 1 fisheye fisheye 1177 Nov 12 10:11 default-metrics-config.xml

-rw-r--r-- 1 fisheye fisheye 9769 Nov 12 10:11 example-config.xml

-rw-r--r-- 1 fisheye fisheye 11922 Nov 12 10:11 fisheyeboot.jar

-rw-r--r-- 1 fisheye fisheye 7718173 Nov 12 10:13 fisheye.jar

-rw-r--r-- 1 fisheye fisheye 85352 Nov 12 10:13 hash-registry.properties

drwxr-xr-x 8 fisheye fisheye 12288 Nov 12 10:15 lib

-rw-r--r-- 1 fisheye fisheye 510 Nov 12 10:11 log4j-client.xml

-rw-r--r-- 1 fisheye fisheye 3084 Nov 12 10:11 log4j.xml

drwxr-xr-x 2 fisheye fisheye 4096 Nov 15 16:01 managed-repos

-rw------- 1 fisheye fisheye 0 Nov 15 16:01 nohup.out

-rw-r--r-- 1 fisheye fisheye 8754 Nov 15 17:24 old.config.xml

drwxr-xr-x 2 fisheye fisheye 4096 Nov 12 10:11 plugins

drwxr-xr-x 3 fisheye fisheye 4096 Nov 12 10:11 python

-rw-r--r-- 1 fisheye fisheye 2590 Nov 12 10:11 raw-mime.types

-rw-r--r-- 1 fisheye fisheye 7993 Nov 12 10:15 README.html

drwxr-xr-x 8 fisheye fisheye 4096 Nov 12 10:11 sql

-rw-r--r-- 1 fisheye fisheye 1905 Nov 12 10:11 svn-example-config.xml

drwxr-xr-x 2 fisheye fisheye 4096 Nov 12 10:11 syntax

drwxr-xr-x 5 fisheye fisheye 4096 Nov 12 10:11 template

drwxr-xr-x 7 fisheye fisheye 4096 Nov 15 16:01 var

erlid@reposerver:/home/fisheye$

erlid@reposerver:/home/fisheye$

erlid@reposerver:/home/fisheye$ ls -l fecru-data/

total 28

drwxr-xr-x 5 fisheye fisheye 4096 Nov 15 16:56 cache

-rw-r--r-- 1 fisheye fisheye 19411 Nov 15 16:38 config.xml

drwxr-xr-x 7 fisheye fisheye 4096 Nov 15 16:54 var

erlid@reposerver:/home/fisheye

From System Info

System Info

Version

FishEye 2.9.0 20121111231108

Crucible 2.9.0 20121111231108

FISHEYE_HOME

/home/fisheye/fecru-2.9.0

FISHEYE_INST

/home/fisheye/fecru-2.9.0

Java Version

1.6.0_26

Java Vendor

Sun Microsystems Inc.

JVM Version

1.0

JVM Vendor

Sun Microsystems Inc.

2 answers

0 votes
Malik
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 7, 2012

It could be that the FISHEYE_INST is set for the user 'erlid' only. I read:

erlid@reposerver:/home/fisheye$ echo $FISHEYE_INST

/home/fisheye/fecru-data/

But Fisheye seems to have been configure for the user 'fisheye' instead. What if you login as the 'fisheye' user and try all that again ?

0 votes
Kris Brunsgaard December 5, 2012

We are also having this same issue.

Upgrade from 2.7.8 to 2.9.1 and can not get the FISHEYE_INST to work at all. Wants me to start over from scratch.


Tried putting the env. var in to /etc/environment, exporting via cmd line, checked that it is there via echo $FISHEYE_INST and it shows that it is there.

Think it is time to put this value in to a config file as the other atlassian products currently have?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events