youngmon/atlassian-qna huggingface dataset:
Fisheye/Crucible: Is it possible to see if a user is admin via the REST API
Asked by Claus Nielsen:

Hi,

Is it possible to use the REST api to see if a user is registred as admin in Fisheye/Crucible ?

This one doesn't show: rest-service-fecru/admin/users/\<user\>

```
{    "name": "&lt;user&gt;",    "displayName": "&lt;name&gt;",    "email": "&lt;email&gt;",    "type": "LDAP",    "crucible": true}
```


Answers:
author: lpater
body: Hi Claus,

This is not available currently in the REST api. There's a feature request for this in our [issue tracker](https://jira.atlassian.com/browse/FE-5318). Please watch that for updates.


author: gustavo_refosco
body: Hi Claus,

The REST API in fact doesn't show if the user is admin or not, but you should be able to retrieve this information directly from your **config.xml** file under the FISHEYE_INST directory. When a user is set as administrator, it's added to a list within this file, shown as follows:

```
&lt;admins&gt;&lt;system-admins&gt;&lt;user&gt;grefosco&lt;/user&gt;&lt;/system-admins&gt;&lt;/admins&gt;
```

Regards,

Gustavo Refosco

comments: author: Claus Nielsen
body: Thanks Gustavo,

I know that this info is present in the config.xml file on our linux box, which we can't fetch programmatically....

It would be nice to have this feature via the REST API - of course only information available via the API to admin roles :smile:

Kind regards

Claus Nielsen


Tags: fisheye-crucible-administration
How to restore deleted permission scheme
Asked by Melat Mamo:

