youngmon/atlassian-qna huggingface dataset:
Connecting remote agent to primary server returns the error HTTP status code 500 received in response to fingerprint request.
Asked by Matthew Pyle:

When I attempt to connect the remote agent to the primary server, I'm getting the following error:

INFO \| jvm 1 \| 2012/07/20 08:13:03 \| 2012-07-20 08:13:03,422 INFO WrapperSimpleAppMain AgentContext Requesting

fingerprint, url: [http://bamboo/GetFingerprint.action?hostName=BAMBOO-BLD1\&version](http://bamboo/GetFingerprint.action?hostName=BAMBOO-BLD1&version)

=3\&agentUuid=63c717dc-3e9b-4ed7-bd05-f1d0d6a7d5d0

INFO \| jvm 1 \| 2012/07/20 08:13:03 \| Exiting due to fatal exception.

INFO \| jvm 1 \| 2012/07/20 08:13:03 \| com.atlassian.bamboo.agent.bootstrap.RemoteAgentHttpException: HTTP status code 500 received in response to fingerprint request.

In preparation for a support ticket, their first request is to run their network analyzer, which appears to check out:

C: bamboo bamboo-agent-home\>java NetworkAnalyser <http://bamboo>

Testing connectivity to Bamboo Server: <http://bamboo>

Trying to establish connection with remote server: <http://bamboo>

Connection established!

Testing connectivity to Bamboo Server: http:?//bamboo:54663

Trying to establish connection with remote server: http:?//bamboo:54663

Connection established!

Further info - this is from the bamboo log:

2012-07-20 08:13:04,464 INFO http-80-3 AccessLogFilter GET [http://bamboo/GetFingerprint.action?hostName=BAMBOO-BLD1\&version=3\&agentUuid=63c717dc-3e9b-4ed7-bd05-f1d0d6a7d5d0](http://bamboo/GetFingerprint.action?hostName=BAMBOO-BLD1&version=3&agentUuid=63c717dc-3e9b-4ed7-bd05-f1d0d6a7d5d0) 60698kb

2012-07-20 08:13:04,480 ERROR http-80-3 DispatcherUtils Could not find action

There is no Action mapped for namespace / and action name GetFingerprint. Check if there is such an action name with such namespace defined in the xwork.xml and also if such an action class exists. Check also the log to see if the action class is successfully loaded. - unknown location

at com.opensymphony.xwork.DefaultActionProxy.\<init\>(DefaultActionProxy.java:75)

at com.opensymphony.xwork.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:46)

at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:265)


Answers:
author: Matthew Pyle
body: To fix this issue I had to do a few things.

1. Added -Dbamboo.home=C:\\bamboo\\bamboo-agent-home to the java statement on the build server when building the agent.

2. Changed the bamboo.cfg.xml to use the server IP address instead of the DNS name.

3. Opened port 54663 on the Windows firewall on both machines.
Using regular expressions in Bamboo 4.1
Asked by SSI Team:

I'm tring to configure my Subversion repository from excluding multiple directories.

The following is an example of my repository:

* branches
  * 2.0.1
  * 2.0.2
  * Tickets
    * ...
    * ...
    * ...
* branches
* repo
* trunch

I would like to exclude everything in **branches/Tickets** and **repo.** These directories exist under the root of my repository. What is the regular expression for accomplishing this task.


Answers:
author: PiotrA
body: Hi,

How about using

\^(branches/Tickets/.\*\|repo/.\*)

in the repository advanced configuration -\> "exlude files" field? I think this should do the trick.


Tags: regex
Partial checkouts of Subversion repositories
Asked by DART Team:

I'm evaluating Bamboo as a replacement for our aging CruiseControl system. We build a number of different Eclipse-based products. Each Eclipse product is composed of many plugins, with a lot of overlap across products. We have several Subversion repositories; each repository contains many plugins: for example, trunk/ might contain 100 plugins at the top level in a given repository. To build a product, we pull a laundry list of different plugins from the various repositories, compile and assemble them. We have all this working in CruiseControl: the build script reads a list of repositories and plugins and invokes the CruiseControl Subversion tasks as appropriate, either as part of a change monitor or for the actual checkout/build. How can we do something similar in Bamboo? The two alternatives I see are to create a separate repository for each plugin (ugh) or use some sort of bootstrap script which circumvents Bamboo's machinery and does the checkouts directly (ugh again.) Is there a better alternative for this kind of fine-grained checkout in Bamboo?


