youngmon/atlassian-qna huggingface dataset:
Updating repository variables via pipeline
Asked by Meagan:

Problem: we want to update our version number in the pipeline when it runs successfully. We currently pull the version number from the repo's env variables and after a build it should change the variable .

So I was looking at the api and have this:

```
curl --request PUT \
--url 'https://api.bitbucket.org/2.0/repositories/{wksp}/{repo}/pipelines_config/variables/{uuid}' \
--user 'user:pwd' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"type": "pipeline_variable",
"uuid": "{uuid}",
"key": "VERSION",
"value": "0.0.0-TEST"
}'
```

However I get a

```
{"error": {"message": "Bad request", "detail": "Unexpected response body", "data": {"key": "unexpected.response.body", "arguments": {}}}}
```

I have tried multiple configurations. This is straight from the API docs.

Note that getting the variable works. And I have matched the fields from that.

Thank you!


Answers:
author: Patrik S
body: Hello [@Meagan Hiatt](/t5/user/viewprofilepage/user-id/4760434)

and thanks for reaching out to Community!

The [update an environment variable](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-deployments-config-environments-environment-uuid-variables-variable-uuid-put) API endpoints expect the **variable_uuid**in the URL path, and since this UUID contains curly braces, the value in the URL must be URL-encoded.

I was able to reproduce the same error you were receiving when I tried to provide the UUID unencoded in the format {12345678-abcd-1234-abcd-1234abcd1234}.

