youngmon/atlassian-qna huggingface dataset:
Error "error: 4944 bytes of body are still expected" during Cloning Branch
Asked by Kishorkumar:

I am trying to clone a branch from Git Repo (via Sourcetree) and its getting failed with below Error.

error: 4944 bytes of body are still expected  
fetch-pack: unexpected disconnect while reading sideband packet  
fatal: early EOF  
fatal: fetch-pack: invalid index-pack output

What could be the issue and how to fix it?


Answers:
author: Patrik S
body: Hey [@Kishorkumar](/t5/user/viewprofilepage/user-id/5513996) ,

and welcome to the Community!

To determine whether the issue is related to your Sourcetree configuration/setup, could you please try cloning directly from your terminal and confirm if the same error occurs?

You can use the following command to clone the repository:

* Using **HTTPS** :

  ```
  git clone https://USERNAME:APP_PASSWORD@bitbucket.org/WORKSPACE/REPOSITORY.git
  ```

  <br />

  OR   

* Using **SSH** :

  ```
  git clone git@bitbucket.org:WORKSPACE/REPOSITORY.git
  ```

  \* If using Windows, please run the clone on [Git Bash for Windows](https://gitforwindows.org/).

Thank you, [@Kishorkumar](/t5/user/viewprofilepage/user-id/5513996) !

Patrik S


Tags: bitbucket-cloud

cloud
Can I buy 50 Crucible licenses but only 10 Fisheye licenses?
Asked by Philip Blond?:

I am looking to buy Crucible for my teams. While all of the 40+ devs need access to the Crucible part of the tool. I only need the 5+ leads to have access to Fisheye.

Is it possible to combine these 2 license sets and still have the full experience for the 5+ team leads?


Answers:
author: Grzegorz Lewandowski
body: You can have different tiers licenses for Crucible and Fisheye, but when using Fisheye\&Crucible, Fisheye license must have an equal or greater number of users to be compatible with Crucible.

Any user who has permissions to access Crucible has permissions to access Fisheye as well. Any user who has access to Fisheye might not be permitted to use Crucible.

[More information](https://www.atlassian.com/licensing/crucible#serverlicenses-1)
Fisheye/Crucible List all users last log in date and time
Asked by Joshua Romine:

I know how to find how many licenses we have remaining for Fisheye / Crucible, however there is not a good way in the admin menu to find out when a user last logged into Fisheye / Crucible.

We use Crowd to manage the users access to the application, but I don't believe there is an easy way through Crowd to get a users last login through Fisheye / Crucible.

Is there a MSSQL script we can use to get a list of our FeCRU users, and their last login date and time?

This is helpful from a license management standpoint. Any help is appreciated.


Answers:
author: Felipe Kraemer
body: Hi [@Joshua Romine](/t5/user/viewprofilepage/user-id/1135433),

It is not clear which version of Fisheye and Crowd you use, but I have just connected a Fisheye 4.5.0 instance to a Crowd 3.1.1 instance, synced users from Crowd and logged in as one of the users synced.

Whenever a user that originates from Crowd logs into Fisheye, Fisheye updates the user details. This means that the information you are looking for is stored at cwd_user.updated_date.

Hopefully this SQL query helps:

```
select 
?? usr.id, 
?? usr.user_name, 
?? usr.display_name,
?? usr.updated_date AS "last_auth"
from 
?? cwd_user as usr, 
?? cwd_directory as dir
where 
?? usr.directory_id = dir.id
and 
?? dir.directory_type='CROWD'
order by
?? usr.updated_date DESC
```

Cheers,

Felipe Kraemer

comments: author: Divya Yathagiri Venkata
body: We don't use crowd, can you help me with the SQL query to get the list of users from db?


author: Felipe Kraemer
body: Hi [@Divya Yathagiri Venkata](/t5/user/viewprofilepage/user-id/1155267),

Can you please clarify which Fisheye / Crucible version you are currently running and what do you use instead of Crowd?

Do you manage users in Fisheye/Crucible itself, or do you retrieve users from either Jira or LDAP?
fisheye-api dependency
Asked by AbrahamA:

Hello

I am developing plugin for fisheye and the fisheye version I have is

Atlassian FishEye analysis (Version:4.4.1 Build:20170515065843 2017-05-15)

If I have fecru.version as 4.4.1 download from repo is failing to download when I enter command atlas-run.

I saw this version 4.0.4-20160506105158 as latest at <https://mvnrepository.com/artifact/com.atlassian.fisheye/atlassian-fisheye-api/4.0.4-20160506105158>

and I am using this..

\<properties\>  
\<fecru.version\>4.0.4-20160506105158\</fecru.version\>  
\<fecru.data.version\>4.0.4-20160506105158\</fecru.data.version\>  
\<amps.version\>6.2.11\</amps.version\>  
\<plugin.testrunner.version\>1.2.3\</plugin.testrunner.version\>  
\<atlassian.spring.scanner.version\>1.2.13\</atlassian.spring.scanner.version\>  
\<!-- This key is used to keep the consistency between the key in atlassian-plugin.xml and the key to generate bundle. --\>  
\<atlassian.plugin.key\>${project.groupId}.${project.artifactId}\</atlassian.plugin.key\>  
\</properties\>

Is it ok, per my understanding we should have fecru.version same as fisheye version to which we are targetting this plugin.

Please let me know which version of fecru to use and where to download from..

Thanks

Abe


Answers:
author: Mark A_
body: Hey Abe,

Yes, the two should match so that the data.version downloads the appropriate dependencies for that FeCru version.

What error are you receiving specifically when attempting to download?

Outside of permanently changing the version of the application as you see in your pom.xml you can run a specific version by using the command:

```
atlas-run -v 4.4.1

atlas-run --version 4.4.1
```

If you simply execute atlas-run, it will retrieve the latest release of Fisheye which is 4.5.1. You can view more about our maven repositories here - [Working with Maven Repositories](https://developer.atlassian.com/docs/advanced-topics/working-with-maven#WorkingwithMaven-AtlassianMavenRepositories)

-Mark
crucible review completion
Asked by kiran jonnalagadda:

We have noticed that anytime there is a comment update or a code modification to something in a crucible review, then all completed members of that review have their status changed to uncompleted and the percentage reviewed reduced based on the new un-read comments and updated code. Is there a way to disable this feature as we are now using this to track whom has reviewed the code and when the review was completed and this affects the overall view. It can still be determined by going into the Activity log, but is not readily viewable from the overview level.


Answers:
author: AnnWorley
body: Hi! I noticed you have a support ticket open for this issue. That will allow the support engineer to take a deeper look than we can here.

Please circle back with this thread when you find the answer so others can benefit.

comments: author: Idan Dediashvily
body: Hi is there any solution for this?
I am unable to download latest 4.5.1 Crucible.
Asked by Mykola Vshyvkov:

I am unable to download latest 4.5.1 Crucible.

Link: <https://product-downloads.atlassian.com/software/crucible/downloads/atlassian-crucible-4.5.1-x64.exe>

Result:

\<Error\>\<Code\>AccessDenied\</Code\>\<Message\>Access Denied\</Message\>\<RequestId\>BA607A53341A1269\</RequestId\>\<HostId\>JXdP5U9ER0MPSLdxea9yhwdutWnEe46b3vVDPulZqx2+xqOh8Wq7pkyXxd0shreGXj8lG7l8/Nk=\</HostId\>\</Error\>

Fix it please!


Answers:
author: pb
body: Confirming that this is reproducable; I'll escalate internally. Thanks for the report!

comments: author: Andy Heinzer
body: Hi,

Just wanted to let you know that our Crucible release team found a new problem because of this report and have since fixed this problem.

Thanks for posting this, that download appears to be working now.

Cheers,  
Andy
Unable to download latest distro of crucible 4.5.1
Asked by Mykola Vshyvkov:

<https://product-downloads.atlassian.com/software/crucible/downloads/atlassian-crucible-4.5.1-x64.exe>

Result:

\<Error\>\<Code\>AccessDenied\</Code\>\<Message\>Access Denied\</Message\>\<RequestId\>DECF2F804EF67AE0\</RequestId\>\<HostId\>eajwst65Jzpw0k9S65/EiHkZWOALCSn3o94aE7Mtu6HLmZXeNB78dyDpGLZGjMIafIyme7GrQIw=\</HostId\>\</Error\>


Answers:
author: Andy Heinzer
body: Hi Mykola,

Sorry there was a problem with this download. We have taken the steps to notify our release team of this problem. At this time the download link in question has been updated and is working.

Again sorry for the inconvenience, and thanks for reporting this.

Also this appears to be a duplicate of post of <https://community.atlassian.com/t5/Fisheye-Crucible-questions/I-am-unable-to-download-latest-4-5-1-Crucible/qaq-p/679244>

Andy
FishEye (4.5.0) installation not reading varfile responsefile
Asked by IB PaaS:

Hi,  

We are trying to automatically install FishEye, using the -varfile option, but it doesn't seem to pick up the options in the response file.  

When I run the installer manually but with the varfile option, it does pick up the 'custom install' option, but the installation paths are set to the defaults.

This is our responsefile (copied from the .install4j folder):  

#install4j response file for FishEye 4.5.0  
#Wed Nov 22 12:27:11 CET 2017  
fisheye.inst.dir=d\\:\\\\data\\\\fecru  
options.installType=custom  
sys.languageId=en  
sys.programGroupName=FishEye  
sys.adminRights$Boolean=true  
sys.installationDir=d\\:\\\\app\\\\fecru  

<br />

Are we doing something wrong, or is this a bug in the installer?  


Answers:
author: Felipe Kraemer
body: Hello [@IB PaaS](/t5/user/viewprofilepage/user-id/876921),

The document [Installing FishEye on Windows](https://confluence.atlassian.com/fisheye/installing-fisheye-on-windows-298976960.html) does not mention the possibility of automating Fisheye installation by using the -varfile option, so the installer is most likely not expecting that, and that explains why it is not picking the settings you're specifying.

Please use the GUI instead for installing Fisheye on Windows.


Tags: install
Is there an API call to update the source under review with new commits?
Asked by crbreingan:

I have created a review that is based on a branch from my BitBucket server, but when new commits get added to the branch, the source in the review doesn't update. I have turned on the Auto Update feature, but it doesn't seem to be catching the new commits during the reindex ever 60 seconds. I have to click the "Update now" link on the branch in the review.

I would like to create a hook that automatically does this for me when the branch is changed, but I can't find any REST API calls to make this happen. I have tried [repositories-v1/{repository}/reindex-reviews](https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories-v1:repository:reindex-reviews) and [repositories-v1/{repository}/scan](https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories-v1:repository:scan) to no avail. Both returned success, but it didn't change the review.


Answers:
author: Marek Parfianowicz
body: Can you confirm that FishEye completed indexing of the new commits and that you can see them when browsing repository?

I am asking because not having the code review updated automatically when the 'Auto Update' is enabled seems more like a bug. And the REST API is rather obsolete - i.e. simply the bug should be solved.

comments: author: Charles Breingan
body: I can confirm that the indexing had been completed and the changes were visible.

We have a script which automatically creates the review for each pull request, and it uses an undocumented API call to add the branch to the review. So I'm wondering if that has anything to do with it. It shows up correctly and auto-update is turned on when I view the review. So I was hoping for a way to force it to update by adding a hook to the BitBucket pull request process for new commits.


author: crbreingan
body: I can confirm that the indexing had been completed and the changes were visible.

We have a script which automatically creates the review for each pull request, and it uses an undocumented API call to add the branch to the review. So I'm wondering if that has anything to do with it. It shows up correctly and auto-update is turned on when I view the review. So I was hoping for a way to force it to update by adding a hook to the BitBucket pull request process for new commits
Admin user
Asked by Ola Gerlovin:

We have a Small team license. How can we add an admin user besides the 5 users that use FishEye? Thank you.


Answers:
author: Jeremy M
body: Dear Ola,

Please see detailed answer below by Atlassian :-).

Friendly Regards,

Jeremy

comments: author: Grzegorz Lewandowski
body: Hey, what [@Jeremy M](/t5/user/viewprofilepage/user-id/1103672) wrote is true, however FishEye\&Crucible instance supports an Admin Principal workflow. Where, while having 5 uses license you can't have 5+1, you still can use this Admin Principal.

You can *log in* as SuperAdmin by going to _FISHEYE_URL_/admin, you'll be asked for a password. The password was setup during Fecru setup and its hash is stored in *config.xml*file.

More information [here](https://confluence.atlassian.com/fisheye/administering-fisheye-298976817.html).

If forgot the password, [here's](https://confluence.atlassian.com/fisheye/how-to-reset-the-administration-page-password-in-fisheye-or-crucible-298977083.html) tutorial how to restore it.
chunked stream ended unexpectedly
Asked by Thomas Schneider:

We use **http protocol** with VisualSVN server and run into error messages saying '**chunked stream ended unexpectedly**'. Repositories scans are not up-to-date.

<https://confluence.atlassian.com/fishkb/svn-indexing-fails-due-to-chunked-stream-ended-unexpectedly-833913114.html> says **Configure the web server to avoid the connection from being interrupted** as resolution.

Does anyone know **which attributes to set in Apache**?


Answers:
author: Felipe Kraemer
body: Hello [@Thomas Schneider](/t5/user/viewprofilepage/user-id/598986),

The error code for this message is usually:

```
svn: E175002: chunked stream ended unexpectedly
```

It looks like for fixing this issue you need to add ***allow from all*** in the SVN configuration on ***httpd.conf***.

In Apache 2.2 it should be something like this:

```
<Directory /repos>
...
allow from all
</Directory>
```

In Apache 2.4 it should be something like this:

```
<Directory /repos>
...
require all granted
...
</Directory>
```

Please remember to restart your Subversion service so that these changes in ***httpd.conf*** can be picked.

Please let me know if this helps!

Cheers,

Felipe
What does the red lock in iteration bar indicate
Asked by Harke Bahadur:

I have notice a red lock on the iteration bar after some file uploads. What does is mean?

![red_lock_iteration.PNG](/t5/image/serverpage/image-id/9047i962D4C7C0B864351/image-size/large?v=v2&px=999 "red_lock_iteration.PNG")


Answers:
author: Grzegorz Lewandowski
body: It means your patch was anchored to given file revision. This allows for iterative pre commit reviews and full file context.

More information available [here](https://confluence.atlassian.com/crucible/creating-patch-files-for-pre-commit-reviews-298977458.html#Creatingpatchfilesforpre-commitreviews-UsingCruciblepatchanchoringtoautomaticallyaddfullcontext).
Is there a way to create a review for all commits instead of just 20 commits?
Asked by Derek Powell:

I have detailed in the ticket what I'm talking about, is there a way to create a review for all commits instead of just 20?

Thanks,

Derek![screenshot.jpg](/t5/image/serverpage/image-id/8549iAE2BFB9280657825/image-size/large?v=v2&px=999 "screenshot.jpg")


Answers:
author: Felipe Kraemer
body: Hello [@Derek Powell](/t5/user/viewprofilepage/user-id/326963),

Before I can help you, can you please clarify which versions of Jira and Fisheye you are running? This way I can try replicating the scenario and see how to do what you need.

Cheers!

Felipe

comments: author: Derek Powell
body: JIRA 6.1

[FishEye analysis](http://www.atlassian.com/software/fisheye/)with [Crucible code review](http://www.atlassian.com/software/crucible/). (Version:3.2.0 Build:20131126215459 2013-11-27)


author: Felipe Kraemer
body: Hello [@Derek Powell](/t5/user/viewprofilepage/user-id/326963),

I have replicated your scenario locally by having JIRA 6.1.x integrated with Fisheye 3.2.x through Application Links, using OAuth as authentication method for both Incoming and Outgoing authentication in both products, having more than 20 commits in a repository, and the Source tab in the JIRA issue showing "Create review for all **20** commits".

What happens here is that, even though there are more than 20 commits whose messages contain that Jira issue key, by default only the 20 most recent commits are displayed in the Source tab.

You can change how many commits get displayed in the Source tab by going to *++Jira Administration++ \> ++Add-ons++ \> ++FishEye Configuration++* (under ++*Source Control*++ ) and, in ++*Global Configuration*++ section, click the ++*Edit*++ button, then under ++*Display options*++ , increase the value of the ++*Max commits / Issue*++ setting, then click the ++*Update*++ button.

After increasing this setting and refreshing the Jira issue, the button in the Source tab showed "Create review for all **22** commits".

I hope this helps!


Tags: jira-software
FishEye won't load after migrating the database to PostGreSQL
Asked by Marijus Sugajevas:

Configured FishEye, linked to SVN, linked to Jira, all done.

Fisheye complained that DB should not be used for production.

Started migration to PostgreSQL: Connection tested fine, migration was successful, followed with 500 error. Restarted Fisheye - doesn't load at all.

Restarted Server (10min wait) - still same issue.

Removed FishEye, removed database, created new DB, re-installed FishEye, repeated process - same situation - website doesn't load

FishEye: 4.5.0; PostgreSQL: 10

Jira(8080), FishEye(8060) and PostgreSQL are hosted on the same server.

db:fisheyedb, with user jiradbuser with full rights.


Answers:
author: Douglas Gnoato
body: Hey Marijus.

Looking at your description of the issue, we couldn't help but noticing that you're running PostgreSQL 10 and this may be the root cause of the issue.

The reason why it might be the root cause is that, at this moment Fisheye/Crucible 4.5.0 does not support PostgreSQL 10. You can check all the supported versions of PostgreSQL on the link below

- [Fisheye/Crucible 4.5.0 Supported platforms](https://confluence.atlassian.com/fisheye/supported-platforms-298976955.html "Fisheye/Crucible 4.5.0 Supported platforms")

We'd recomend you installing one of the versions listed there and try and migrate it.

Cheers,

Douglas Gnoato
How can I limit the revisions on a branch review for most current commits?
Asked by bidorbuy tech:

We have a new branch "development" in an Bitbucket repository, but can not add the whole branch for review as this would require raising the "crucible.review.content.size.limit" to probably 5000 files.

I have now used EyeQL to limit the revisions:

```
select revisions from dir "/" where (is head and date >= 2017-10-20T23:59:59.00Z) and (path not like ".png" and path not like ".zip") group by changeset return path, revision, author, date, csid
```

the problem with this is that any new commits are not automatically added and I would have to click "Add Content" and run the advanced EyeQL query again.

Isn't there a better way to have a branch review and monitor be able to have the most recent changes added for review without manually adding revisions?


Answers:
author: TheOtherAaron
body: Hi,

When selecting individual changesets for a review in Crucible, Crucible is not able to automatically update the review when changes to files in the review occur.

There is also no "partial branch" option which will automatically add new changesets to a review when they are added to the branch. This feature is only available when you choose to review a complete branch.

You do not need to re-run your EyeQL query to find new changesets to add to your review. You can simply choose the "Browse Changesets" option and select your new changesets to add there.
Crucible REST API: rest-service-fecru/user-prefs-v1 request body
Asked by Anthony Zepeda:

Hi,

I'm trying to set the watch email user preference using the REST API. It seems I can use the call documented here: <https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:user-prefs-v1>

However, the request representation in the docs is empty, so I don't know how to form the POST request.

From /rest-service/users-v1/user, I get the following XML:

```
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<restUserProfileData>
  <avatarUrl>https://host/avatar/user?s=48</avatarUrl>
  <email>user@domain</email>
  <mappedCommitters/>
  <preferences>
    <elements value="instant" key="watchMode"/>
    <elements value="30" key="changesetsPerPage"/>
    <elements value="UTF-8" key="uploadcharset"/>
    <elements value="5" key="maxFilesPerChangeset"/>
    <elements value="51235" key="ideConnectorPort"/>
    <elements value="3" key="context"/>
    <elements value="patch" key="uploadtype"/>
    <elements value="8" key="tabWidth"/>
    <elements value="html" key="emailFormat"/>
    <elements value="true" key="enableIde"/>
    <elements value="file" key="uploadmethod"/>
  </preferences>
  <timeZone>
    <name>PST8PDT</name>
    <rawOffset>-28800000</rawOffset>
  </timeZone>
  <userData>
    <avatarUrl>https://host/avatar/user?s=48</avatarUrl>
    <displayName>Last, First</displayName>
    <userName>user</userName>
  </userData>
</restUserProfileData>
```

So I've tried using the following JSON:

```
{
 "elements" : [{
 "key": "watchMode",
 "value": "daily"
 }]
}??
```

As well as a few others. These all fail, I get the following response:

```
{
 "code": "UnrecognizedProperty",
 "message": "Unrecognized field \"elements\" (Class com.atlassian.fecrurestplugin.common.RestUserPrefService$UserPref), not marked as ignorable\n at [Source: org.eclipse.jetty.server.HttpInput@1a6f2dc2; line: 2, column: 16] (through reference chain: com.atlassian.fecrurestplugin.common.UserPref[\"elements\"])"
}?
```

Does anyone know the proper way to form this request?


Answers:
author: Caterina Curti
body: Hi [@Anthony Zepeda](/t5/user/viewprofilepage/user-id/1159172),

The <https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:user-prefs-v1> REST API endpoint helps in setting various preferences. Including, for example, the "Highlight one in the [Commit Graph](https://confluence.atlassian.com/fisheye/viewing-the-commit-graph-for-a-repository-298976801.html) tab. This can be achieved by setting the visualisation.highlight property.

There is no available endpoint that provides the ability to set the "Send Watch Emails" in the users' profiles. This can only be changed directly by the user in the profile section.

Thanks, Caterina - Atlassian


Tags: rest-api