youngmon/atlassian-qna huggingface dataset:
Started getting 'invalid revision range' error in Fisheye
Asked by Dave Pacifico:

We've been using Fisheye for months with no problem and all of a sudden at the end of last week I started getting this error that prevents commit indexing:

Invalid revision range 31921deb48c0cddf0dae5da65d902b6641240ebb..9cb88779882114323fac26a1f41db7fc42e1b5f2

com.atlassian.utils.process.ProcessException: While executing: "git rev-list --reverse --date-order 31921deb48c0cddf0dae5da65d902b6641240ebb..9cb88779882114323fac26a1f41db7fc42e1b5f2 "

We're using a Git repository and as far as I know, there were no configuration changes to the repository itself. Any guidance as to what I should look for or where I should go would be helpful. Thanks a lot.


Answers:
author: Felipe Kraemer
body: Hi Dave,

The command which is failing is:
> git rev-list --reverse --date-order 31921deb48c0cddf0dae5da65d902b6641240ebb..9cb88779882114323fac26a1f41db7fc42e1b5f2

Can you try to run that command directly on the commandline client, to see if it also raises an error?

If the command runs fine, then probably the repository cache in FishEye has got corrupted somehow (maybe due to an earlier crash, out of memory problem, full harddisk, etc.).

To fix this:

1. Stop FishEye
2. Delete the *\<FISHEYE_INST\>/var/cache/\<reponame\>* directory, where *\<reponame\>* is the name of the repository that's causing the error
3. Restart FishEye with the *--debug* [command line option](http://confluence.atlassian.com/display/FISHEYE/Command-Line+Options)
4. Let the index complete

If the problem persists after these suggestions, please create a [support](https://support.atlassian.com) ticket.
Is there a Crucible report showing percentage of SVN checkins that are in at least one review?
Asked by Pat Lynch:

We would like to track this metric. Seems like the infomattion should be available, just wondering if anyone has created such a report.


Answers:
author: Sergey Svishchev
body: A SQL query like this will get you the number of reviewed SVN checkins:

```
select count(distinct(concat(r.cru_source_name, r.cru_revision))) from cru_revision r join cru_frx_revision fx on r.cru_revision_id = fx.cru_revision join cru_frx x on x.cru_frx_id = fx.cru_frx_id where r.cru_commit_date/1000 &gt;= unix_timestamp('1970-01-01') and r.cru_source_name = 'foo';
```

And you can get the total number of checkins from an EyeQL query like this:

```
select revisions where date &gt;= 1970-01-01T00:00:00.00Z group by changeset return count(revisions)
```

Change the WHERE clauses to match your requirements, of course.

comments: author: Pat Lynch
body: Do you need the FishEye product to run the EyeQL command?


author: Sergey Svishchev
body: Yes, you need the Fisheye license.


author: Pat Lynch
body: Hmm. We currently don't have a Fisheye license.

I ran the SQL Query and it does report the number of checkins per repository that have files in a review. That part works well. But without Fisheye I can't complete the computation. I will have to look into the possibility of listing SVN checkins directly from SVN or creating a commit hook that updates a database.


author: David Hochstuhl
body: As a workaround, you can create a dummy review which contains all changeset in history. This will bring all changesets into table cru_revision. Those changesets seem to remain in the table even if you delete the dummy review. (I don't know however whether they remain permanently or whether they will be ocassionally cleaned by Crucible).


Tags: cloud

fisheye-crucible-svn-ondemand
Fisheye really useful ?
Asked by Finn Harsfort:

Hi

We are a small company using JIRA ondemand and Greenhopper agile development.

We are starting a new project and Im looking into Fisheye for integration with version control system. My developers want to use Mercurial, but as far I can see, JIRA ondemand does not integrate to this, but only to Perforce, CVS and Subversion.

We are therefore considering doing version control outside JIRA, but I would like to hear inputs from anybody who could give me the arguments for why we should choose JIRA and Fisheye and potentially subversion instead.

Any good hints you wanna share?

regards,

Finn


Answers:
author: 2nd Act Innovations
body: We use Crucible, wich is an extension of Fisheye for code-reviewing and find it irriplaceable. It allows our small group to do our code reviews in our own time, and then meet for bi-weekly group meeting to go over the major findings. This means, that instead ot taking developers out of thier tasks on a frequet basis, then can do reviews, or bits of reviews when time permits. Review requestors are notified of the progress of reviewers, comments, bugs, etc.

Unfortunately, OnDemand does not yet support Mercurial, which we now use. We'de love to switch to this product (as we have 6 developers (soon to be 7-8) and only the starter license of 5 users), even with the monthly cost of $40 (JIRA, Bamboo, Fisheye, Greenhopper... all of which we have starter edt. license.

We are left to wait until Atlassian fixes this oversight (a large portion of developers use Mercurial and Git, I find it strange that this was left out ;)


Tags: cloud

fisheye-crucible-svn-ondemand

mercurial
Jira, Confluence, Fisheye: Partition users into projects
Asked by David Bacon:

Please, take pity on me! ;-) Point me to a tutorial or guide?

I have 3 projects: p1, p2, p3

There are \~10 users.

How the hell do I configure Jira, Confluence, and Fisheye so certain users can access certain projects? Like \*nix, I want to create a group for each project and assign users to the appropriate group. Seems simple enough, but I cannot find the correct incantations to make that work. Do I need to sacrafice a goat? Or, should I wear some silly hat and burn incense? Eye of newt?

I've been pouring through the doc and it talks about permission schemes, etc. There must be a simple tutorial laying about. This \*cannot\* be a unique need or request!

An OnDemand configuration.

Many, many thanks.


Answers:
author: David Bacon
body: Howdy Nic, et al,

I am not married to the idea of implementing as I have described. Is there a better way? I would love to have a recommendation for a better way to implement. Please ... I welcome your advice and guidance and welcome better ideas!

Yes, I have bumped into the default groups issue. And, I think I have overcome it. My permission schemes for each of p1, p2, and p3 will be used and the default, jira-users, will be removed from each project.


author: Nic Brough -Adaptavist-
body: The docs on permission schemes are what you need. They're not too complex until you're trying to do something clever. If you want to do it the way you've said (basic groups, which is fine until you hit large installations). Crowd, (or each individual app if you're using them standalone) has groups. You put users into those groups, and then use the groups in permission schemes.

The main difficulty I find is the defaults. As an example, off-the-shelf, Jira comes with three groups - jira-admins, jira-users and jira-developers. It then uses those three groups in permission schemes to do stuff. The problem is that it whacks everyone into jira-users automatically and uses that group. By the time most experienced admins get at a Jira installation, it's in a right old mess, because jira-users has been used everywhere, and what you really wanted was a fourth group of "can login but not do anything else", and jira-users to be separate.


Tags: cloud

user

user-management
How to speed up repository scan?
Asked by Dmitry Baryshev:

I have a remote svn repository with svn+ssh:// access. Fisheye doesn't support such repositories by default, so I use a native svn client (javahl).

When fisheye start to scan my repository, it creates a separate ssh connection for each svn command, which takes 2.5 seconds or more. So it will take \~5 days to scan a complete repository with several thousands commits.

Is it possible to speed up this? Can fisheye use a shared ssh connection instead of creating separate connections?


Answers:
author: Felipe Kraemer
body: Hi, Dmitry.

There are some things you could try:

1. According to the [Best Practices for FishEye Configuration](http://confluence.atlassian.com/display/FISHEYE/Best+Practices+for+FishEye+Configuration) document, we recommend using file:/// protocol for fastest indexing performance. If you cannot install FishEye on the server where Subversion is running, we recommend using [svnsync](http://svn.collab.net/repos/svn/trunk/notes/svnsync.txt) to mirror the repository onto the FishEye server.
2. If you have a large repository, you could try to configure a starting revision from which to start indexing. All commits prior to this starting point are not included in FishEye. [Read more](http://confluence.atlassian.com/display/FISHEYE/Configuring+Repository+Details).
3. You can exclude portions of your repository that you are not interested in. [Read more](http://confluence.atlassian.com/display/FISHEYE/Configuring+Repository+Details).
4. You can also split a single and large repository into smaller logical components such as projects or products.
5. Change the repository definition to look at a subset of your repository. Typically this involves setting the path within your repository that you wish FishEye to index. [Read more](http://confluence.atlassian.com/display/FISHEYE/Configuring+Repository+Details).
6. These documents can also be very useful:  
   <http://confluence.atlassian.com/display/FISHEYE/Improve+FishEye+Scan+Performance>  
   <http://confluence.atlassian.com/display/FISHEYE/Tuning+FishEye>

Could you please give these suggestions a try and let us know how it goes?

Kind Regards,  
Felipe Kraemer  
Atlassian Support
Is it possible to add hooks to a managed Git repository?
Asked by Fred Hoare:

We'd like to add some server side hooks to a git repository. Is it possible to do this with a Fisheye managed git repository?

Thanks

Fred


Answers:
author: Douglas Fabretti
body: Hi Fred.

You can do it by locating your managed-repos (check your \<FISHEYE_INST\>/config.xml:

\<repository-management repositories-root="/opt/atlassian/fecru/inst/managed-repos"/\>

Inside that folder all managed repositories are located then you can add the hooks you want:

root@webserver64:/opt/atlassian/fecru/inst/managed-repos/git.git# ls  
branches config description HEAD **hooks** info objects refs

Please let me know if that is what you are looking for.

Cheers,  
**Douglas Fabretti**   
**Atlassian Suport**
How to activate crucible automated reminder?
Asked by ViktorT:

When I open code review details I can see "send reminder" field, but it's disabled. Also it says "Automated reminder is disabled". How to activate it?

Also I'd like to send automated reminders to both reviewers (who doesn't finish their review) and author (who doesn't closed their review though all reviewers have already completed review). Is it possible?

p.s. I do have correctly configured smtp.


Answers:
author: ViktorT
body: Actually it's not "disabled", it's just depends on whether due date expire or not - <https://jira.atlassian.com/browse/CRUC-6014>


author: Chii
body: [Review reminders](http://confluence.atlassian.com/display/CRUCIBLE/Using+Review+Reminders) are disabled if there are no due date set. Check the due date is set the review itself, or if you have admin access, check the default due date in the project is set.

comments: author: ViktorT
body: due dates are set, both for the review and the default for project. for eash review i can see due 2 days ago, in 1 day, etc., but for any review there's "Automated reminder is disabled" in the details.


author: seb
body: You will need an SMTP server configured for review reminders to be available as well


Tags: email

notification
Is Crucible compatible with Borland Start Team ?
Asked by Smitha Pasham:

Hi,

We are evaluating code review tools and wondering if Crucible is compatible with Star Team ? Input on this would help us make some decisions.

Thanks !!


Answers:
author: NikE
body: Unfortunately, there is currently no integration option for Borland's StarTeam with Crucible OnDemand. With the launch of OnDemand, a lot more systems were able to be integrated with our hosted suite, but StarTeam was not one of them. As of right now, there is a [very old feature request](https://jira.atlassian.com/browse/BAM-149 "Feature Request") (you may want to vote/watch it) but little other mention of it. Additionally, just for reference, there is [one plugin](https://plugins.atlassian.com/plugin/details/28248 "one plugin") that may be able to add that functionality you are looking for, however we are unable to install custom plugins in the OnDemand environment at this time.

We are looking to add additional integration, functionality, and plugins with each new update, but I do not foresee this feature being available in the near future.


Tags: cloud

fisheye-crucible-svn-ondemand
Can i work with an on demand instance of Fisheye-crucible ONLY using github or bitbucket or using self-hosted git repository too?
Asked by Luis Artola:

I wonder if this is possible and if there is documentation explaining how to do it...


Answers:
author: Michael Knight
body: Hi Luis,

It's not possible to do something like this with OnDemand at the moment. You must have at least JIRA or Confluence in your subscription and FishEye/Crucible currently only works with the built-in SVN server.

comments: author: mikeumus
body: When do you think GIT support will be here?

8)


Tags: cloud

fisheye-crucible-svn-ondemand
FishEye OpenId Support without Crowd
Asked by Patrick Patrick:

Hello,

We are wanting integrate openid as our authentication mechanism but don't have crowd installed. Is there a way to accomplish this with the using the authentication plugin provided by FishEye or has anyone tried to do so?

Thanks,

<https://developer.atlassian.com/display/FECRUDEV/Authentication+Plugins>


Answers:
author: Patrick Patrick
body: Working on this has resulted in a few more questions about plugins in general. Going down another route, I'm trying to get the FishEyeAuthenticator to be ContextAware so that the applicationContext is available to me within the authentictor. In trying to wiret his in my config, I'm failing. According to [https://answers.atlassian.com/questions/15268/get-list-of-groups-for-user-in-crucible-fisheye-2-7](/questions/15268/get-list-of-groups-for-user-in-crucible-fisheye-2-7), I can load the context using SpringContext, but I don't see any reference to what the SpringContext class is or where to find it. Is it possible to make the Authenticator context aware?


Tags: openid
How to copy all crucible notification emails to particular email?
Asked by ViktorT:

I'd like to recieve a email every time when review participant create a comment. Is there any workaround to do that?


Answers:
author: Chii
body: All review participants will recieve an email for each comment made (and depending on the profile setting, the comments are batched or individually sent). If you are not a review participant, you will not get an email.

Right now, there isn't a way to add 'watchers' to reviews - that is, they aren't a review participant, but still recieve notifications.

You might workaround that by subscribing to the RSS feed of reviews for the project, but that will give you all comments for all reviews in that project. Alternatively, there is an email review function in the tools menu that allows a user with view review permission to send that review as an email to anyone (either a user or an arbituary email address).


Tags: email
Why do i get "Issue not found" when i am not logged in ?
Asked by JIRA Autobot:

Hi,

I have setup the Application Links correctly between my JIRA and Fisheye installation and everything works fine when user is logged in Fisheye. When user is logged in he can see the issue when hoovering it but when not logged in he sees "Issue not found". I don't understand why we get that considering that we have browse project in JIRA open to anybody so any user can see the issues without having to be logged in.

/donnib


Answers:
author: dwithers@franklinamerican.com
body: I had this issue after an upgrade and found that my outgoing authentication for jira under application links was broken. I re-set this back up and everything was working again.


author: Douglas Fabretti
body: Hi Donnib.

This is probably hapening because the Anonymous Access in FishEye is disabled:

Can you try enabling it and check if it solvest the problem: <https://confluence.atlassian.com/display/FISHEYE/Configuring+Anonymous+Access>

Cheers,  
**Douglas Fabretti**   
**Atlassian Support**

comments: author: Jerome Taylor
body: I have a similar problem where some of the issues are not found when I hover over the issue link in the commit record, but if I click the link the browser take me to the correct JIRA page.

<br />


author: Jason Plumhoff
body: I see the same thing as Jerome... and I'm logged into both my JIRA and Fisheye instances.
SVN errors viewing logs on a file
Asked by Brian Beckham:

I am in a trial of SVN and when trying to 'show log' on a file, I am getting errors

'/svn/!svn/bc/244/SNTP/branches/x' path not found


Answers:
author: LucasA
body: Hello,

You have to execute the following command:

```
svn log https://your_instance_URL.atlassian.net/svn
```

If you still having problems with this, please raise a support ticket at: <https://support.atlassian.com>

Regards,

Lucas Lima

Atlassian Support


Tags: cloud

fisheye-crucible-svn-ondemand
After import of SVN only 1 version shows in history
Asked by Brian Beckham:

After an import of a small SVN repos, I am able to see the source code, etc. in Fisheye, but there is only a single commit showing - #245 - every file in the system shows this single commit, but no other history is available. Anyone?


Answers:
author: LucasA
body: Please raise a support ticket and ask to proceed with the repo re-index.

Lucas Lima

Atlassian Support


Tags: cloud

fisheye-crucible-svn-ondemand
Can't connect to Perforce with Fisheye hosted in Java service wrapper
Asked by James D:

After installing the latest version of Fisheye + Crucible (2.7.8) and using the Java service wrapper on Windows Server 2008R2 we can't connect to our Perforce server. We the suggested configuration here:  

http://confluence.atlassian.com/pages/viewpage.action?pageId=91554194\&focusedCommentId=163938551#comment-163938551  

And setup the Window Service to run under a domain user account.  

The error we receive is:  

Non-zero exit status determining latest revision: com.atlassian.utils.process.ProcessException:Non-zero exit code: 1 \| Access for user 'SYSTEM' has not been enabled by 'p4 protect'.  

Note: the Windows service is NOT running as SYSTEM.  

Everything works fine when we run the app from the command-line so this appears to be related to the Java service wrapper. Any ideas/help would be appreciated!


Answers:
author: James D
body: Upgrading to the latest version seems to have resolved the problem. We're able to sync with Perforce now. Some "tips".. don't include a trailing '/' on your p4 path or it will not work. Also just ignore any errors you receive.. Clunky, but at least we're syncing now...


author: Sam
body: I have this same issue. Did you ever work it out?
Is there a way to automatically optimize the indexes every day?
Asked by Micah Figone:

I find that fisheye performs better after we have restarted with optimizing indexes. Is there a way to trigger this automatically, preferably without restarting?


Answers:
author: Sergey Svishchev
body: There's no easy way to do this without restart -- perhaps you should open a feature request in [jira.atlassian.com](http://jira.atlassian.com).

It may be possible to optimize per-repository indexes without restarting whole instance, but you still need to stop the repository for that.


author: Felipe Kraemer
body: Hi Micah,

According to [this document](https://confluence.atlassian.com/display/FISHEYE/Updater) you can configure the polling interval to ***1d*** so FishEye will run the incremental indexing once per day.

Please let me know if this helps.

comments: author: Micah Figone
body: This talks about polling the repos for new changes... I am asking about the optimize index job that you can do upon restart.
SVN import and existing projects
Asked by Brian Beckham:

We are new to the ondemand products...we have a subversion repos with about 5GB of data, much of which is old and no longer relevant / needed.

Also, as I understand it, the name of the directory for a project within a repos much match a project name in jira studio to show up in the management tools.

If I import an SVN repos that does not have a corresponding project, do the files still import into SVN? If they do, can they be "attached" to projects at a later time?


Answers:
author: Brian Beckham
body: Ok, so if you import a repos, the directory in the repos must match a project key in ondemand. If it does not, the directory does not import at all, and it is not accessible in svn.


Tags: cloud

fisheye-crucible-svn-ondemand
unable to connect crucible to the Oracle database
Asked by Amit Pathak:

Getting the following error while trying to connect to Oracle database in crucible.

**The database is not using Unicode. Crucible requires that the database uses a UTF8 encoding to support internalization.**

and the following error is shown in logs -

**ERROR - Oracle is using collation 'WE8ISO8859P1'**


Answers:
author: Richard Gareau
body: Stop your instance of crucible

In the \<fisheye_home\>/config.xml

Insert this xml snippet just before the \<snippet/\> tag

---

\<database type="oracle"\>  
\<connection dialect="org.hibernate.dialect.Oracle10gDialect" driver="oracle.jdbc.driver.OracleDriver" jdbcurl=  
"jdbc:oracle:thin:@\<hostname\>:1521:\<orcl\>" password="\<password\>" username="\<userid\>" maxPoolSize="2  
0" minPoolSize="5" driverSource="bundled"/\>  
\</database\>

---

Change the values of the jdbcurl password username properties

Save and restart your instance. This won't migrate your data if you were previously using another database but it will allow you to install a brand new crucible instance using Oracle.


Tags: connection

encoding

oracle

utf
Warning in logs: Could not find the attribute '' in LDAP
Asked by Duane Mattos:

We get the following warning in our logs.

2011-12-06 10:58:01,957 WARN - Could not find the attribute '' in LDAP

2011-12-06 10:58:02,035 WARN - Could not find the attribute '' in LDAP

2011-12-06 10:58:02,117 WARN - Could not find the attribute '' in LDAP

2011-12-06 10:58:02,228 WARN - Could not find the attribute '' in LDAP

2011-12-06 10:58:02,302 WARN - Could not find the attribute '' in LDAP

Is it a known warning?

If so, are possible causes known?


Answers:
author: David Stevenson
body: One of your attributes in the \<ldap\> tag in the config.xml is set to ="". In my case it was the displayname-attr="". I use ActiveDirectory so my fix was displayname-attr="displayName".
Possible to set additional environment variables when using Fisheye wrapper?
Asked by Nicholas Holmes:

I have fisheye attempting to connect to a repository server from a ws2003 box.

When attempting to a Git repository I receive the message..
> Could not create directory 'h/.ssh'.

This is due to the enviroment variable HOME being set to "H:\\". It is not possible or practical for me to change this value globally on the machine. I am using the java service wrapper to run fisheye as a windows service.

My question is.. is it possible to specify a HOME value that would be unique to the wrapper and fisheye so that I can utilize a specific location. I understand that I can add values to the wrapper.conf but I cannot find any documentation or examples which apply to this situation.

Thanks


Answers:
author: Nicholas Holmes
body: I've honed in on some details of where I need some additional information.

wrapper.java.additional AND/OR wrapper.app.parameter seem to be where I should add something. Is there documentation on what is available? Can I add my FISHEYE_OPTS and HOME here also? And what about others?


Tags: git

windows

wrapper