The encoding values (see [URL encoding reference](https://www.w3schools.com/tags/ref_urlencode.ASP)) of curly braces are as follows :

* { - %7B
* } - %7D

And the encoded URL will look like the below :

```
https://api.bitbucket.org/2.0/repositories/WORKSPACE/REPOSITORY/pipelines_config/variables/%7B12345678-abcd-1234-abcd-1234abcd1234%7D
```

With %7B and %7D added to the beginning and end of the variable UUID, respectively.

Example curl request :

```
curl --request PUT -u 'USERNAME:APP_PASSWORD' 'https://api.bitbucket.org/2.0/repositories/WORKSPACE/REPOSITORY/pipelines_config/variables/%7B12345678-abcd-1234-abcd-1234abcd1234%7D' --header 'Content-Type: application/json' --header 'Accept: application/json' --data '{

"type": "pipeline_variable",

"uuid": "{12345678-abcd-1234-abcd-1234abcd1234}",

"key": "MY_VAR",

"value": "123"

}'
```

Hope that helps! Should you have any questions or run into any issues trying the suggestion above, feel free to ask :)

Thank you, [@Meagan Hiatt](/t5/user/viewprofilepage/user-id/4760434) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
ssh-key passphrase permission denied (using ansible)
Asked by James:

Hello.  

I have problem. ssh-key passphrase permission denied (using ansible)  

ansible playbook :

- **hosts**: testnew

**gather_facts**: no

**become**: yes

**tasks**:

- **name**: Git update

**git**:

**key_file**: /root/.ssh/new_rsa

**repo**: git@bitbucket.org:Ads/ads.git

**dest**: /path/

**accept_hostkey**: yes

**remote**: origin

**update**: yes

**version**: feature/out

**ignore_errors**: yes  

"msg": "Failed to download remote objects and refs: git@bitbucket.org: Permission denied (publickey).\\r\\nfatal: Could not read from remote repository.\\n\\nPlease make sure you have the correct access rights\\nand the repository exists.\\n"  

I use ssh-agent   
ssh-add asa_key  
enter passphrase


Answers:
author: Theodora Boudale
body: Hi James,

I'm not really familiar with ansible, but I would need some additional info to better help you.

* What operation is showing this error? Is it a git clone/pull or a git push?  

* Where have you added the public SSH key? To a Bitbucket account, to a Bitbucket workspace, or to the **Access keys** of a repo or project?  

* What are the private key file permissions?  

* Do you have the option to add verbose mode to SSH when this operation is performed? E.g. when cloning from a terminal, the following command can be used for printing verbose output:  

  ```
  GIT_SSH_COMMAND="ssh -vvv" git clone <repo_url>
  ```

  <br />

  Do you have the option to configure something similar and then post the output here? The verbose output will show which SSH key is offered during the operation, so we can double-check if the correct one is offered and if there are any other additional errors printed.

Kind regards,  
Theodora


author: Sanjen Bariki
body: Hi [@James](/t5/user/viewprofilepage/user-id/3278079) ,

Welcome to Atlassian community!

Please find the below document for the Permission denied issue in Bitbucket.

* **[Permission denied (publickey)](https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html)**

Regards,

Sanjen

comments: author: James
body: and? Ansible don't checkout and pull. I read all documents


author: Sanjen Bariki
body: Hi [@James](/t5/user/viewprofilepage/user-id/3278079)

As per the permission denied issue related to that document.

Could your please explain more about it what you are looking now..?

Regards,

Sanjen


Tags: bitbucket-cloud

cloud

ssh
Request payment for free plan
Asked by Artem:

Hello.

I start getting error which about payment even I under free plan.

![Screenshot 2023-11-14 171233.png](https://community.atlassian.com/t5/image/serverpage/image-id/291643i6B4D2BC8D7CF4FB4/image-size/large?v=v2&px=999 "Screenshot 2023-11-14 171233.png")

Thank for help!


Answers:
author: Sanjen Bariki
body: Hi [@Artem](/t5/user/viewprofilepage/user-id/1971428) ,

Welcome to Atlassian community!

In bitbucket there is some limitation and restriction in the free plan.

**Cause :-**

```
remote: [ALERT] Your push failed because the account 'username' 
has exceeded its user limit and this repository is restricted 
to read-only access.To restore write access, ask an account administrator to 
upgrade their plan.
```

**Solution :-**

* There are some restiction of this causes for this error message, the steps you will need to follow will depend on the cause.
* **If you are a Free customer** - the plan limit for all Free-tier users is 5 by default.  
  If you exceed this limit by adding more than 5 users to your workspace - you will not be able to push and will need to remove users from the workspace accordingly.

Please find the below document for the more information.

* **[Fix error "Your push failed because the account has exceeded its user limit"](https://confluence.atlassian.com/bbkb/fix-error-your-push-failed-because-the-account-has-exceeded-its-user-limit-1183680240.html)**

Hope you got the solution.

Regards,

Sanjen

Accept the answer If it helps you?.

comments: author: Artem
body: It seems like i have met the restrictions, but anyway the problem above still exist  
Check attachment.  

![Screenshot 2023-11-14 173206.png](https://community.atlassian.com/t5/image/serverpage/image-id/291648iC3D84A036DFE0490/image-size/large?v=v2&px=999 "Screenshot 2023-11-14 173206.png")Thanks!


author: Sanjen Bariki
body: Hi [@Artem](/t5/user/viewprofilepage/user-id/1971428) ,

Thanks for sharing the screenshot.

Please click on the see these users and check have you added more than 5 user ..?

Just remove the users and start again push then it will work.

For reference

* **[Plan difference](https://www.atlassian.com/software/bitbucket/pricing)**

Regards,

Sanjen


Tags: bitbucket-cloud

cloud
How to configure a repository in GOOGLE GCP?
Asked by Marcelo Victor:

How to configure a repository in GOOGLE GCP?

I have already followed the steps in the link below, however Google cannot authenticate.

<https://support.atlassian.com/bitbucket-cloud/docs/configure-ssh-and-two-step-verification/>

[https://cloud.google.com/dataform/docs/connect-repository?_ga=2.21844987.-13388240.1697635013\&_gac=1.11790848.1699897195.EAIaIQobChMI2e7YosLBggMVbRWtBh0OegK8EAAYASAAEgJeF_D_BwE\&hl=pt-br](https://cloud.google.com/dataform/docs/connect-repository?_ga=2.21844987.-13388240.1697635013&_gac=1.11790848.1699897195.EAIaIQobChMI2e7YosLBggMVbRWtBh0OegK8EAAYASAAEgJeF_D_BwE&hl=pt-br)


Answers:
author: Theodora Boudale
body: Hi Marcelo and welcome to the community!

Did you upload the public SSH key to the SSH keys of a Bitbucket account here <https://bitbucket.org/account/settings/ssh-keys/>?

If you did that, and if you also followed all the steps from the guide you shared, I would suggest reaching out to the support team of Google GCP.

We do not have any access to that product, so we cannot double-check if you configured the rest of the things correctly on their side or view any logs with errors that may indicate the cause of the issue.

If you reach out to that team and there are any questions about how to configure something in Bitbucket Cloud, you are more than welcome to reach out.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
changing file permissions in a test fails in bitbucket pipeline
Asked by stefanofornari:

I have a test to make sure the application provides a proper error if it can not access a file. To do so, the test changes the file permission, that it runs the application and checks the error.

Something like:

    public void permissions() {  String file = prepareFiles(); // let's say this creates a file /tmp/myfiles/filetocheck  Path path = Paths.get(file).getParent();  Files.setPosixFilePermissions(path, PosixFilePermissions.fromString("---------"));  MyApp.main();  thenLogContains("no access to " + file + ": java.nio.file.AccessDeniedException")}

It works locally, but when it runs in the BitBucket pipeline, it fails because permissions have not been changed. Has anybody ran into the same problem? Any solution?


Answers:
author: Patrik S
body: Hello [@stefanofornari](/t5/user/viewprofilepage/user-id/5363872) and welcome to the Community!

Have you tried testing it locally inside a docker container ? I ask this because bitbucket pipelines run inside a docker container, so testing it locally with docker closely reproduces the pipeline environment and it can help identify if the issue is with the pipelines itself or with the code/image you are using.

If you haven't already, I would suggest following the instructions in the article below to debug it locally using the same image you are using in pipelines:

* [Debug pipelines locally with docker](https://confluence.atlassian.com/bbkb/debug-pipelines-locally-with-docker-1167698072.html)

Let us know in case you have any questions.

Thank you, [@stefanofornari](/t5/user/viewprofilepage/user-id/5363872) !

Patrik S


Tags: bitbucket-cloud

cloud
Corrupt svn dump file
Asked by Thomas Vervest:

I am trying to migrate our account to GIT, and ran into a rather obnoxious issue... Following the migration guide, I've created a svn dump (svn.dump.gz) and downloaded it, however I am unable to unpack this file, as gunzip exits stating

```
gzip: svn.dump.gz: unexpected end of file
```

Downloading the file again results in the same message and re-generating the file is prohibited by a rate limit of one backup per 48 hours.

Any help would be greatly appreciated!


Answers:
author: Thomas Vervest
body: Bastiaan Jansen (Atlassian support) informed me that "the cause for the errors of the archive files is a known bug \[[https://jira.atlassian.com/browse/AOD-5975](https://jira.atlassian.com/browse/AOD-5975 "known bug")\] in the OnDemand environment. After 1gb the file download stops, this leaves a incomplete file on your machine." Downloading the file using the supplied download script solved the issue.


author: Felipe Cuozzo
body: Hi Thomas,

This looks like that there may be some corruption on the transfer process or maybe on the OnDemand side, please create a Support Ticket to assist you with the migration of the SVN repository.

They can provide you with checksum hashs for the files so we can find out what/where the corruption is.

Cheers,  
Felipe Cuozzo  
Atlassian OnDemand


author: LucasA
body: Hi Thomas,

Unfortunately you'll ned to recreate the SVN dump. If it's too big you can try to create the dump file only for a revision interval. The command will be something like:

```
svnadmin dump /path/to/your/repository -r0:100 | gzip &gt; dump-revision-0-to-100.gz
```

Restore it as usual:

```
zcat dump-revision-0-to-100.gz | svnadmin load /path/to/your/repository
```

Best regards,  
Lucas Timm


author: Mehdi Ahmadi
body: I can confirm that the direct download approach via: **FishEye** \> **Backup manager** incurs serious issues particularly where there may be intermittency or interruption to / from:

<https://appical.atlassian.net/webdav/backupmanager/>

Several attempts were made in-browser (and using different browsers) and in every case no more than 1.1Gb could be download.

A download manager (eg *DownThemAll*) resolved the issue - beyond 1.1Gb limit (also offers resume functionality for interrupted / partial downloads).


author: Mehdi Ahmadi
body: Hi there Felipe \& Lucas,  

I am continuing / re-attempting the migration process from where Thomas left off.  

I am undergoing your outlined steps / procedures as per :  
<http://go-dvcs.atlassian.com/display/aod/Migrating+from+Subversion+to+Git+on+Bitbucket>

\& using the *latest* **svn-migration-scripts.jar** (*2013-03-18*).

Currently I am @ step: **2** )-*1b*:

*Download the Subversion dump file. This dump file includes all the projects in your Subversion repository.*

Download speeds however are no greater than 160 Kb/sec - which is taking awfully long for our 2.0Gb SVN Dump. Are there any alternative methods of access that may accommodate for faster downloads?

PS - 3 differnt ISP's, Lines \& Locations were used to test speeds (which were unaffected).

Many thanks -


Tags: cloud

fisheye-crucible-svn-ondemand
Error while processing SVN command: socket write error PROPFIND request failed on my repositorxy
Asked by Dr. Christian Knebel:

Hi guys,

when performing a merge of a branch the trunk in one of our projects our SVN client (SmartSVN) brings the following error after processing nearly the complete merge of 155 MB files of our project:

"An error eccurrd while processind an SVN command: Software caused connection abort: socket write error PROPFIND request faile on /svn/XXX/tunk"

Any ideas?

Best  
Christian


Answers:
author: Michael Knight
body: Roughly how long does the merge run for before being terminated? If it's \~15 minutes then you could be running into a limitation on our platform.

You can submit a [support request](https://support.atlassian.com) referencing this Answers post to have us run the equivalent merge locally on your instance, bypassing mod_dav_svn.

comments: author: Dr. Christian Knebel
body: Yes, error occurs after approx. 1 hour because we have a large project merge with more than 150 mb... will contect the support and ask for a manual merge... thanks a lot!


author: Felipe Cuozzo
body: Do you still have this issue?

comments: author: Dr. Christian Knebel
body: Unfortunately the error still exists...


Tags: cloud

fisheye-crucible-svn-ondemand
Unable to start Fisheye
Asked by Shaun Malick:

Installed Fisheye for the first time. After running the start.bat script, no output appears in the console and can't connect to the server at localhost:8060. This happened on a 32-bit Windows XP system and a 64-bit Windows 7 system. Latest version of Java JDK is installed.


Answers:
author: Shaun Malick
body: I was able to fix this by setting environment variable FISHEYE_OPTS=-Xms128m -Xmx512m -XX:MaxPermSize=256m.


author: Sergey Svishchev
body: Try running it this way:

```
fisheyectl.bat run
```


Tags: install
Fisheye Indexing doesn't complete
Asked by Chris Hickman:

We currently have the following structure in SVN for our product:-

This is the main directory of the core product

SVN URL SWCore

This is the trunk directory of the core product

SVN URL SWCore trunk dir1

SVN URL SWCore trunk dir2

SVN URL SWCore trunk dir3

This is the branches directory (used as a working directory) where the structure is not fixed and could contain any subdirectory from the truck at any level.

SVN URL SWCore branches dev REF-A dir1

SVN URL SWCore branches dev REF-B dir1

SVN URL SWCore branches dev REF-B dir2

SVN URL SWCore branches QA REF-A dir1

SVN URL SWCore branches QA REF-A dir2

SVN URL SWCore branches QA REF-A dir3

SVN URL SWCore branches Completed Release-1 REF-C dir1

SVN URL SWCore branches Completed Release-1 REF-C dir3

This is the tags directory of the core product

SVN URL SWCore tags RELEASE-X dir1

SVN URL SWCore tags RELEASE-X dir2

SVN URL SWCore tags RELEASE-X dir3

We have the following Repository Details:-

SVN URL: file:///

Path: SWCore

Use in-build symbolic rules: No

Custom Symbolic rules: Custom

Name Logical Path

Trunk

trunk(/\|$) trunk empty

Branches

branches/( \^/ +) ${1} empty

Tags

tagss/( \^/ +) ${1} empty

It is possible to let us know what should be the settings for this repository in Fisheye as we have tried with different combinations and indexing is running for more than a week without finishing.


Answers:
author: LucasA
body: Hi,

Depending of the size and structure of your repositories, the Fisheye repositorie indexing could take days, even weeks to be completed.

In addition that, we recommend that you follow the SVN expected structure. To know what is the expected structure, please take a look into <https://confluence.atlassian.com/display/FISHEYE/SVN+tag+and+branch+structure>

Cheers,

Lucas Lima


Tags: index
Connecting two JIRA instances using Application Link
Asked by christine xu:

Here is the situation: There are two servers (both with JIRA installed) running in two different locations behind each company's firewall. The goal is to connect these two JIRAs together, and share issues. If there is an issue created in one JIRA, and the other JIRA would be able to have read and write access to this issues as well.

I tried to connect two JIRA instances together using Application Link based on the following two Atlassian documentations.

1. Federating JIRA -- Managing Multiple Instances

2. Configuring Trusted Apps Authentication for an Application Link

However, the Incoming Authentication configuration cannot be setup successfully. It gives me the error message like Unable to retrieve the application's certificate.

My question is, is there another way to connect two JIRA together, and how to do that?


Answers:
author: Faisal
body: Hi Christine,

Apparently, the only way to connect 2 JIRA instances is by using Application Link. In fact, the application link acts as a 'bridge' to connect 2 different Atlassian application (example: JIRA to JIRA, JIRA to Confluence, JIRA to FishEye, etc). Hence, since you would like to integrate 2 instances, then I believe that configuring application link is the way to go.   

Therefore, I think we will have to fix the error the "Unable to retrieve the application's certificate", in order to integrate your JIRA instances. There may be a number of reason why the problem occurred, but commonly the problem would only occur when there's a proxy involved in the network.

Hence, may I know if there's any proxy configured in the network? If yes, any SSL? If there's a proxy configured in the network, can you try to bypass the proxy and setup the application link, and see if it helps?

comments: author: christine xu
body: Thank you Ahmad. It seems like it is the SSL problem.


author: Faisal
body: Thanks for the update Christine, it's great to know that the issue is now fixed on your end.

Have a nice day.


author: Nils Bier _K15t_
body: Hi Christine,

Another possibility to achieve the wanted behavior is to use [Backbone Issue Sync for JIRA](https://marketplace.atlassian.com/plugins/com.k15t.backbone.backbone-issue-sync/server/overview).

Backbone allows you to set up a synchronization between two (or multiple) JIRA instances, even if those systems can't reach it other due to firewall regulations.  
Instead you can use a file binding (either via e-mail or file exchange), allowing the two instances to communicate with each other. You can find further information about this in our docs:

* [Which configuration model to use](https://help.k15t.com/backbone-issue-sync/latest/choosing-the-right-configuration-model-115873144.html)
* [Introduction to the distributed configuration model](https://help.k15t.com/backbone-issue-sync/latest/intro-to-distributed-configurations-119147090.html)

I hope that information helps. If there are any further questions, please feel free to [reach out to us](mailto:support@k15t.com).

Cheers,  
Nils
How to show a list or report of all the code review topics created by some group of developers?
Asked by Blazej Kroll:

I would like to see code review topics created by some particular group of developers (subset of all developers using Crucible).

I tried Review Dashboard's custom filter - however, I am unable to show reviews for more then one author (tried to separate the authors ids with comma ",").

Is there any option to acomplish it?


Answers:
author: Blazej Kroll
body: Hi, in my installation when I put more then one user ID in any of the fields (Author, Moderator, Creator, Reviewer) either separeted with comma, space or semicolon it just gets ignored. This field in not influencing the filtering.

Looks like that there is by definition only single value enabled.

Hope I am wrong and there is a way to give more than one item in filter options? (or perhaps there is a way to define group of users somewhere else and use group name in this field?)

BR,

Blazej


author: John Werner
body: > I would like to see code review topics **created** by

I just tried separating several **Creator**s by commas and it worked fine. Perhaps what you should be filtering on the creator not the author.


Tags: crucible-without-fisheye
SQL Server2008 Config
Asked by Tareeq Ali:

Testing the connection I just get loading in the test section do I not get any errors and I do not see any errors in the logs.

![](../../../upfiles/2013-02-07_17_00_45-FishEye_and_Crucible__Administration.png)


Answers:
author: Rodrigo Girardi Adami
body: Hi Tareeq,

I'm not sure if you are still having this behavior after this time. I would say that the application is timing out to connect to the database for some reason. Is this issue happening when you use another database to test or the newest version of Crucible?

Cheers,

Rodrigo


Tags: ms-sql
Fisheye application link is broken in Jira
Asked by farah:

There is an existing ticket on this issue JSP-149118 that hasn't been resolved. We verified the application link to fisheye is cofigured correctly and there are no errors. Please reopen the ticket and look into it.


Answers:
author: farah
body: The issues was that the JIRA server and the Fisheye server were out of time sync. Once servers were in sync, the fisheye application link is working. The issue is resolved.


author: Immanuel Siagian
body: Hi there,

It seems that JSP-149118 is active, and were waiting for an update on your side. Marcus has updated you again on the case :) Do let us know if you any concern.

Cheers