Answers:
author: Przemek Bruski
body: Unfortunately not. You have to follow one of the approaches you've outlined or create repositories using externals and check them out in Bamboo.
Run Bamboo Build when Releasing Version
Asked by Matt Clarkson:

How do you do:

<https://confluence.atlassian.com/display/JIRA/Running+a+Bamboo+Build+when+Releasing+a+Version>

On Atlassian OnDemand?


Answers:
author: James Dumay
body: Hi Matt,

There is an update that will be going out shortly (in 1 to 2 weeks) that adds this feature for OnDemand customers.

Thanks  
James

comments: author: Matt Clarkson
body: Sa-weeet! Thanks James.


Tags: cloud

jira-cloud
Bamboo Fails to Continue Logging
Asked by Matt Clarkson:

I have a Windows Bamboo Elastic Agent and it fails to send logging messages back to the Bamboo server.

If I log into the elastic agent, I can see that it is continuing with the build but nothing is getting sent back to the server. What would be the reason for this? Is there anyway to debug this?

The elastic agent is running on a Large instance.


Answers:
author: Przemek Bruski
body: How this should work: the log messages should be continuously streamed from the agent to the server.

I think it's best if you contacted support.

comments: author: Matt Clarkson
body: Thanks, Przemek. It seems to be working OKish now. If I see any more problems I support ticket it.


author: Matt Clarkson
body: Aha, when the build process finishes the logs all come through in one block.

My builds are failing on Bamboo because I think it is killing the instance because it has no feedback over the logs.


Tags: cloud
Building Android Apps on Bamboo
Asked by Jason Nichols:

I'm looking for any pointers on getting Android applications built on Bamboo (either Hosted or On Demand). We're currently using the On Demand version, so that would be preferred.

Given that I control the AWS server doing the actual building, can the Android SDK be installed on them to make this happen?

We use Maven, if that helps.


Answers:
author: Przemek Bruski
body: > Given that I control the AWS server doing the actual building, can the Android SDK be installed on them to make this happen?

You can install whatever you want on the instance that does the building. You can even use an image customised from scratch with a non-default operating system that supports your build.


Tags: android
Is it possible to get a hash of merge commit before merge?
Asked by kamal.mohammed:

Hi

I am trying to get the test merge commit ie.., before merging a pull request it will test the merge to see if any merge conflicts exist or not. In GitHub its providing a merge_commit_sha (The value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the *test* merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request) .

So can we get the same in Bitbucket too or its already there? if its already there then how can I get the test merge commit in bitbucket?

Thanks


Answers:
author: Caroline R
body: Hi, [@kamal.mohammed](/t5/user/viewprofilepage/user-id/4579999)! Welcome to the community!

No, this is not possible. Just to give you some context about the reason that this is not possible, a commit contains the description of elements such as the author of the commit, the content of the commit (the list of files + directories that make up this commit), the commit's parents, the timestamp at which the commit is created. The hash of a commit is a hash of all this information. Since it is not possible to guess beforehand the timestamp at which the commit will occur, we cannot guess beforehand what that hash will be.

Please let us know if you have any questions related to this subject so we can help you with that.

Kind regards,  
Caroline

comments: author: kamal.mohammed
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)!

Thanks for the Reply. Ok Understood it.

I see that in the Pull request Page it's doing the check or giving diff with respect to base branch's latest commit and telling us about Any Merge Conflicts that may come up. So How is it is checking for Merge Conflicts that are coming up? If done Internally, can you give me an idea of how it is doing so?

Thanks,

Kamal


author: Caroline R
body: Hi, Kamal!

