youngmon/atlassian-qna huggingface dataset:
Jira integration in crucible error we are receiving
Asked by Derek Eye:

We are currently trying to integrate jira with crucible, and when creating the application link as a trusted application we receive this as an error:

2013-04-11 08:06:05,968 WARN \[btpool0-101 \] com.atlassian.fisheye.trustedapplications.FisheyeAuthenticationListener com.atlassian.fisheye.trustedapplications.FisheyeAuthenticationListener-authenticationFailure - Failed trusted applications authentication attempt:APP_UNKNOWN; Unknown Application: {0}; \["jira:10135695"\]

if we don't set it up as a trusted application, it doesn't throw an error in the logs, but we also cannot get anything to link between jira and confluence.

Any suggestions?

Derek


Answers:
author: Derek Eye
body: Figured it out. We needed to link the projects from jira to the actual code projects within crucible.


author: Derek Eye
body: answer above
Using the Crucible API to add files to a review
Asked by GLENN MAYER:

I'm writing a script to pull changed files from Perforce and add them to a review in Crucible. I've looked at the API docs, but for the addFile call, the docs don't specify what the content (XML) of the request should look like. For instance, in the addChangeset call (which I have used), the docs specify that the XML request uses an \<addChangeset\> block, with a \<changesets\> and then \<changesetData\> nodes for each changeset. I don't see anything giving that level of detail for the addFile call. Can someone provide more detail on the required XML content for an addFile call? Thanks.

p.s., this is the documentation I've been looking at: <http://docs.atlassian.com/fisheye-crucible/latest/wadl/crucible.html#d2e2178>


Answers:
author: rverschoor
body: The documentation mentions that this call does't expect an XML document with embedded files.  
Instead it uses multipart form data encoding to receive the file.

Using cURL it looks like this:

```
curl --user rene:password -F file="@killerapp.cpp" -X POST http://localhost:8060/rest-service/reviews-v1/CR-123/addFile
```

comments: author: GLENN MAYER
body: Sorry it took me so long to get back to this. Your answer was helpful. What I would like to do is add 2 versions of the same file to a review (like a fromPath and toPath). It seems that, to do this, I would need the 2 files on a local file system, from which I could upload them to Crucible via the HTTP request. I guess I was looking for a way to do that from my source control system (perforce) rather than from my local file system. I know I can use the Crucible UI, but I wanted to automate it.


author: Vivek Dwivedi
body: Using the cURL command I got the following error:

\<?xml version="1.0" encoding="UTF-8" standalone="yes"?\>\<error\>\<code\>IllegalArgument\</code\>\<message\>fileToReview cannot be be null\</message\>\</error\>

I had gotten the same error while trying to test the API using Postman.

How could this be resolved?
Does Crucible support default text for reviews under general comments?
Asked by Luis Quintero:

For code reviews.

Is it possible to set General Comments or other sections wth in the tool that would remind a user to ensure check lists are meet for each review that is created.? We may want point to best practices form the review or ensure that certain items get checked before a review proceeds. Can this be tailored on a project by project.


Answers:
author: Renjith Pillai
body: Yes. The default text can be updated in administration <https://confluence.atlassian.com/plugins/servlet/mobile#content/view/298977545>
Open files in FishEye from Intellij IDEA
Asked by Michel Lazarenko:

I've just installed Atlassian plugin and tried to open a file using "Open File in FishEye" function and it failed.

The link generated was very incorrect:

<http://dev02:8060/browse/nn/Perforce/depot/product/nn/dev/001/root/code/platform/modules/beaninfoservice/src/com/odysseylogistics/platform/beaninfoservice/intf/model/vo/gl/coding/setup/freightinvoice/FreightInvoiceGLCodingValidationRuleBuilder.java?r=2#to27>

instead of

<http://dev02:8060/browse/nn/product/nn/dev/001/root/code/platform/modules/beaninfoservice/src/com/odysseylogistics/platform/beaninfoservice/intf/model/vo/gl/coding/setup/freightinvoice/FreightInvoiceGLCodingValidationRuleBuilder.java?r=2#to27>

