youngmon/atlassian-qna huggingface dataset:
fisheye cold failover
Asked by Kumaran:

Has anyone implemented a cold failover instance for fisheye ? If so, are there any recommendations ?

We have a fisheye installation and a instance directory. Copying both the directories to another instance will work. But, is there a specific directory that needs to be synced between the instances ?


Answers:
author: Piotr Swiecicki
body: FishEye/Crucible internal state is kept in

* filesystem in $FISHEYE_INST folder
* configured database

In order to keep cold failover system you need to ensure both of them are copied consistently to failover location. Note copying live system is very dangerous as you risk having inconsistent data.

The recommended way of backing up a system is using built in tools, documented in <https://confluence.atlassian.com/fisheye/backing-up-and-restoring-fisheye-data-298976928.html>. If you want to customise it and take benefit of filesystem snapshot mechanisms for instance, I would suggest the following approach:

* take FishEye/Crucible instance down (e.g. run bin/stop.sh)
* copy database to failover location
* copy filesystem to failover location (e.g. with the use of rsync, FS snapshots etc.)
* take FishEye/Crucible instance up

it would require short downtime but should ensure consistency of the data.


Tags: fisheye-crucible-administration
Admin Locked out of Fisheye/Crucible
Asked by Luke Galardi:

Our administrator left, along with our login credentials. How can we add a new admin for fisheye/crucible?


Answers:
author: GabrielleJ
body: Do you have access to the server/environment where Fecru is installed? Check the doc below:

<https://confluence.atlassian.com/fisheye/how-to-reset-the-administration-page-password-in-fisheye-or-crucible-298977083.html>


Tags: fisheye-crucible-administration
Get crucuble viewer/qsearch result from restful API call
Asked by Lei Wu:

http://crucible\<instance\>.com/viewer/qsearch?q=JIRA_KEY works and result is fast, how to get same result from restful API call?


Answers:
author: Felipe Kraemer
body: Hi Lei,