Bitbucket creates a temporary repository and creates a merge in the back end. This way we are able to show you what the final stage of the changes will look like once the merge is completed and if there are any conflicts.

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud

commit

merge
How to logout in my plugin
Asked by yeojin.lim:

Hi.

I am trying to force logout when I log in in my plugin. What should I do?

Jira has a LoginManager, is there anything similar to bitbucket?


Answers:
author: Nic Brough -Adaptavist-
body: I think I do not understand the requirement here.

This sentence:

"I am trying to force logout when I log in in my plugin"

reads to me like you want to log the user out when someone starts trying to use your plugin. This sounds broken to me, because once logged out, they would not be able to use your plugin, as they've logged out of the system the plugin was doing things in.

Could you explain this more to us please?

comments: author: yeojin.lim
body: I mean, I want to log out the logged in user if it is not an admin user.


author: Nic Brough -Adaptavist-
body: That would be a bad thing to do to a person trying to use your system, and I cannot work out how that would be useful to anyone. If someone is not an admin and they land on an admin link, why would you not just tell them "you are not an admin, so yo can't do this" and leave them logged in to continue what they were doing, rather than log them out and stuff up their experience?


author: yeojin.lim
body: I want to log out when accessing an unauthorized page.


author: Nic Brough -Adaptavist-
body: That is a horrid thing to do to your people. Why not just give them a "you do not have access to this page, but we're not going to throw you out for clicking on something" message?


Tags: bitbucket-server

server
Bitbucket error: Unexpected character encountered while parsing value: <. Path '', line 0, position
Asked by Mark Mindlin:

We use Atlassian.Stash - C# API wrapper for Atlassian Stash, version v4.0.30319

C# .Net 4.8, Windows 10/1909

We migrated from Bitbucket Server to Bitbucket org, and have the error: Unexpected character encountered while parsing value: \<. Path '', line 0, position 0

try  
{  
var client = new StashClient(ConfigParametres.GitBaseURL, username, password);  
ResponseWrapper\<Atlassian.Stash.Entities.Commit\> allCommits = await client.Commits.Get("PROJECT_KEY", "REPOSITORY_NAME", null, null);  
if (allCommits.Values == null)  
{  
return false;  
}  
}  
catch (Exception ex)  
{  
return false;  
}


Answers:
author: cleverstarfish
body: I solve this issue by removing # and $ characters from my password.


author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Mark,

Bitbucket Server aka Stash and Bitbucket cloud are 2 different products with 2 completely different REST APIs. Any client written to work with Bitbucket Server will not work as the URL paths will be completely different.

I would expect you will get a 404 not found HTML page as a response which cannot be parsed.

Here is the BBCloud REST API <https://developer.atlassian.com/bitbucket/api/2/reference/>

I'm not aware of a ready-to use client, but it may be out there.

comments: author: Mark Mindlin
body: Hi Ulrich,

We used <https://github.com/jlouros/StashApiCSharp>

Do you know about BBCloud analogue? I mean C# library.


author: Ulrich Kuhnhardt _IzymesCo_
body: Unfortunately not, Mark.


author: Mark Mindlin
body: We switched to another library

<https://github.com/lvermeulen/Bitbucket.Cloud.Net>

But there is an error when calling GetRepositoryCommitsAsync()

Source "Flurl.Http"

Message "Response could not be deserialized to JSON: GET <https://bitbucket.org/2.0/repositories/bxbts/smscore/commits>"

InnerException

Source "Newtonsoft.Json"

StackTrace