*This question is in reference to Atlassian Documentation: [Creating a permission scheme](https://confluence.atlassian.com/pages/viewpage.action?pageId=298977513)*

I accidentally deleted permission scheme and now i can't access other administration activities except projects .

Please help how to restore the permission scheme

Thanks ,


Answers:
author: gustavo_refosco
body: Hi Melat,

Would you have a Crucible backup from which you could take the deleted Permission Scheme information? From it, I think you may try then re-creating it in the database - please notice changing the DB directly isn't a recommended approach, so I'd make sure to have a backup prior to change anything, and also test this before rolling out to production, since I'm not sure this would work. The tables involved in the permission scheme configuration are:

* CRU_PERM_SCHEME
* CRU_PS_ALL_USER
* CRU_PS_ANON
* CRU_PS_GROUP
* CRU_PS_REVIEW_ROLE
* CRU_PS_USER

In the other hand, I believe you may also try connecting to Crucible as the system administrator, then create a new Permission Scheme similar to the one you had before, and then set the new permission scheme for this project in the project configuration.

Regards,

Gustavo


Tags: permission-scheme
Remove Fisheye and Crucible
Asked by Chris Miller:

Running RHEL 5.10 (x32) and we have Fisheye and Crucible running on it and we want to remove both.

I've looked under /opt/fecru-2.3.1/bin and don't see a way to remove either one. I was successful in stopping Fisheye.

Can anyone help here?

thanks


Answers:
author: Marek Parfianowicz
body: In order to uninstall you have to remove:

* home directory containing FishEye/Crucible binaries - in your case it seems to be /opt/fecru-2.3.1
* instance directory containing FishEye/Crucible data ($FISHEYE_INST) - in case you did not set it, it will be the same as home
* database - in case you had an external database set up

<https://confluence.atlassian.com/display/FISHEYE023/Installing+FishEye>

<https://confluence.atlassian.com/display/FISHEYE023/Migrating+to+an+External+Database>


author: Topher Eliot
body: I'm not an expert by any means, but I just struggled through an upgrade of Crucible. I found that even after installing the new version, the Windows Service still existed, and referred to the old installation. I followed the [instructions I found at How to Geek to remove the service](http://www.howtogeek.com/howto/windows-vista/how-to-delete-a-windows-service-in-vista-or-xp/).
Is there a way to perform more than 1 crucible/fisheye backup per day?
Asked by Jong Tarashuck:

Currently it seems as though the highest frequency is that you can perform 1 per day. I would like to be able to perform 2 or 3 if it's possible. I see a \<time\>02:00\</time\> in the config.xml and was wondering if I can add more \<time\>\</time\> tags to include multiple backups or something similar.


Answers:
author: Piotr Swiecicki
body: I'm afraid it is not possible to backup system more often than once a day at the moment if you rely on the Scheduled Backups feature. See [Scheduling Crucible backups](https://confluence.atlassian.com/crucible/backing-up-and-restoring-crucible-data-298977490.html#BackingupandrestoringCrucibledata-SchedulingCruciblebackups) documentation for more details.

But you can easily achieve more regular backups by requesting backups from the command line. So you could configure cron to run the backups with your preferred frequency. See [Backup command line options](https://confluence.atlassian.com/crucible/backing-up-and-restoring-crucible-data-298977490.html#BackingupandrestoringCrucibledata-Backupcommandlineoptions) for more details.

Hope that helps,  
Piotr


author: Jong Tarashuck
body: I tried adding another \<time\>\</time\> entry but the app failed to start so count that option out.


Tags: fisheye-crucible-administration
Crucible requires Java 1.8
Asked by Pieter de Bruijn:

*This question is in reference to Atlassian Documentation: [Installing Crucible on Linux and Mac](https://confluence.atlassian.com/pages/viewpage.action?pageId=298977373)*

When trying to start Crucible I get the following message:  
"FishEye/Crucible requires Java 1.8 or greater. Your version is 1.7.0_95."  
But 1.7 is the lastest OpenJDK version, which is explicitly supported. How can I skip this invalid error message?


Answers:
author: Nic Brough -Adaptavist-
body: Um, no, OpenJDK 1.7 is NOT explicitly supported, only OpenJDK 1.8 (and only on Linux).

And 1.8 is the latest version of Openjdk. It might not be the one available in your repositories, but it is out.

comments: author: Pieter de Bruijn
body: In that case the information on the website it incorrect:  
[https://confluence.atlassian.com/crucible/installing-crucible-on-linux-and-mac-298977373.html:](https://confluence.atlassian.com/crucible/installing-crucible-on-linux-and-mac-298977373.html)"The version of Java should be **1.8.x** (or **1.7.x** for OpenJDK)."

Can someone confirm?


author: Nic Brough -Adaptavist-
body: Yup, that's a definite error.

Atlassian are good at updating the "supported platforms" pages, and I always rely on them. <https://confluence.atlassian.com/crucible/supported-platforms-298977375.html> states 1.8 is the only supported version. Obviously, someone didn't get around to updating the duplicated information...


author: gustavo_refosco
body: Hi Pieter,

You're correct, although the [Supported Platforms](https://confluence.atlassian.com/display/FISHEYE/Supported+platforms) page states that support to Java 7 was removed on FishEye/Crucible 3.9, the install docs were not updated accordingly. I've updated the install docs both for 3.9 and 3.10 to reflect this change.  

Thanks for noticing and reporting this. :smile:  

Regards,  
Gustavo


Tags: fisheye-crucible-administration

install
Is it possible to diff a new script to an old script with a different name?
Asked by Freda Kalan:

I have two pieces of code, code1.R and code2.R. I've already reviewed code1.R, it's been in production for several months and it works well.

When I review code2.R, I'd like to diff it against code1.R.

Is there a simple way to do this in Crucible?


Answers:
author: Freda Kalan
body: I have decided to use a different tool.

Notepad++ has a "Compare" plug in available from its website, and this is sufficient for my purposes.


author: Marek Parfianowicz
body: In case you would like to review difference between arbitrary commits, you can create a patch using proper SCM command (git diff etc) and next upload the patch to the review (edit review \> add content \> upload patch).
How do I add a string with slashes in it without breaking it into multiple lines?
Asked by kudorgyozo:

*This question is in reference to Atlassian Documentation: [Using Wiki Markup in Crucible](https://confluence.atlassian.com/pages/viewpage.action?pageId=298977438)*

All right. Maybe I'm really stupid but I can't figure this one out. How do I add a simple string in a single line that has slashes in it? Why is it breaking into multiple lines? How do I stop breaking it up? for example **/categories/{id}/products/{id}** This is **\*EXTREMELY\*** frustrating!


Answers:
author: kudorgyozo
body: **/categories/\\{id\\}/products/\\{id\\}**
Fisheye: Is there any danger in changing the path up one level on an existing subversion repository?
Asked by Pete Chapman:

Hi, we have a subversion repository with a structure something like

```
https://svn.companyname.com/svn/productsuite/productcore
```

and we have the fisheye repository pointing to the level

```
https://svn.companyname.com/svn/productsuite/productcore
```

We have many code reviews, issues linked. We want to change the location to now point to

```
https://svn.companyname.com/svn/productsuite
```

so we can include subversion folders that will be located under

```
https://svn.companyname.com/svn/productsuite
```

Will we lose any of the past links to code reviews, source code links in Jira etc if we do this?

Thanks in advance for any answers!


Answers:
author: Pete Chapman
body: Thanks for that Gabielle. I have also asked via support, (as the office here want a definite "we will not lose anything"), so will see what they say and then hopefully try it


author: GabrielleJ
body: I have not tried but I don't believe you will lose any data. You can do a test drive on one of your repository and just run an Incremental index, that should not take long :smile:


Tags: fisheye-crucible-administration
How to select reviews by multiple authors in Crucible?
Asked by Andrei Rykhalski:

I'm trying to create a filter which will show me all reviews created by people from some list, so, using pseudo-code, it would be some kind of:

```
SELECT * FROM reviews WHERE author IN (johndoe, janedoe, jamesdoe)
```

However, I don't see a possibility to specify more than one name in fields author, moderator, creator and reviewer:

image2016-2-1 13:45:19.png

I tried to separate them with a comma, a semicolon or a space but it's not a valid format.

So I'd like to ask if there's any possibility to choose multiple people in any of these fields for a custom filter?

Thanks.  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/How-to-select-reviews-by-multiple-authors-in-Crucible/qaq-p/437441?attachment-id=11324){#link_115a24bb2d16fc}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/5827/1/image2016-2-1%2013%3A45%3A19.png){#display_115a24bb2d16fc_0}


Answers:
author: Marek Parfianowicz
body: Click on the "Switch to EyeQL search" link to run an advanced search query:

<https://confluence.atlassian.com/fisheye/searching-fisheye-298976804.html#SearchingFishEye-SearchingtheRepository-AdvancedSearch>

<https://confluence.atlassian.com/fisheye/eyeql-reference-guide-298976796.html>

comments: author: Andrei Rykhalski
body: Unfortunately, I've found that link in FishEye only, but not in Crucible. EyeQL queries return a list of revisions (FishEye items), while I need to retrieve a filtered list of code reviews (Crucible items), so I wonder if there's any functionality for that in Crucible.
Create FishEye Repo Linked to Stash Repo
Asked by Shelli:

I am trying to create a FishEye repository (v 3.10.1) that is linked to a Git/Stash repository (v 3.5.1) but cannot get FE to connect to Stash. There may be some network issues that are being looked into by our ops team, but in the meantime I would like to confirm that I am doing the correct steps.

In FE when adding a new repo we:

* choose Git as the repo type
* set the repository location using the SSH URL provided by Stash for cloning the repo
* set the authentication style to "Generate key pair for ssh" and generate them
* copy the public key from FE and add it as an access key in Stash

When I test the connection, it fails. ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")


Answers:
author: Piotr Swiecicki
body: For your information, since FishEye 3.4+ and Stash (now called Bitbucket Server by the way) 2.11.4+ instance admin can add Stash repositories to FishEye with few clicks only, if only Application Link is configured. See <https://confluence.atlassian.com/fisheye/integrating-fisheye-with-bitbucket-server-587303683.html> for more details.

But the approach you have taken should also work smoothly. If the only details you see is that connection failed, I would advise to enable debug logging in FishEye (admin / Server / click Debug button) and try connecting once again. Once it fails you should see more details in the server log (FISHEYE_INST/var/log/atlassian-fisheye-DATE.log).

The problem could be indeed on the network level. Try perhaps connecting to stash from FishEye instance with a telnet tool, e.g. assuming you stash instance is stash.mydomain.com and the git over ssh port used (extracted from your SSH URL provided by stash) is 7990, try running

```
telnet stash.mydomain.com 7990
```

if it breaks, it's proves there is no connectivity on the network level.

Hope that helps,

Piotr

comments: author: Shelli
body: This is what I get at debug level

2016-02-01 10:44:37,138 DEBUG \[qtp467796378-113973 ection-1454348677136\] fisheye DvcsProcessMonitor-onBeforeStart - Starting process: git ls-remote -h <ssh://git@stash.my.server:7999/mru/moruui.git>

2016-02-01 10:44:37,140 DEBUG \[qtp467796378-113973 ection-1454348677136\] fisheye DvcsProcessMonitor-onAfterFinished - Finished process: git ls-remote -h [ssh://git@](ssh://git@answers.atlassian.com)[stash.my](http://stash.my).server:7999/mru/moruui.git

When I run the "git ls-remote -h <ssh://git@stash.my.server:7999/mru/moruui.git>" from my command line, it fails because the git command is not found. Our server is running CentOS 5.5 so installing git on it is a bit of an adventure. Thanks for the help.


author: Marek Parfianowicz
body: Did you enable debug logging?


author: Shelli
body: Only that the connection failed, nothing useful.


author: Marek Parfianowicz
body: Do you see any errors in the log?


Tags: bitbucket
How to obtain the Crucible Server ID
Asked by Mike Buttenwieser:

*This question is in reference to Atlassian Documentation: [Administering Crucible](https://confluence.atlassian.com/pages/viewpage.action?pageId=298977487)*

I am stalling Fisheye and Crucible. I have successfully installed FIsheye and proceeding to Crucible.

How do I obtain the Server ID for Crucible to obtain the license key to continue with the installation


Answers:
author: Marek Parfianowicz
body: Administration \> System Settings \> System Info \> License \> Server ID

crucible_server_id.png  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/How-to-obtain-the-Crucible-Server-ID/qaq-p/84169?attachment-id=2379){#link_115a24f5d742b1}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/1106/1/crucible_server_id.png){#display_115a24f5d742b1_0}


author: Erik Stevens
body: Under the Administration Menu \> System Settings, there's a "System Info" section. That should have the server ID and products listed

comments: author: Mike Buttenwieser
body: I've searched the menu's I have including administration and system configurations and not able to locate a systems settings or system info section. Still not able to locate the server id


author: Mike Buttenwieser
body: I'm working on a VM environment, would that matter?


Tags: server-id
People are not able to add me as reviewer even if they select my name
Asked by Irini Ilia:

When any other member of my team generates a review, he cannot add me as a reviewer.

We have also tried to make a review with reviewer only me, without luck. When we close the window my name is lost, and the moderator/Author is informed that there is no reviewer.

Consequently I can only view the reviews without making any comment or without be informed about the comments that other reviewers made.

I have also made a review adding some other members of my team, as reviewers and the tool worked properly in this case.

Do you have any idea on how to solve my problem?

Thank you.  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/People-are-not-able-to-add-me-as-reviewer-even-if-they-select-my/qaq-p/412394?attachment-id=9745){#link_115a2505d3845d}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/5507/1/Screen%20Shot%202016-01-25%20at%209.31.45%20AM.png){#display_115a2505d3845d_0}


Answers:
author: Jeff Thomas
body: I think there are two things we should check first:

**Active Crucible User**

Let's make sure your account is an active Crucible user.

Navigate to `Administration >> Users` and select your username. Verify that Crucible user is set to true for your account.

**Allowed Review Participant**

Let's also make sure that your account can be added as a review participant for the project that we're working in.

Navigate to `Administration >> Projects` and click Edit under Crucible Settings for the project we're working with. If any users are specified in Allowed review participants, add your username. If both Users and Groups are blank, do not add your username as the issue lies elsewhere.


author: Irini Ilia
body: At first, thanks for your answer.

Unfortunately, the option "administration" is not visible in the tool.

Do you have any other suggestion?

Thank you in advance.

comments: author: Jeff Thomas
body: If you're an admin in the Application, then Administration can be found by clicking on the Gear Cog dropdown menu in the upper right-hand corner of the page. You will need to be an Administrator to see this option.

Screen Shot 2016-01-25 at 9.31.45 AM.png


Tags: fisheye-crucible-administration
Does anyone know if I can use Crucible for code reviews with TFS?
Asked by Sergio Piedrahita:

Does anyone know if I can use Crucible for code reviews with TFS?


Answers:
author: Jeff Thomas
body: Hi Sergio,

Crucible does not support connecting to TFS repositories. There was a feature request for this, but it has been closed as Won't Fix - <https://jira.atlassian.com/browse/FE-1379>

Crucible [supports](https://confluence.atlassian.com/crucible/configuring-repositories-298977500.html) the following repository types:

* CVS
* Git
* Mercurial
* Perforce
* Subversion
Would like to hide repositories by group or project
Asked by lophat:

We have over 40 repositories with more to come. It would be nice if certain users could only see certain repositories etc. for a cleaner user experience. I know I can use projects to restrict reviewers on a repository, but I would like to hide it altogether. I attempted to do this on the admin page for repositories by unchecking "can read" for certain groups, but this doesn't appear to do anything. I am not in the group that "can read", but I can still look at the repository in Fisheye. Anyone know how to do this? And, what exactly does the "can read" permission do? Thanks in advance for any help!


Answers:
author: Piotr Swiecicki
body: Hi @James Rice,

The permission are cached for a short period of time, so once you check the permission settings this might require some time to activate. Try logging out and logging in perhaps, to invalidate the cache and see new permissions in place.

The "can read" is meant to work exactly as you expect - users without it would not be able to see the repository on the repository list, when click URLs pointing to content of such repositories they would see an error message.

Hope that helps,   
Piotr


Tags: fisheye-crucible-administration
moving comments from one review to the next
Asked by Manoj R:

I have created a code review and I have accumalated some comments from the reviewers.Now I have new code and I want to create a review and I want to reuse or see all the comments which were there in the previous review also.How can I do this in a crucible review.


Answers:
author: Maciej Swinarski
body: Hi Manoj,

Crucible is "The tool" for doing iterative reviews.

Depending on how you create the review, one would just update the existing review with new commits.

In the case of branch reviews this will happen even automatically by default.

After modifying the review (adding new commits) reviewers will be able to see what was added and what changes were done in response to their comments.

Not sure why you want to create a new review? Please explain your workflow.

mac
FishEye cannot find P4 executable
Asked by Parham Gholami:

I'm using the most recent versions of FishEye and Crucible together on CentOS 7.1. Per the documentation, I downloaded the p4 binary and put it in:

```
/opt/fecru-3.10.3/bin/p4home
```

Despite that, when I try to add the config, I get this error:

```
Errors:/opt/fecru-3.10.3/bin/p4home does not exist or can not be accessed.P4 executable does not exist at configured location: /opt/fecru-3.10.3/bin/p4home, using 'p4' instead, make sure it is on your PATH.
```

I even went so far as to mark the folder 777 to see if it was a permissions problem. No luck. I can't explain why it can't find the folder, much less the binary, when I can see it myself. Apologies for the file directory gore and general sloppiness in the setup, this is a quick and dirty process to figure out what the installation process is like.


Answers:
author: Piotr Swiecicki
body: Hi @Parham Gholami,

It seems you configured P4 binary path in FishEye to /opt/fecru-3.10.3/bin/p4home - I'm not clear, is /opt/fecru-3.10.3/bin/p4home a folder containing p4 binary or a full path to p4 binary?

In typical configuration you would download p4 binary to some folder and store them under original p4 name, e.g.

/opt/fecru-3.10.3/bin/p4home

grant it executable permissions

```
chmod a+x /opt/fecru-3.10.3/bin/p4home/p4
```

verify if it can be executed

```
$ /opt/fecru-3.10.3/bin/p4home/p4 -VPerforce - The Fast Software Configuration Management System....
```

Note those steps should be performed on behalf of the user running FishEye - if you use different user you may find out FishEye user doesn't have sufficient permissions to run p4 binary.

Finally, configure FishEye with the full absolute path to p4 binary (setting it to owning folder is not going to work), i.e.

```
/opt/fecru-3.10.3/bin/p4home/p4
```

If this still doesn't help check your logs (FISHEYE_INST/var/log/atlassian-fisheye-DATE.log) for more details.

Hope that helps,

Piotr


Tags: fisheye-crucible-administration
Can fisheye search strings inside source code files?
Asked by Marcos Maia:

Can it do a full search text looking inside each one of the source code files and all text files and look for a sepecific string? Similar to what opengrok does?


Answers:
author: Maciej Swinarski
body: Hi Marcos,

FishEye is indexing:

* full content of your repository main branch
* diffs on main repository branch and all branches

You will be able to search for any string of the indexed content (main branch) or diffs (all branches).

Read more about FishEye search functionality: <https://confluence.atlassian.com/fisheye/searching-fisheye-298976804.html>

Please have a look at public FishEye instances and play with the search functionality:

[https://fisheye6.atlassian.com/qsearch?q=public+static+void+main\&t=3\&s=2\&bucket=ANY_DATE\&userFilter=](https://fisheye6.atlassian.com/qsearch?q=public+static+void+main&t=3&s=2&bucket=ANY_DATE&userFilter=)

mac


Tags: fisheye-crucible-administration
Updating Java Version for existing FishEye/Crucible Instance
Asked by Erik Stevens:

We're looking to update java versions on the machines running our FishEye and Crucible instances. Are there any things we should be looking out for or struggles anybody encountered, or was it as easy as it seems like it'd be?


Answers:
author: Timothy
body: Just make sure you install a supported JVM:

* <https://confluence.atlassian.com/fisheye/supported-platforms-298976955.html>
* <https://confluence.atlassian.com/crucible/supported-platforms-298977375.html>


Tags: fisheye-crucible-administration