Have you tried to use the [/rest-service/search-v1/reviewsForIssue](https://docs.atlassian.com/fisheye-crucible/3.6.2/wadl/crucible.html#rest-service:search-v1:reviewsForIssue) endpoint?

I hope this helps!

Kind regards,  
Felipe Kraemer

comments: author: Lei Wu
body: That is where I started from. That API better be called linkedreviewForIssue to be more exact. The plural in API was misleading as there can not be more than one result. There can be multiple issues got resolved by same code commit and one review, however.

Basically I want the data like in the "development info" section that does show multiple reviews instead of just one.

Thanks,
New Crucible install, it sees the git repos fine and individual checkins. When I click to create a review, it just spins forever. Ideas?
Asked by peter.piotrowski@avagotech.com:


Answers:
author: GabrielleJ
body: Without too much details to work on, this could mean a lot of things. Start by:

* Checking the crucible application/tomcat logs for any issues
* Browser Console Logs

comments: author: peter.piotrowski@avagotech.com
body: Hi, just want to update this request. Issue is Resolved.  
Long story short: once Crucible was installed and running, we added 5 git repos, which it slurped for quite some time. I then added users by hand (rather than LDAP). At that point the tool would hang at click of 'Create Review'. After several attempts Crucible tool completely hung and we were forced to stop/re-start it on the server.  
We enabled debugging using admin login, and disabled all git repos but one to simplify debug.  
At this point the 'Create Review' button began working at a user login. So I think we are now up and running. Nice tool...


Tags: fisheye-crucible-administration
Bulk deleting 400 repositories in Fisheye/Crucible
Asked by Jonas Andersson:

The user interface of Crucible/Fisheye is not very intuitive, so when asked to add 480+ repos to Crucible to see how Crucible and the Git repositories behind it dealt with the load back on version 3.10.1, i wrote a script that appended all repositories to the config.xml.

Since that we have upgraded to Crucible/Fisheye 4.0.2 and with that the repositories were moved away from the config.xml.

Is there a easy way bulk removing repositories either via the database or somewhere else on the filsystem, without having to spend 12 hours clicking around in the laggy interface?

Unfortuantly Bob Swift's Crucible CLI plugin is not compatible with the latest version of Crucible, and i seem to fail when attempting to do it via the Native REST api.

If someone has a snippet of bash script that can stop and remove a single repository, this could also help me.

Kind regards

Jonas


Answers:
author: Maciej Swinarski
body: Hi Jonas, repositories were always and are in config.xml - not server.xml. Please check you are looking at the correct config.xml in FISHEYE_INST.

mac


author: Maciej Swinarski
body: Hi Jonas,

Repositories are still present in config.xml (Crucible/Fisheye 4.0.2) so you still should be able to manipulate config.xml directly.

However I would recommend to use FishEye \& Crucible REST Admin API to add/delete/update repositories.

Here is the repositories admin API:

<https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories>

There is also a python FishEye \& Crucible REST client that you could use:

<https://bitbucket.org/atlassian/fecru-rest-examples/src>

Install the REST client:

```
pip install git+https://bitbucket.org/atlassian/fecru-rest-examples.git
```

then run the script which should look something like:

```
from fecru_rest.admin_repositories import *import fecru_rest.config?config.url = 'http://url/to/fecru'config.user = 'adminName'config.password = 'adminPassword'?rep_name = 'repositoryName'?stop_repository(rep_name)delete_repository(rep_name)
```

Use:

```
get_repositories(start=0, limit=400)
```

to iterate over repositories. Have a look at examples here: [https://bitbucket.org/atlassian/fecru-rest-examples/src/master/fecru_rest/examples_repositories.py?at=master\&fileviewer=file-view-default](https://bitbucket.org/atlassian/fecru-rest-examples/src/master/fecru_rest/examples_repositories.py?at=master&fileviewer=file-view-default)

mac

comments: author: Jonas Andersson
body: No, repositories added on 3.10.1 are no longer in server.xml after the upgrade to 4.0.2, so yes, i can edit my license key and some other stuff, but the 1200 lines with XML describing the repos are no longer there. Not sure who approved this as the right answer, but feel free to reproduce the scenario and you will see i am right.

Will have a look REST API again, thanks a bunch for now.


Tags: fisheye-crucible-administration
Crucible creates wrong application link for itself
Asked by Artur Badretdinov:

Hello!

I am trying to configure Crucible to work with JIRA and Confluence. First two were connected without any problems, however, I can't connect Crucible to them. The reason is that it gets strange application link by default and I can't change it (because it is default), but only add new once. However, even when I added correct link, I was unable to connect JIRA to it.

All three products (JIRA, Confluence, Crucible are up-to-date and installed to the same server). Does anyone have any idea about how to solve the issue?

image2016-3-31 13:29:46.png  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Crucible-creates-wrong-application-link-for-itself/qaq-p/215478?attachment-id=3835){#link_1163a88bc5f754}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/2879/1/image2016-3-31%2013%3A25%3A3.png){#display_1163a88bc5f754_0}  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Crucible-creates-wrong-application-link-for-itself/qaq-p/215478?attachment-id=3836){#link_1163a88bc5f754_0}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/2879/2/image2016-3-31%2013%3A29%3A46.png){#display_1163a88bc5f754_2}


Answers:
author: gustavo_refosco
body: Hi Artur,

It looks like FishEye's Site URL isn't set, so FishEye uses, by default, the hostname of the server when forming the URL. You can set the Site URL at **FishEye Administration \> Server \> Edit Settings \> Site URL**.

After adjusting it, try re-creating your Application Link and confirming the correct URL is displayed.

Regards,

Gustavo

comments: author: Artur Badretdinov
body: Thank you, you were right. Previously, I changed "HTTP Bind" but it didn't solve the problem.


Tags: application-link

fisheye-crucible-administration
Backing up Fisheye & Crucible
Asked by Asaf Porat:

I'd like to make a backup of Fisheye and Crucible data, in order to migrate to a different server . Do Crucible backups (made using \<Crucible home directory\>/bin/fisheyectl.bat) contain the Fisheye data as well, or should I also backup Fisheye data (using \<FISHEYE_HOME\>/bin/fisheyectl.bat)?

Thanks,

Asaf


Answers:
author: gustavo_refosco
body: Hi Asaf,

Since Crucible and FishEye run under the same process (they're just licensed separately) your backup will include information from both. If you are backing up using the command line, please just attend to use the --cache argument if you also wish to include the repositories caches (which is basically all the indexed information from your repositories, so you don't have to re-index after restoring your backup).

Also notice that there's an option to create a backup via UI, so you don't necessarily need to use the command line to backup (but for restoring, the only option is by using the command line).

I'd recommend you to check further about Crucible backup at <https://confluence.atlassian.com/crucible/backing-up-and-restoring-crucible-data-298977490.html> - this document contains all the necessary steps for backing up everything, and subsequently specific details for when restoring a backup.

Regards,

Gustavo


Tags: backup

fisheye-crucible-administration

migration
SVN commits not showing in Fisheye
Asked by guenhamza:

I have made two commits in my svn repository, and because of a server glitch, I'm unable to see the first commit in my Fisheye page (Nor the JIRA issue). And the changes made in the first commit appear in my second commit associated to a different committer.

When I try to manually access the change-set related to the missed commit (e.g cs=50) I get :

Sans titre.png

But cs=49 and cs=51 are available. I tried a full re-index with no luck.

[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/SVN-commits-not-showing-in-Fisheye/qaq-p/292050?attachment-id=8384){#link_1159ecc7e3a180}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/3951/1/Sans%20titre.png){#display_1159ecc7e3a180_0}


Answers:
author: Felipe Kraemer
body: Hello,

I do believe that in this case the support team needs to analyze the logs to see what exactly happened, because indexing issues can have different root causes. Can you create a support ticket and attach a support zip?

Kind regards,  
Felipe Kraemer


Tags: fisheye-crucible-administration
How do you set up 2 Perforce servers in Fisheye?
Asked by Ken Lange:

Hello.

What are the steps to configure two different Perforce servers in Fisheye to work with JIRA?

I see how to add multiple repositories, but it's not clear if and how you can add two (or more) Perforce Servers.

Thanks,  
\~Ken


Answers:
author: Piotr Swiecicki
body: There is no limit on the number of Perforce Servers single FishEye instance can work with.

As documented in <https://confluence.atlassian.com/fisheye/perforce-298976886.html>, when configuring new Perforce repository FishEye will prompt for details of this repository including details of the server where this repository is hosted.

Hope that help,

Piotr


author: Felipe Kraemer
body: Hi Ken,

As far as I see, this is more a Perforce question rather than a FishEye / Crucible question.

Have you looked at [Perforce Replication](https://www.perforce.com/perforce/doc.current/manuals/p4dist/chapter.replication.html)?

Hope this helps!

comments: author: Ken Lange
body: Hi Felipe,  

We have replication set up.  

Let me try to clarify. If you have two separate and distinct Perforce servers (on opposite sides of the world let's say), can you configure JIRA/Fisheye to communicate with both of those separate and distinct servers?

I see a way to enter multiple repositories, which we also have set up. We want to configure two completely and distinct Perforce servers. If this is even possible, how is it done?

There used to be the option to "Add Auxiliary Configuration" which I don't see any more.

Our versions are:  
Jira 6.4.5  
Fisheye 3.6.4

\~Ken


Tags: fisheye-crucible-administration
Unable to install Add-ons in Fisheye 4.0.3
Asked by Malyaj Shanker:

I am planning to upgrade our Fisheye 4.0.3. So I installed it in our Dev env with Dev licence.

However when I am trying to install plugins, it says not authorized.

FishEye Release Report - "Not authorized to install FishEye Release Report."

Directory Scanning Plugin - "Not authorized to install Directory Scanning Plugin."

There is nothing in the logs. I am unable to go forward here.


Answers:
author: Felipe Kraemer
body: Hi @Malyaj Shanker,

I had no issues installing those two plugins in FishEye 4.0.3.

Can you please check if your [FishEye Site URL](https://confluence.atlassian.com/fisheye/configuring-the-fisheye-web-server-298976936.html) is defined correctly?

I hope this helps!

comments: author: Malyaj Shanker
body: The Site URL was correct but I was proxying to fisheye through another apache and that information was not on that page. I filled those and was able to install the plugins.

Thanks for the doc.


Tags: fisheye-crucible-administration
How do I Integrate with JIRA and other Atlassian applications?
Asked by Warren Goldman:

This is a nice summary found on atlassians page for fisheye and it hints about things I might like. smart commits, crucible reviews, etc. how do I any of this? {#toc-hId-649909154}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Integrate with JIRA and other Atlassian applications {#toc-hId-678538305}
-------------------------------------------------------------------------

* See related JIRA issues
* Use smart commits to transition issues
* Crucible reviews
* Bamboo builds


Answers:
author: Aleks Yenin (Polontech)
body: [How to integrate JIRA with Bamboo](https://confluence.atlassian.com/bamboo/integrating-bamboo-with-jira-applications-289276945.html)

[How to integrate JIRA with Crucible](https://confluence.atlassian.com/crucible/jira-integration-in-crucible-298977521.html)

and so on...Please use search - Atlassian has a good integration documentation.
java.lang.NullPointerException when closing review in Crucible
Asked by John Landis:

We have one review in Crucible that is completed, but when anyone clicks the 'Close' button, they get a 'Server Error' message, stating the following:

"URL: /json/cru/CR-608/changeStateAjax

A java.lang.NullPointerException was encountered

No further details were provided.

You are running release CR3.8.0 FE3.8.0 (201504271400192015-04-27)"

This only affects one review; all others are able to close.


Answers:
author: Marek Parfianowicz
body: Could you please check if you have any non-published draft comments in this review and publish or delete them?

I'm asking because I found one bug report related with the changeStateAjax:

<https://jira.atlassian.com/browse/CRUC-7570>

Although the error message and the stack trace are different and the bug report is about version 4.0.0, there may be a chance that in version 3.8.0 it manifests differently.

comments: author: John Landis
body: It turns out there was a deleted comment that was preventing the review from closing. Restoring the comment enabled me to close the review. Thanks for your response, it was helpful.


author: Marek Parfianowicz
body: Great! I raised a bug report describing your case: <https://jira.atlassian.com/browse/CRUC-7660>
how to get a list of Committer username in a repo in FishEye
Asked by Brian Pang:


Answers:
author: Caterina Curti
body: Hi Brian,

I just raised an improvement request to track this feature request:

<https://jira.atlassian.com/browse/FE-6464>


author: Brian Pang
body: I need to use a REST API in script to get that list to process it.

Thanks!


author: Brian Pang
body: Thanks for the UI tip, but if I have 500 users.

I need to use a REST API in script to get that list to process it.


author: Grzegorz Lewandowski
body: Hey, is this what you're looking for ?

<https://fisheye1.atlassian.com/users/azureus>

You can navigate to that page by going to `Repository page` -\> `Users`


Tags: identity-manager
Crucible running with FishEye Disabled getting FishEye Maintenance alerts
Asked by Ryan Schaaf:

This might seem like a simple question, but we are running Crucible without full FishEye (only using the embedded light support). Our license key for FishEye is "Disabled". Recently our crucible instance (v3.10.3) started reporting that our FishEye maintenance is expiring in 7 days.  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Crucible-running-with-FishEye-Disabled-getting-FishEye/qaq-p/78994?attachment-id=5701){#link_1159ed43bb9314}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/1009/1/cru-fisheye-maintenance-snapshot.png){#display_1159ed43bb9314_0}


Answers:
author: Vitalii Petrychuk
body: This is a bug in a third-party plugin Crucible uses - it returns wrong application name.

If you scroll the page to the very bottom you can find the valid Crucible warning:
> **You have 5 days before your maintenance expires.** You can renew your license at <http://www.atlassian.com/crucible/renew>

comments: author: Ryan Schaaf
body: I just double checked and our crucible license does not expire until **30 Mar 2017** **.**Is this also from the bug with the 3rd party plugin that it is giving us this notification?


author: Ryan Schaaf
body: Nevermind turns out someone had put a different license on our box. The one we should be using wasn't the one on this production instance. Thanks for your help!


author: Topher Eliot
body: We got those but it never seemed to amount to anything, just an annoyance. Later I discovered that in fact we HAD purchased a new FishEye license (can you say poor communication?) and installed it, so I'm not 100% certain nothing bad would have come of the situation. But we were well beyond the "expiration"date of our previous FishEye license.


author: Ryan Schaaf
body: **cru-fisheye-maintenance-snapshot.png**


author: Ryan Schaaf
body: We have never had a FishEye license. We have been running with the license key of "Disabled" since the first installation and for every upgrade afterwards


author: Vitalii Petrychuk
body: In case you had FishEye in the past, have you restarted the server after modifying the license?


Tags: maintenance
Are there plans for Crucible or FishEye data center editions?
Asked by David Hergert _PAYX_:

Are there plans to have Data Center editions of Crucible and/or FishEye?

As a large company buying into the Atlassian Suite, we would like to know if Atlassian has plans to support heavier work loads on the other Dev Tools like FishEye and Crucible.


Answers:
author: GabrielleJ
body: I'm not really sure and I have not heard/read any documentation about it and I feel that Atlassian have no solid roadmap for Fecru nor they have put effort on it. We are using Fecru for quite some time now (enterprise scale) and the need for Data Center have prompt us to create own implementation for it (load balancers and global dispatch kind of thing).


Tags: fisheye-crucible-administration
Fisheye Native Git Network Directory
Asked by PlanningDev:

Im trying to add a remote directory to fisheye and have failed so far. All it ever says is that my directory does not appear to be a git repository.

On my fisheye server I created a symbolic link to the network share where my various folders are that have had a git init.

Local folder created as a symbolic link

E:\\GIT_FOLDER

Im somewhat of a beginner with git but I was under the impression that I could now point fisheye to the directory where my .git folder was initialized? Is the wrong?

I tried

file://E:/GIT_FOLDER/

and various combinations thereof. No success. Can someone help with where I might be going wrong? In the end I was hoping fisheye would let me search the directory something like SourceTree but easier.


Answers:
author: GabrielleJ
body: You can only use the file:/// protocol if your git repository is hosted as the same environment as your Fisheye repository. Read more about here (<https://git-scm.com/book/ch4-1.html>). Try using the http/s protocol.

comments: author: PlanningDev
body: I guess what I was assuming is that creating a symbolic link to the remote folder makes the .git repo folder appear as local to the machine.

Can you connect fisheye to a folder that simply has git initialized on it?


author: GabrielleJ
body: Yes, but it all depends where that git repo is and use the proper protocol base on that.


author: PlanningDev
body: can the git:// protocol be used for a repo on a remote server?


author: GabrielleJ
body: use http/s


Tags: external

git

repository
Please fix the Github 2FA connection
Asked by marcoxa:

Please fix the Github 2FA connection.  

As it is it is not working.  

I have been using SW for decades and this is simply not working.  

Here is what you should have.  

Connect to Github.

If some old connection is available somewhere in Sourcetree infrastructure and it is not working ASK ME TO FULLY RESET IT using the Github 2FA.  

DO NOT just assume that what "is there" is stil working.

Thank you  

Frustratedly yours


Answers:
author: Nic Brough -Adaptavist-
body: You're going to need to explain this a bit more.

My Sourcetree is working fine with Github 2FA, so there appears to be nothing to fix. What have you set up differently to me? Could you explain what you have set up, what is going wrong, and what change you made that stopped it working?

comments: author: marcoxa
body: Hi

thanks for the reply.

The main problem is that the interface does not explain what to do. If I remove the Github account and recreate it, all I get is a "connect your account". If you try do reconnect the account, because of various, unknown to me, cached values, all I get is the "old" account credentials, which do not work anymore.  

After various searches, I finally found a solution: I had to edit (or remove and recreate) my remote Github repo as

\`\`\`  
http://\<PERSONAL GITHUB TOKEN\>@github.com/....  
\`\`\`  

This is a key piece of information that the GUI should deal with when connecting to Github. As of now, it does not, in the sense that the GUI doers not explicitly and clearly state that that may be the problem, and neither does the Sourcetree documentation immediately available on the matter.  

Thank you for taking this into consideration.  

All the best

Marco Antoniotti