at Newtonsoft.Json.JsonTextReader.ParseValue()  
at Newtonsoft.Json.JsonTextReader.Read()  
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)  
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)  
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)  
at Newtonsoft.Json.JsonSerializer.Deserialize\[T\](JsonReader reader)  
at Flurl.Http.Configuration.NewtonsoftJsonSerializer.Deserialize\[T\](Stream stream)  
at Flurl.Http.HttpResponseMessageExtensions.\<ReceiveJson\>d__0\`1.MoveNext()

Message "Unexpected character encountered while parsing value: \<. Path '', line 0, position 0."


Tags: .net

bitbucket-cloud

c

cloud

email

error
Are docker images in services pulled at the beginning of a step?
Asked by Nick Reilingh:

I have a pipeline where in step 1, I build and deploy a docker container image to a private Google Cloud registry, updating the \`:latest\` tag. Then in step 2, I use a service based on the \`:latest\` tag for that very same image.

Does Pipelines guarantee that a custom service image tag will be pulled and instantiated for a step only after previous steps have completed?

Depending on the design of Pipelines, it's plausible that it could pull and run all services in parallel when a pipeline executes instead of accounting for the possibility that a step could alter a service for a later step. I'm not sure the documentation is clear on this particular point.

Haven't tested this for myself yet, but hopefully the question is interesting to others.


Answers:
author: Mark C
body: Hi [@Nick Reilingh](/t5/user/viewprofilepage/user-id/664644)

Thank you for reaching out to the community.

Yes, Docker images in **[services](https://support.atlassian.com/bitbucket-cloud/docs/databases-and-service-containers/)** YAML configuration will be pulled at the beginning of a step.  
The way how Pipelines spin up a step container is that it will first look for **services** configuration (in your step config) and create containers for each of those services. Once done, Pipelines will then link those **services** containers to your step container.  
Once the entire Pipelines step is done running, all **services** containers including the step container will be terminated.

Your Pipelines configuration with building GCR is suitable for **[multi-steps](https://bitbucket.org/blog/multiple-steps-in-bitbucket-pipelines)** as **Step 1** should finish first before executing **Step 2**.

About your question, if Pipelines guarantee that a service image tag will be pulled and instantiated for a step only after previous steps have been completed, this is guaranteed while using the **[multi-steps](https://bitbucket.org/blog/multiple-steps-in-bitbucket-pipelines)** configuration in your YAML file.

For the **services** running in parallel, it shouldn't alter your **services** containers for later steps as they're executed separately in each of your steps.  
Hence, **services** in **Step 1** should not alter or persist in **Step 2**.

Hope it helps and please don't hesitate to let me know if you have further questions that I can help with.

Regards,  
Mark C


Tags: bitbucket-pipelines

docker
Not Receiving Email Notifications
Asked by Josh Anderson:

I haven't been receiving email notifications since October 7th. As far as I know, nothing has changed since then, but no matter what I try I cannot get them sending again. This is a huge pain as I rely on them to keep me up to date on any code changes in my watched repos.


Answers:
author: Caroline R
body: Hi, [@Josh Anderson](/t5/user/viewprofilepage/user-id/4603664)! Welcome to the community!

I checked our logs and confirmed that your email had a block on the server that prevented emails from being sent to your address. In this case, I removed your email from this suppression list.

Could you please confirm if you are receiving the notifications now?

Kind regards,  
Caroline

comments: author: Josh Anderson
body: Yes I am receiving them now, thank you!


author: Caroline R
body: Hi, Josh!

Thanks for the confirmation, I'm glad to know that!

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
DBT pipe
Asked by DavidK:

Is there a pipe (now or in development) that can be used for dbt deployments?


Answers:
author: Caroline R
body: Hi, [@DavidK](/t5/user/viewprofilepage/user-id/4548263)!

Thank you for reaching out to Atlassian Community!

Could you please provide us with more details about dbt, so we can confirm this for you? You can share the URL to the service, use cases, workflow, etc. so, we could investigate and discuss this case.

Thank you.

Kind regards,  
Caroline

comments: author: dave_coulter_rmit_edu_au
body: <https://www.getdbt.com/>


Tags: bitbucket-pipelines

bitbucket-cloud

cloud
Can we get all remote branches in a Repo which are not updated for more than 180 days?
Asked by sudheer kommi:

I would like to leverage Bitbucket api to get all remote branches(including merged and unmerged) in a repo which have not been updated for more than 180 days


Answers:
author: Michael Walker
body: Hey Sudheer! It definitely looks like what you're wanting to do is possible with just 2 API endpoints. You'd need to first iterate through the values (repos) provided from the [/2.0/repositories/{workspace}](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D) endpoint to get a list of your repos and their respective repo-slugs. Once you've got that, you can pass the slug into the [/2.0/repositories/{workspace}/{repo-slug}/refs/branches](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/refs/branches) endpoint to get details on the last updated timestamp. Then you simply need to compare the timestamps with whatever date/time you wish.  

At a super high level this would look like the following in python:  

```
def repos():
```

```
    # https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D
