youngmon/atlassian-qna huggingface dataset:
Problems upgrading Crucible without a new FishEye license: how do I "re-index"?
Asked by Topher Eliot:

Due to the vagueries of personnel coming and going at my employer, we purchased licenses for Crucible and Fisheye a few years ago, created an installation, and then didn't use them. We recently purchased a new Crucible (but not FishEye) license. Per the instructions in the Atlassian documentation, I put "Disabled" where I would otherwise have put the FishEye license. Crucible is then supposed to work using some sort of minimalist FishEye replacement.

I downloaded and installed the newest Crucible / FishEye package. After I figured out how to get Windows Services to use the new package (it didn't happen automatically ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad") ) I logged in, and found that it was saying that both my repositories were "stopped". When I try to start them, I get the message

Failed to start repository xxx: Problem loading repository 'xxx' - Current repository index for "xxx" is not compatible with your license, please re-index.

Ok, whatever. Except that I can't figure out how to re-index, and can't find anything about it in any Atlassian documentation.

Should I delete the repository from Crucible and re-add it?

I don't have any existing reviews that I need to preserve.

Thanks for any help you can give.

EDIT: Lo and behold I believe I found how to re-index. On the page that lists all the repositories, I click on the name of my repository, and it brings up a page for that. In the left frame is a link for "Maintenance", clicking that brings me to a page with a bunch of "re-index" buttons. I'm clicking them all :smile:


Answers:
author: Marek Parfianowicz
body: Correct - reindexing is on the "Maintentance" tab in repository settings.

You can also use REST API to trigger re-indexing:

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


Tags: fisheye-crucible-administration
How can i restrict checkin to perform code review?
Asked by Lavita Pinto:

it is a scenario where we checkin and then review a code so how can the checkins be restricted


Answers:
author: Marek Parfianowicz
body: Hi Lavita,

First, you can perform pre-commit code reviews. More details here: <https://confluence.atlassian.com/crucible/creating-patch-files-for-pre-commit-reviews-298977458.html>

Second, you can configure pre-commit hooks in your SCM. Such a hook could contact FishEye/Crucible REST API to ask about code reviews. More details here:

<https://answers.atlassian.com/questions/315742/git-pre-commit-check-fisheye>

<https://confluence.atlassian.com/fisheye/configuring-commit-hooks-315327572.html>
How can I see PRs created by deactivated users?
Asked by Amol Gole:

Was trying to look up an old Pull Request created by a now deactivated user. Unfortunately I could not find them using search because the user doesn't show up in the list.


Answers:
author: Syahrul
body: G'day, [@Amol Gole](/t5/user/viewprofilepage/user-id/2768369)

You can use this endpoint to get the deactivated user UUID: [List users in a workspace](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-workspace-members-get)

Once you have the user UUID, you can use the following URL and add the user UUID. This will show all PR created by the deactivated user:

```
https://bitbucket.org/<WorkspaceName>/workspace/pull-requests/?author=<UUID>
```

If you have trouble finding the UUID, please raise a support ticket with us directly at our [Support portal](https://support.atlassian.com/contact/).

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Can I create security level with Automation?
Asked by Nicolas Mayans:

I would like to create a rule in Automation which is based on the fact that when a user creates an incident of a certain type, it can only be seen by the reporter and a group of users that is already defined in a group. This is possible? I've looked in the documentation and can't find anything that comes close.

Thanks!


Answers:
author: John Funk
body: Hi Nicolas,

You cannot create a Security Level on the fly - it would already have to exist. But if it does, then, yes, you can use Automation to update the issue to assign an existing Security Level to it.

comments: author: Nicolas Mayans
body: I have already created the security level, but in the options that Automation gives me, I would not be finding the right one. Maybe it exists but I can't find it.


author: John Funk
body: Can you give some more details?


author: Nicolas Mayans
body: Right now we solved it this way:  
From project settings/Issues/Security and from there good security level created.  
Then I noticed that you can do it from Automation but from the Action and edition of the Security field. I just tried it, it came out perfect!  
Thank you very much!


author: John Funk
body: Great! Glad that worked for you!


author: Daneli Galan
body: Would you mind showing your automation example ?

Thanks much!


author: Hamza Chundrigar
body: Yes, this is possible. You would be looking to use if/else JQL statements and action edit issue fields (i.e security level).

Don't forget to ensure that the Project Role (atlassian-addons-project-access) has permissions to set security levels as well. It's the one used by the automation app user.
When you copy and paste code into a comment do you get an "Unknown macro: " embedded in your comment?
Asked by Nimi Benjamin:

Sometimes when I copy lines of code into a comment, I see a "Unknown macro:" error embedded in my comment.

Here is an example of the code I'm copying:

//if(!existsGroup(groupName)){

// return false

//}

if(!existsGroup(groupName)){

This is how it looks in Crucible:

//if(!existsGroup(groupName))

Unknown macro: { // return false //}

if(!existsGroup(groupName)){

Any idea why this is happening


Answers:
author: Marek Parfianowicz
body: Crucible uses wiki markup. And inside curly brackets { } you can put macros. As you're pasting text with brackets, it tries to convert it to a macro and fails. Try to write the following:

```
{code}paste your code here{code}
```

<https://confluence.atlassian.com/crucible/using-wiki-markup-in-crucible-298977438.html>
Bitbucket pipe release v5.6.1 has a Semversioner error
Asked by Geoffroy Labbe:

Hello!

I am using **atlassian/bitbucket-pipe-release:5.6.1** and the pipeline fails with the following information:

? Semversioner error:

May I know if there is a way to see the actual error? Perhaps I should have see something after the two dots?

Thank you.


Answers:
author: Igor Stoyanov
body: [@Geoffroy Labbe](/t5/user/viewprofilepage/user-id/300205) hi. Thanks for your question.  
If you do not have VERSION variable, you should generate a semversioner file.  
Check [Release process paragraph,](https://bitbucket.org/atlassian/bitbucket-pipe-release/src/master/CONTRIBUTING.md) example:  
generate changeset with command

```
semversioner add-change --type patch --description "Fix security vulnerability with authentication."
```

After that you will be able to release.  
Regards, Igor


author: Mohammed Shehbaz Khan
body: The error is due to semversioner not being able to find the VERSION variable in the pipe config.

You need to pass in the VERSION variable with a string. That worked for me.


Tags: aws

bitbucket-cloud

bitbucket-pipelines

cloud

pipes

s3
Creating global password for all repositories in FishEye.
Asked by Nilesh Kanawade:

Hi,

We have more than 100 repositories in FishEye and all of them using same credential (functional account) for checkout. The password for this account expires every 3 months and we have to modify it in each repository separately which is very cumbersome. Is there a way we can store this credential at one place like globally, So that when password expires we have to modify it only once.

Thanks,

Nilesh


Answers:
author: lpater
body: Hi Nilesh,

This is currently not possible within the application itself. As Marek suggested, you can modify the config.xml file, to change attributes for the \<repository\> elements (the exact attribute differs depending on the repository type and authentication method, you'll probably want 'password').

There's also a feature request to allow managing shared repository credentials in the application at <https://jira.atlassian.com/browse/FE-5460>. Please vote for it and leave your comment there.

Best regards,

?ukasz Pater


author: Marek Parfianowicz
body: Repository credentials are stored in config.xml. You can edit this file directly and just use find\&replace to update the password. Restart the server after updating this file.


Tags: fisheye-crucible-administration
Getting fatal: unable to access bitbucket repo with error : Port number ended with 'F'
Asked by Biztech-Devops:

I'm receiving the following error in my Jenkins console output when it tries to access the Bitbucket repository and fails with the following error:

```
fatal: unable to access 'https://username:****@bitbucket.org/workspacename/reponame.git/': Port number ended with 'F'
```

I have used the Jenkins declarative pipeline script on my Jenkins server to retrieve the Bitbucket repository to pull the repo.  

I have entered the Bitbucket login and password in Jenkins's manage credential and used that credential id in the script to authenticate the repository.

```
stage('Pull from Bitbucket') {
steps {
withCredentials([usernamePassword(credentialsId: 'credentialsidnumber', passwordVariable: 'BITBUCKET_PASS', usernameVariable: 'BITBUCKET_USER')]) {
script {
sh """
git pull https://${BITBUCKET_USER}:${BITBUCKET_PASS}@bitbucket.org/workspacename/reponame.git/ main --allow-unrelated-histories
echo "pulling main from Bitbucket"
"""
}
}
}
}
```

So can any know this issue why it occur and how we can resolve this ?


Answers:
author: Theodora Boudale
body: Hi [@Biztech-Devops](/t5/user/viewprofilepage/user-id/5479640) and welcome to the community!

Are you using your account's password for authentication? I've seen this error occur with passwords that have special characters.

Regardless of that, we have deprecated the use of account passwords for Git over HTTPS and API, so the account's password will not work even if it doesn't contain special characters. If you want to clone, pull, or push to a repo with Basic Authentication via HTTPS, you will need to generate an app password and use that instead of your account's password.

You can find more info on app passwords and how to generate one here:

* <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

The app password should be used along with the username (you are already doing that). Please make sure that you use the username of your account, listed here:

* <https://bitbucket.org/account/settings/>

Please feel free to let me know how it goes and if you need further assistance.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Can you highlight and copy a few words in a line of code versus the entire line in Crucible?
Asked by Nimi Benjamin:

Is it possible to highlight and copy a few words in a line code? Right now, it only allows me to highlight and copy and entire line.


Answers:
author: Marek Parfianowicz
body: Just press and hold the **Alt** button and select text using mouse.

comments: author: Nimi Benjamin
body: Thank you. This works in Windows but when you are in Linux (KDE or GNOME), pressing and holding the Alt button and selecting text doesn't work.


author: Marek Parfianowicz
body: There's a feature request for it: <https://jira.atlassian.com/browse/CRUC-5919>

You can't do much, unfortunately, unless you reassign Alt+drag to another key combination (e.g. Win+drag).


author: Nimi Benjamin
body: Thanks for this information. We will do some test around reassigning the key to see if this could be a potential temporary work around.
Is it possible for Crucible to send an email when starting a review?
Asked by Mike Schwager:

*This question is in reference to Atlassian Documentation: [Starting a review](https://confluence.atlassian.com/pages/viewpage.action?pageId=298977443)*

So you can start a review from Crucible, but is it possible for you to send an email when you do start? Our Crucible is sending emails for updates but not for the initial review. Thus our users need to send an email notifying each other of review. I have checked the settings, and all the email settings buttons point to "Immediate" notification.


Answers:
author: lpater
body: Hi Mike,

All the reviewers should already get an email when the review they are in is started:

image2016-3-7 15:13:57.png

If you have 'State change' notifications enabled in your profile, you should be getting an email like the one pictured above, when a review you're participating in starts.

If you're not you might be facing a bug. Please check the application logs, and don't hesitate to raise a [support request](https://support.atlassian.com), if you're still having issues.  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Is-it-possible-for-Crucible-to-send-an-email-when-starting-a/qaq-p/76242?attachment-id=8089){#link_115a095956a1a3}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/981/1/image2016-3-7%2015%3A13%3A57.png){#display_115a095956a1a3_0}


Tags: documentation

review
Crucible: periodic review reminders?
Asked by Jim Prezorski:

I know that Crucible will send out a single review reminder depending on the due date.

Is there a way to set up periodic email reminders of open reviews, e.g. each Monday send out a list of open reviews to each developer?

I can currently do this with open JIRA tickets - set up a subscription on an issue filter.


Answers:
author: GabrielleJ
body: There should be an email notification for Crucible Review due dates, if you have configured it correctly. "**Create Review** " \> **Edit Details** \> **Due Date** then finally update the **Send Reminder** field.

Are you not receiving any?


Tags: fisheye-crucible-administration
Detect language for syntax highlighting based on shebang in Fisheye
Asked by Matthias:

We have executable Python scripts in our repository that do not include a \*.py file extension in their name. Therefore, the syntax highlighter of Crucible/Fisheye is not able to detect the language. But we have a shebang included in the Python script. So, there is some information about the programming language in the file which could be used by the syntax highlighter for language detection.

I found something for Stash: <https://confluence.atlassian.com/display/STASHKB/Configuring+syntax+highlighting+for+file+extensions>

Is there something similar for Fisheye/Crucible syntax highlighting?

\*edit\*

To be clear: I am NOT interested in defining syntax highlighting. I want to detect the language of a file (using the shebang in the header of the script) to determine which existing syntax highlighting to use. The Python script does not have a \*.py file extension that could be used for detecting the language but a shebang in first line of the executable Python script like that:

```
#!/usr/bin/python?# any python code follows
```


Answers:
author: Tini Good
body: True, but after modification I'd suggest moving it into FISHEYE_INST so you don't have to remember to recreate it next upgrade.

<https://confluence.atlassian.com/fishkb/configure-syntax-highlighting-for-non-standard-file-extensions-300811223.html>

<https://confluence.atlassian.com/fishkb/defining-your-own-syntax-highlighting-in-crucible-or-fisheye-225120620.html>

comments: author: Matthias
body: Thanks for the suggestion. But I am looking for something to derive the language of a file from the shebang in its header and not from its file extension. I couldn't find a description of this feature in your wiki articles.


author: Marek Parfianowicz
body: Hi Mattias, file extension mappings for syntax highlighter are defined in \<fisheye dir\>/syntax/filename.map

comments: author: Murty Chitti
body: Hi Marek,

we had the synatx/filename.map entry for the files with extenstion .py and it is working for files having correct extension.

```
"**/*.py" python.def "Python"
```

is there any option for files not having extenstion to be identified like MIME type ?

we had tried the below in raw-mime.types

```
application/python py
application/x-python py
text/x-python python py
text/python py
```

and also

```
text/plain asc ascx asmx asa asax ashx axd config txt java jsp asp aspx cs idl cpp cxx c h pl pod py sh awk sed sql jspf tag xaml frm vb browser master
 csproj vbproj sitemap
```

but syntax highlighting not working for files without .py extenstion .

any options to enable syntax highlighting for files which do not have extension in fisheye?

Thanks


Tags: fisheye-crucible-administration
FishEye support for SVN 1.9?
Asked by postrifle:

Hello everyone!

Could somebody provide info when FishEye will support Subversion 1.9?


Answers:
author: Vitalii Petrychuk
body: Hi Alexey,

We plan to add a support for Subversion 1.9 in **4.1 version,**which will be released \~ in the end of June 2016


author: Marek Parfianowicz
body: You can also monitor <https://issues.tmatesoft.com/issue/SVNKIT-609>, as FishEye depends on it.


Tags: fisheye-crucible-administration
How can I change the database connection for an existing (but moved) database?
Asked by tanja3981:

*This question is in reference to Atlassian Documentation: [Migrating to an external database](https://confluence.atlassian.com/pages/viewpage.action?pageId=298977506)*

We are using a database for some time now. However, our database team migrated the database to another server now, and we need to update the connection string in crucible. Where can I do that without having a migration taking place?

(We are using an oracle datbase, if that matters...)


Answers:
author: gustavo_refosco
body: Hi Tanja,

Considering you'll be changing to an existing database already containing data, I'd recommend adjusting the connection string directly in the `FISHEYE_INST/config.xml` file, due to the bug <https://jira.atlassian.com/browse/FE-5389> - because of this bug, if you attempt to change the database URL from the UI, it will actually override the new database with the data contained in the existing one.

Also, to make sure your DB will be in sync with the filesystem, please make sure the application is stopped and both DBs are in sync (since you mentioned this is just a migration, I suppose the DBs contain the same data, so I'm just suggesting to make sure they're in sync before adjusting the connection string).

Still, please consider taking a backup before applying the change.

Regards,

Gustavo Refosco

comments: author: Alberto Arag?n
body: Hi Gustavo,

there are **two** files named **config.xml** in a Fisheye installation: one in the INSTALLATION directory and another in HOME directory. To change the database URL, you must to modify the file placed in **HOME**, not the placed in the INSTALLATION directory as you indicated.

Regards.


Tags: documentation

external

fisheye-crucible-administration
Crucible CLI Error
Asked by Shinjani Gaur:

I am using Mercurial and get the following error while trying to create a review on Crucible via the CLI:

Failed to anchor the patch to repository it, please check that the repository is the correct one

The command I am using is:

crucible --repository it -u \<myusername\> -m "Test review creation" -f README CR-ESS

The version of python I am using is 2.7.

Others have asked this question before and I have not seen a response.


Answers:
author: lpater
body: Hi Shinjani,

The '-f' option is used to get the patch from the specified file. You're passing a file named README, which probably isn't a valid patch for your repository.

Usually you don't want to specify the option, and instead run the script in your repository checkout directory, and let it generate the patch based on changes in your local workspace.

Please try that. If you still have trouble, please raise a [support issue](https://support.atlassian.com) so that we can investigate further.

comments: author: Shinjani Gaur
body: Thanks for the help. The 'README' was a new file that I had added and committed. I tried the command by editing a file instead but got the same error. Then I generated a patch file and ran again with the '-f' option and still got the exact same error .

Will open a support issue as you suggested.
Unable to look up repo
Asked by adamovitchart:

Every time trying to clone repo via sourcetree in windows i recieve error

```
Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://adamovitchart@bitbucket.org/adamovitchart/numbtowordsconverter.git
Output: 
Error: fatal: unable to look up adamovitchart@bitbucket.org (port 9418) ()
```

and

```
?This is not valid source path/URL
```

I cant fix it with fully sourcetree removal and reinstallation


Answers:
author: adamovitchart
body: Can someone help me to fix it?


author: Ian Anderson
body: Mine isn't showing up either. I thought they have a dedicated support team in the forums for SourceTree?

With all the unanswered issues with SourceTree this month I am guessing not...
Unable to clone the repo
Asked by Umamaheswara Gupta Darsi/IT/CSIN:

Please help. In any case we get the following error. I tried to add SSH keys correctly. But to no avail. Some body can help me where exactly the problem is.

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote ssh://git@bitbucket.XXXXX.com/dava/XXXXX.git  
Output:  
Error: FATAL ERROR: Network error: Connection timed out  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.


Answers:
author: Vishwas
body: Hi [@Umamaheswara Gupta Darsi/IT/CSIN](/t5/user/viewprofilepage/user-id/4678138)

From this part *"Please make sure you have the correct access rights*   
*and the repository exists."*

Can you check if you have write access to the repository. Most of the time it would be you are not added to write access to private repo.

Also how big is the repository ?

Out of curiosity why are you using so many parameters in the clone command ? Any specific reason.

Regards,
Can't select Git when installing Sourcetree Enterprise
Asked by Sam Rigby:

Hi there,

When installing Sourcetree Enterprise and going through the setup, I'm unable to select Git when it gets to the Install tools step.

Clicking in the box does not allow me to select Git.

![Sourcetree issue.PNG](/t5/image/serverpage/image-id/174444i2E05C87102BBE736/image-size/large?v=v2&px=999 "Sourcetree issue.PNG")


Answers:
author: Tannenspitze 123
body: I had the same problem. But you can select Bitbucket and then, when sourcetree is selected you can click on "add account" ( you can see this words in your language) and then click Hosting Dienst: GitHub. Anschlie?end auf "actualize OAuthToken (you can see this in your language). And then you can login in GitHub. with this.You can click on the window in sourcetree: Ok