In addition an attempt to open file in IDEA from within FishEye also failed.

It passed

[product/nn/dev/001/root/code/platform/modules/beaninfoservice/src/com/odysseylogistics/platform/beaninfoservice/intf/model/vo/gl/coding/setup/freightinvoice/FreightInvoiceGLCodingValidationRuleBuilder.java](http://dev02:8060/browse/nn/product/nn/dev/001/root/code/platform/modules/beaninfoservice/src/com/odysseylogistics/platform/beaninfoservice/intf/model/vo/gl/coding/setup/freightinvoice/FreightInvoiceGLCodingValidationRuleBuilder.java?r=2#to27)

instead of

[root/code/platform/modules/beaninfoservice/src/com/odysseylogistics/platform/beaninfoservice/intf/model/vo/gl/coding/setup/freightinvoice/FreightInvoiceGLCodingValidationRuleBuilder.java](http://dev02:8060/browse/nn/product/nn/dev/001/root/code/platform/modules/beaninfoservice/src/com/odysseylogistics/platform/beaninfoservice/intf/model/vo/gl/coding/setup/freightinvoice/FreightInvoiceGLCodingValidationRuleBuilder.java?r=2#to27)

I suppose the problem is that my source dir is not under IDEA's project dir.

FishEye prohect dir in IDEA is set to "product/nn/dev/001"

Source dir is C:/Perforce/depot

Perforce path is "//depot/product/nn/dev/001/..."

"nn" is FishEye repository mapped to "//depot".

Please suggest how I can fix the link generation?


Answers:
author: Michel Lazarenko
body: Yes sure I did configure it according to the installation guide.

Ok, so it will not work for me. The plugin deinstalled.


author: Felipe Kraemer
body: Hi Michael,

I can see the difference between the two first URLS. The first and wrong one has an extra "/Perforce/depot/" in the URL.

I'm not sure how to fix this, though. Can you take a look at your IntelliJ Connector configuration and check if it's according to [this document](https://confluence.atlassian.com/display/IDEPLUGIN/Configuring+the+IntelliJ+Connector#ConfiguringtheIntelliJConnector-ConfiguringyourCrucibleServerConnections)?

comments: author: Michel Lazarenko
body: Is the plugin in betas testing so far?

It looks so rough. For example, password request on each Idea start was so annoying.
How can I measure code churn in a repository
Asked by David Keaveny:

Is it possible to report on code churn in a repository managed by Fisheye? I can see the net LOC change for a week, but would like a bit more granularity e.g. lines added/changed/deleted.


Answers:
author: Stan B
body: You may want to check this out <http://stanbashtavenko.com/bitbucket-code-churn-loader/>
Distributed servers with Crucible (license and schema)
Asked by Jorge Valdeiglesias:

Hi, we are thinking on setting up an other Crucible server in an other location to avoid latency problems. My question is, do we have to purchase an other license for this new server? (we have the 100+ user one)

And an other thing, is there any recommended schema for distributed servers? I mean, can we make both servers work as one and that be transparent to users or they will work as 2 different servers?


Answers:
author: Conor
body: There are no current plans to support clustering of FishEye or Crucible.


author: Jorge Valdeiglesias
body: True, but I see the status = closed and resolution = won't fix. Does that mean it won't be implemented? (I ask because it's an old question from 4 years ago)


author: Janet Albion
body: Hi Jorge,

If you have 2 separate instance running at the same time, you would require two different license.

Back to the distributing the instance, there is feature request for this at <https://jira.atlassian.com/browse/FE-937>

For Failover, you might want to borrow some idea from <https://confluence.atlassian.com/display/ATLAS/Failover+for+JIRA>


Tags: licence
Configuring Fisheye+Crucible for Subversion with SSH authentication
Asked by Mike Hedman:

Hi,

On this page: <https://confluence.atlassian.com/display/FISHEYE/Authentication>

*"When using the bundled svnkit library, these are typically configured using Java property definitions."*

I'm hoping someone can point me to a page that describes this process. We have not yet been able to connect to our repository (which uses the svn+ssh protocol).

Thanks,

Mike


Answers:
author: Daniel R
body: Hello Mike,

We have an open feature request to create documentation for this. Find the necessary info on the feature request itself:

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

Thank you


Tags: atlassian-support
Fisheye and gerrit to Stash
Asked by Amit Rotti:

Hi,

We have already setup done, hosted Git repo's through **Gerrit** and **Fisheye** used for indexing \& code browse with Crucible as review tool.

Now, oraganisation planned to move to **Stash** because of it's extensive features. I need to know the **best way** to migrate all the Git repo's from Gerrit and Fisheye to Stash. Is any tool need to be use to achieve this? or is Atlassian have any plugin to complete this.


Answers:
author: cofarrell
body: Hi Amit,

It really depends on how many repositories you have. Being a distributed version control, with Git you can simply clone your repository locally from Gerrit/Fisheye, and then push back to Stash. The fact that you're migrating from a non-Atlassian tool to an Atlassian tool shouldn't matter.

If you have more than 10-20 repositories this might become a little tedious, at which point I would probably write a script that reads all your repositories from either [Gerrit](https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#list-projects) or [Fisheye](https://developer.atlassian.com/display/FECRUDEV/REST+API+Guide), creates corresponding repositories in [Stash](https://developer.atlassian.com/stash/docs/latest/reference/rest-api.html) and does the clone/push automatically.

Cheers,

Charles

comments: author: Amit Rotti
body: Thanks Charles.


author: Amit Rotti
body: Most of repositories are in **Gerrit** and as it is **Non-Atlassian** tool, how difficult to move the repo's from **Non-Atlassian** to **Atlassian** tool.


Tags: bitbucket-server
Favorite URL cannot exceed 256 characters?
Asked by Lucas Molenaar:

I am in the process of creating a LOC chart in Fisheye and try to limit the scope by filtering on specific filetypes. As a result the file types to include are appended to the URL and the total characters are quickly exceeding the 256 characters. As a result the error below is displayed when trying to save the graph as a favorite. The graph itself is rendered and can be displayed, it is simply not possible to add it to the favorites list.

Is there another way to easily pull LOC metrics from the various trunk directories for only specific file types? Perhaps using an API call? The entire process should be repeatable without to much effort.

```
Example URL:http://1.1.1.1/fisheye/chart/~br=trunk,charttype=Pie,stacktype=Subdirectory,extn=__NO_EXTENSION__,extn=.MSI,extn=.Sql,extn=.Uml,extn=.bat,extn=.cab,extn=.config,extn=.cpp,extn=.cs,extn=.csproj,extn=.datasource,extn=.def,extn=.dsp,extn=.dsw,extn=.filters,extn=.h,extn=.ico,extn=.idl,extn=.lib,extn=.log,extn=.manifest,extn=.odl,extn=.pdb,extn=.pl,extn=.properties,extn=.rc,extn=.rc2,extn=.reg,extn=.resx,extn=.rgs,extn=.settings,extn=.sln,extn=.sql,extn=.svcinfo,extn=.svcmap,extn=.txt,extn=.user,extn=.vcproj,extn=.vcxproj,extn=.vdproj,extn=.wsdl,extn=.xaml,extn=.xml,extn=.xsd/SVNLOCATION?PATHErrorThe value '~br=trunk,charttype=Pie,stacktype=Subdirectory,extn=__NO_EXTENSION__,extn=.MSI,extn=.Sql,extn=.Uml,extn=.bat,extn=.cab,extn=.config,extn=.cpp,extn=.cs,extn=.csproj,extn=.datasource,extn=.def,extn=.dsp,extn=.dsw,extn=.filters,extn=.h,extn=.ico,extn=.idl,extn=.lib,extn=.log,extn=.manifest,extn=.odl,extn=.pdb,extn=.pl,extn=.properties,extn=.rc,extn=.rc2,extn=.reg,extn=.resx,extn=.rgs,extn=.settings,extn=.sln,extn=.sql,extn=.svcinfo,extn=.svcmap,extn=.txt,extn=.user,extn=.vcproj,extn=.vcxproj,extn=.vdproj,extn=.wsdl,extn=.xaml,extn=.xml,extn=.xsd' for the property 'stringKey3' is too long. It should have a maximum length of 255You are running release CR2.4.2 FE2.4.2 (20101111000638 2010-11-11), please report your release number when reporting bugs.
```


Answers:
author: CelsoA
body: Hi Lucas,

Unfortunately this is a browser limitation.

The only workaround I can imagine for it is to use an url shortener to use this filters directly.

Regards,


Tags: pie-chart
MD5 mismatch
Asked by Tim Byrne:

The MD5 sum reported by <http://www.atlassian.com/software/crucible/downloads/binary/crucible-2.10.4.zip.md5> does not match the MD5 sum I calculate from the file hosted at <http://www.atlassian.com/software/crucible/downloads/binary/crucible-2.10.4.zip>.

Should I be concerned?


Answers:
author: lpater
body: Hi all,

it seems that our CDN has erroneously cached an earlier version of the release, causing some downloads to get that one and see the md5 mismatch. This should now be fixed and you should be able to download the matching release and md5 files.

The md5 checksums for the 2.10.4 release are:

```
f3827a01f04dcb72a83e61350cf1ba3c  crucible-2.10.4.zip5a3fd2ce25193349e87de5d4f0331354  fisheye-2.10.4.zip
```


author: Tim Byrne
body: According to Atlassian, the correct MD5 sum is f3827a01f04dcb72a83e61350cf1ba3c. However, when you request the .md5 file, you may get an incorrect MD5 returned (ending in "dd9"). I suspect this isn't something that is going to be fixed.

EDIT: Atlassian cleared the cache.


author: rverschoor
body: I've downloaded the zip and verified its MD5 matches the posted MD5:

```
[Downloads] $ openssl md5 crucible-2.10.4.zipMD5(crucible-2.10.4.zip)= f3827a01f04dcb72a83e61350cf1ba3c[Downloads] $ cat crucible-2.10.4.zip.md5 f3827a01f04dcb72a83e61350cf1ba3c crucible-2.10.4.zip
```

comments: author: Tim Byrne
body: OK, there must be some sort of caching going on. I just downloaded again, from multiple locations, and I find this content inside the MD5 file:  

$ GET <http://www.atlassian.com/software/crucible/downloads/binary/crucible-2.10.4.zip.md5>

d87ff34533a7debd18f4c63eedb2edd9 crucible-2.10.4.zip


author: Tim Byrne
body: Yes, I think Atlassian's CDN is doing some caching. From our UK office, I can query the MD5 sum file, and it has the correct checksum. However, from Chicago I get the one ending in "dd9".


author: CelsoA
body: Hi Tim,

Please download it again the md5 signature is correct.

The md5sum for this file is f3827a01f04dcb72a83e61350cf1ba3c.

Regards.

comments: author: Tim Byrne
body: Uh? When I request the MD5 sum file, it reports a different checksum:  

$ GET <http://www.atlassian.com/software/crucible/downloads/binary/crucible-2.10.4.zip.md5>

d87ff34533a7debd18f4c63eedb2edd9 crucible-2.10.4.zip

I agree that the checksum you listed in your answer is the checksum of the file I've downloaded. But it doesn't match the file posted for verifying the checksum.

EDIT:To be clear; these don't agree

![](http://i.imgur.com/B1kqOpe.png)


Tags: md5
Source tree won't start properly, something badly broken...
Asked by Ken Loughery:

Source tree will open briefly, show some accounts (that are actually deleted online), and then stop working completely. No crash or error message on the computer. I have completely deleted the \\AppData\\Local\\Atlassian\\SourceTree folder, un-installed and re-installed source tree several times, un-installed git bash to have source tree reinstall it, all with the same outcome. There is no passwrds file to be deleted, I'm not sure where source tree is getting the user information from; it seems to keep finding it. Here is the censored log file of when it opens, it is always the same between attempts \& installs. Any help would be greatly appreciated!!!

2020-06-30T13:32:18: LogHost: Initializing to normal mode  
2020-06-30T13:32:19: LogHost: SuppressChangeNotifications was called (perhaps via AddRange), yet you do not  
2020-06-30T13:32:19: LogHost: have a subscription to ShouldReset. This probably isn't what you want, as ItemsAdded  
2020-06-30T13:32:19: LogHost: and friends will appear to 'miss' items  
2020-06-30T13:32:19: Could not obtain git dir, C:\\Users\\USERNAME\\AppData\\Local\\SourceTree\\app-3.3.9 is not a git repo.  
2020-06-30T13:32:19: Could not obtain git dir, C:\\Users\\USERNAME\\AppData\\Local\\SourceTree is not a git repo.  
2020-06-30T13:32:19: Could not obtain git dir, C:\\Users\\USERNAME\\AppData\\Local is not a git repo.  
2020-06-30T13:32:19: Could not obtain git dir, C:\\Users\\USERNAME\\AppData is not a git repo.  
2020-06-30T13:32:19: Could not obtain git dir, C:\\Users\\USERNAMEis not a git repo.  
2020-06-30T13:32:19: Could not obtain git dir, C:\\Users is not a git repo.  
2020-06-30T13:32:19: Could not obtain git dir, C:\\ is not a git repo.  
2020-06-30T13:32:20: VaultClient::ReadCredentials


Answers:
author: Roberto Damiani
body: Same here.

I cannot neither go back to 3.3.8, it does not start.  
Same mistery on the accounts credentials.

Totally broken, cannot work anymore.

comments: author: Jouke Verstappen
body: Same here


author: daviddg10
body: Uninstall and reinstall 3.3.6 version after select "log in with bitbucket account"

it works for me

sorry for my english. jeje

<https://www.sourcetreeapp.com/download-archives>
Cant login with my atlassian Account
Asked by Alexander Puchinger:

I have already connected Sourcetree with my Atlassian Account on which two of my repositories are located. From time to time Sourcetree prompts me to type in my Atlassian credentials to verify that I am me. Since the last time this happend Sourcetree does not accept my Atlassian credentials anymore. Even after changing my Atlassian password I'm still not able to connect. Is this a well known issue or am I the only one facing it?  

Regards


Answers:
author: Kerry Hoisington
body: I am having the same issue
Quickly Compare local commits and Remote commits
Asked by Gen_Li:

When I use Git by Git Bash,

I normally always log in to my Bitbucket, go to the repository on the web, have a look at commits history.

And then I'd like to have a look at my local git commits using "Git Log".

By comparing them, I can have a general idea of how behind or how advanced my local compared to the remote.

This information can give me more confidence before I proceed to do any commit, push, or pull operation.

++Is there a quick way in Source Tree to do the above operation? Or I still need to go to the web to check the remote commits and compare that to "History" in the SourceTree?++


Answers:
author: Mehmet A _Bloompeak_
body: hi [@Gen_Li](/t5/user/viewprofilepage/user-id/3079946) ,

Why don't you use the command line, the [*git status*](https://www.atlassian.com/git/tutorials/inspecting-a-repository) command?

```
? my-project: git status
On branch master
Your branch is behind 'origin/master' by 2 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)

nothing to commit, working tree clean
```

comments: author: Gen_Li
body: Hi there,

I use git status to get information about the difference between my current working files and the latest local commit. But I am looking for a way to compare the local commit and remote commit in source tree GUI.

Sometimes I work on my local code slowly, let say about 1 month, and during this time, I never pull. Meanwhile, there're lots of things that happened on the remote side. People have pushed several commits to it. In this scenario, I always manually go online and have a look at the remote commits, then I can decide whether should I pull directly or do a stash or do a reset..etc.

Maybe I am doing a bad practice then.. But that's why I am asking the question tho


author: Gen_Li
body: But you are right, git status always gives you enough information through...... I was just want to have a look at the commits in detail.
v4.0.1 Can't use system hg v5.4.1
Asked by MyRemoteProjects:

I'm using Mercurial 5.4.1 (installed with HomeBrew) on Mac OSX 10.14.6 and I using SourceTree v4.0.1 and I can't get SourceTree to connect to /usr/local/bin/hg using Preferences-\>Mercurial-\>Use System Mercurial because the hg executable is grayed out and can't be selected.

Why?


Answers:
author: Jeffrey LeCours
body: I also ran into this.
Can't push from sourcetree to bitbucket
Asked by Natasha Williams:

Every time I try to get my changes to bitbucket I get an error.![Sourcetree error.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/99846iC923C5EB8AD4B6B9/image-size/large?v=v2&px=999 "Sourcetree error.PNG")


Answers:
author: Najjar _Innovura_
body: It seems that there are changes in bitbucket server and not available on your machine.

The error says "git pull" before pushing because the someone else has pushed new code to the remote server and currently you dont have the latest version locally on your machine.

So git pull and after integrating your new code with their new code you can push safely
Authentication failed
Asked by towhitecat:

I have added my Account to the Sourcetree and have green label Authentication OK. I'm able to see my remote repositores, but when I trying to clone one I have error: remote: Invalid username or password


Answers:
author: Ruslan Bondarev
body: Hello!

I've waste two evenings to fix it. Don't know what exactly helps me, but let's try next repro steps (something googled).  
So I've found this and make little improvements.

Make sure you have the same passwords and mail for Bitbucket, Atlassian ID, etc.

Just in case I've reset my pass.

1. Uninstall SourceTree

2. Delete folders C:\\Users\\\<your name\>\\AppData\\Local\\Atlassian and C:\\Users\\\<your name\>\\AppData\\Local\\SourceTree

3. Download the latest version from <https://www.sourcetreeapp.com/> and install it as "Bitbucket" (mine was v3.3.9)

4. Login with your account. In my case log inning was automatic. If it didn't happen, input yours. - !! **untick "Remember password**" !!

5. Clone your working directory by Bitbucket site link.

6. In CredentialHelperSelector choose \<no helper\> and tick "Always use"

7. Commit and Push again. Login again if asked.

8. Profit

No need to use SSH. I used HTTPS

Maybe some steps are unnecessary like "tick/untick" but it makes the system check your info.

Hope it works :) Good luck!
SourceTree detects file difference wrongly in random
Asked by Zhou Peggy:

Hi

I have a problem when using sourceTree recently.

When I clone a repository and switch to develop branch. I see SourceTree detects a lot of difference as follows. I can not understand why it will happen?

![detect difference wrongly.png](https://community.atlassian.com/t5/image/serverpage/image-id/99590i4EB650E0232F6D68/image-dimensions/481x233?v=v2 "detect difference wrongly.png")


Answers:
author: Alexander Sorg
body: It could be that changes in white space are detected, which are not visible to the plain eye.

Try selecting "ignore whitespace" on the tools (gear wheel) menu in the upper right corner of your screenshot. If the changes disappear, it's maybe a change from tabs to spaces or vice versa.

Hth,

Alexander

comments: author: Zhou Peggy
body: Hi Alexander?

Thanks for the reply.

The strange thing is I just clone a repository and did not do anything. Then it seems the two files are changed automatically. Not sure why.

And even i click "Discard", it cannot restore. It is always changed automatically.

Thanks,

Tingting.