```

```
    yield repo.get('name), repo.get('slug')
```

```
?
```

```
def branches(repo):
```

```
    # https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/refs/branches
```

```
    yield branch.get('name'), branch.get('target').get('date')
```

```
?
```

```
def main():
```

```
    for repo_name, repo_slug in repos():
```

```
        for branch_name, branch_date in branches(repo_slug):
```

```
            if branch_date < desired_date: #less than == older than
```

```
                print(f'{branch_name} on {repo_name} is older than desired.')
```

<br />

<br />


Tags: bitbucket-cloud

cloud
How to disassociate forked repo with original repo
Asked by Josh Beauregard:

I have a forked repo that has become its own project.  

I no longer want PR's to by default for to the original but to the new repo.  

Where is that setting?  

I can not find this setting anywhere. Please help.


Answers:
author: Caroline R
body: Hi, [@Josh Beauregard](/t5/user/viewprofilepage/user-id/4199121)! Thank you for reaching out to Atlassian Community!

Currently, this option is not available in the UI, but we from the support team can remove the fork relationship between the repositories.

In order to do that, would you feel comfortable sharing the repository name here? You can mask this with \*\*\* in the name.

We already have an open feature request to allow users to detach the fork on the UI, as you can see on the link below:

* <https://jira.atlassian.com/browse/BCLOUD-13645>

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Why does Hook limit exceeded error message appear?
Asked by Marija Nekic:

Hello,

Our team is experiencing a problem when trying to connect to a repository service (bitbucket) so we can build our app.  
This is the error message we receive from AppCenter:  

Linking failed: {"type":"error", "error": {"fields": \["Hook limit exceeded."\], "message": "Bad request"}}

Could you please provide some feedback on the possible resolution for this issue and the causes?


Answers:
author: Theodora Boudale
body: Hi [@Marija Nekic](/t5/user/viewprofilepage/user-id/4602787) and welcome to the community.

We have a limit on the number of webhooks that can be created on a repository, the limit is 50 webhooks per repository. If you try to create more than that, you will get the error you reported.

It is possible for support to override this limit if you use an integration that needs more than 50 webhooks. The workspace associated with your Bitbucket Cloud account doesn't have any repos, but I see that you're a member of another workspace as well. The admin of the latter workspace created a support ticket for this issue and we have overridden the limit for that workspace.

Please feel free to let me know if things are ok now. In case this concerns a different workspace, feel free to let me know and I can assist.

Kind regards,  
Theodora

comments: author: Marija Nekic
body: Hello [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) , thank you.

We have no problems now, this issue is resolved through the mentioned support ticket.  
Error message is no longer present and we can connect to a repository service (bitbucket) and build our app.

Best Regards,

Marija


author: Theodora Boudale
body: Thank you for the update Marija, that's good to hear. Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
Doubt regarding the code uploading and access to master
Asked by admin:

I just wanted to know one thing in bitbucket. Whenever any developer wants to commit any code changes, what will be the process to get those changes approved by the master and then only it will be pushed into the main repository? Because in our company, 3 developers are working on the same project , the code changes have to go to one senior developer for approval, only if he approves then it should go to the main repo. Is there any link available to do that. Please let me know , I need it urgently to implement in our projects


Answers:
author: seanaty
body: Yes this is available. This is called "merge checks." You can specify different rules that have to be satisfied before being able to be merged to master.

For instance you can require that in order to merge in to master people can only do so through a pull request. You can also specify that it has to have specific users' approval before it can be merged as well.

<https://support.atlassian.com/bitbucket-cloud/docs/suggest-or-require-checks-before-a-merge/>


Tags: bitbucket-cloud

cloud