youngmon/atlassian-qna huggingface dataset:
Animated cursor displays continuosly on executed pipeline build having 'error' status
Asked by dipankardas:

Hello friends,

We made some changes on the bitbucket-pieplines.yml file and checked it into the repository. Due to a syntax error the build failed. However, when we view the details page of the build, we see an animated wait cursor continuously being displayed on the right console log (Build tab), whenever we return to this page at a later time. Does it signify that the thread that ran the build is still hanging around ? If so, how could this be stopped ? I tried several means but it still shows the same animated cursor, even now. Am I missing out on something ?

Any help would be appreciated.

Thanks

Dipankar


Answers:
author: Patrik S
body: Hey [@dipankardas](/t5/user/viewprofilepage/user-id/2407213) and thank you for reaching out to Community!

When a build step fails with a syntax error, the container is not even started, so you can rest assured that no build container is hung and consuming your build minutes.

The symptom you describe is more of a UI issue, because since the step was not executed, there are no logs to display, but the UI still shows the spinning icon giving the wrong impression that something is still loading.

I went ahead and raised a feature request to improve the UI in such scenarios, and show the message "No logs to display". You can access the feature request using the following link:

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

We encourage you to add your **Vote** there to increase its visibility and also add yourself as a **Watcher**if you'd like to be notified whenever there's any progress on the implementation of that feature.

Thank you, [@dipankardas](/t5/user/viewprofilepage/user-id/2407213) !

Patrik S

comments: author: dipankardas
body: Thanks [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) . Appreciate the prompt response.


Tags: bitbucket-cloud

cloud
bitbucket pipeline src/main/java file fetch issue
Asked by Aditya Dhatingan:

I have a maven project (JAVA)

*** ** * ** ***

ChatGPT-BitbucketIntegration:  
- step:  
script:  
- echo "System Information:"  
- uname -a  
- echo "OS Information:"  
- cat /etc/os-release  
- echo "Commit ID is $BITBUCKET_COMMIT"  
- mvn exec:java -DcommitId="$BITBUCKET_COMMIT"  
This is script of pipeline.  

*** ** * ** ***

The pom.xml file contains  
\<plugin\>  
\<groupId\>org.codehaus.mojo\</groupId\>  
\<artifactId\>exec-maven-plugin\</artifactId\>  
\<version\>3.0.0\</version\>  
\<executions\>  
\<execution\>  
\<goals\>  
\<goal\>java\</goal\>  
\</goals\>  
\</execution\>  
\</executions\>  
\<configuration\>  
\<mainClass\>bitbucket.CommitCommenter\</mainClass\>  
\<arguments\>  
\<argument\>${commitId}\</argument\>  
\</arguments\>  
\<includeProjectDependencies\>true\</includeProjectDependencies\>  
\</configuration\>  
\</plugin\>  

*** ** * ** ***

I am calling the main class in the pipeline script  
using command mvn exec:java -DcommitId= "\<commitId\>"  
When I am running the same file locally there is no issue. But on pipeline I am facing the issue  
[WARNING]  
14657
java.lang.ClassNotFoundException: bitbucket.CommitCommenter  
14658
at java.net.URLClassLoader.findClass (URLClassLoader.java:433)  
14659
at java.lang.ClassLoader.loadClass (ClassLoader.java:586)  
14660
at java.lang.ClassLoader.loadClass (ClassLoader.java:519)  
14661
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:246)  
14662
at java.lang.Thread.run (Thread.java:831)

Note: I have two java packages in repository

src.main.java

and

src.test.java


Answers:
author: Patrik S
body: Hey [@Aditya Dhatingan](/t5/user/viewprofilepage/user-id/4505415) and thank you for reaching out to Community!

Maven framework falls a little outside of my expertise, but since pipeline builds run inside docker containers, I would suggest in your case to try [debugging your pipeline locally with docker](https://confluence.atlassian.com/bbkb/debug-pipelines-locally-with-docker-1167698072.html) to troubleshoot the issue and check if you can identify the fix. With this, you are able to reproduce a local environment very close to pipelines.

If you are able to find the solution to fix the error locally by testing with docker, then you can push the changes to your bitbucket repository and the pipeline should complete successfully as well.

Thank you, [@Aditya Dhatingan](/t5/user/viewprofilepage/user-id/4505415) !

Patrik S

comments: author: Aditya Dhatingan
body: Thanks [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) .

This issue is sloved

Since I was not compiling the code first, bitbucket was not able to find the file. (mvn compile worked)  
ChatGPT-BitbucketIntegration:  
- step:  
script:  
- echo "System Information:"  
- uname -a  
- echo "OS Information:"  
- cat /etc/os-release  
- echo "Commit ID is $BITBUCKET_COMMIT"  
-**mvn compile**  
- mvn exec:java -DcommitId="$BITBUCKET_COMMIT"


Tags: bitbucket-cloud

cloud
Error: RPC failed; curl 56 Failure when receiving data from the peer even if I set up proxy
Asked by zagoramaria:

Hi,  

I am trying to git clone a repository and I am receiving this error :  

error: RPC failed; curl 56 Failure when receiving data from the peer  

I have change the post buffer into a maximum variable but nothing.  
Also, I have set up the proxy and http.sslBackend as schannel and when I run the command  
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1 I have ==\> Info: schannel: failed to decrypt data, need more data.  

I do not know if it is relative issues.  
Anyway, can you please help me ? I think I tried all possible solutions..  

<br />


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

As per what was [discussed in a previous questions here in Community](https://community.atlassian.com/t5/Bitbucket-questions/RPC-failed-curl-56-Failure-when-receiving-data-from-the-peer/qaq-p/2239271) , setup the sslBackend as openssl seems to be a valid fix on an issue where a user received the same error message you shared.

In this case, could you please run the command below

```
git config --global http.sslBackend openssl
```

and then try running the clone again and check if it works ?

Let me know in case you have any questions.

Thank you, [@zagoramaria](/t5/user/viewprofilepage/user-id/5303328) !

Patrik S


Tags: bitbucket-cloud

cloud
Hook Limit Exceeded how to increase limit?
Asked by silent-conspiracy:

Hi I am trying to link appcenter with my repository and I am facing the following error. Can anyone help guide me to the right place to request for limit increase?

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


Answers:
author: Patrik S
body: Hey [@silent-conspiracy](/t5/user/viewprofilepage/user-id/3284244) and thank you for reaching out to Community!

I've opened an internal support ticket to further assist you with this. You should receive an email with the support ticket link soon. In case you don't, please let me know so I can share the link here (it's only visible to you and Atlassian).

Thank you, [@silent-conspiracy](/t5/user/viewprofilepage/user-id/3284244) .

Patrik S


Tags: bitbucket-cloud

cloud
How to create a bitbucket pipeline for automatic close of pull request after certain days?
Asked by Mohit Sharma:

Hello Community,

If no activity is observed, I am looking for a way to close all stale Pull Requests in my repositories after a few days.

Is it possible via the bitbucket pipeline or any other way to achieve this?

This link is not helpful:

[https://confluence.atlassian.com/bitbucketserver/automatically-decline-inactive-pull-requests-1027119967.html#:\~:text=the%20project%20level.-,To%20configure%20the%20automatic%20declining%20of%20inactive%20pull%20requests%20in,Repository%20settings%20%3E%20Auto%2Ddecline](https://confluence.atlassian.com/bitbucketserver/automatically-decline-inactive-pull-requests-1027119967.html#:~:text=the%20project%20level.-,To%20configure%20the%20automatic%20declining%20of%20inactive%20pull%20requests%20in,Repository%20settings%20%3E%20Auto%2Ddecline).


Answers:
author: Saxea _Flowie_
body: You can definitely achieve this via pipelines, although I'm not aware of, and couldn't find, any existing pipes designed to handle this task. You'd need to write some custom code that interacts with the Bitbucket API to identify and decline the stale pull requests.

I'm curious, though --- are these internal or external PRs? I know it's common to auto-close stale PRs in public repos, so I'm just wondering if that's the case here.


Tags: bitbucket-cloud

cloud
git: Too many requests\nfatal: unable to access 'https://bitbucket.org/asdf/qwer.git/
Asked by ???/??????:

INFO: detected pid 1, running init handler  
"level"=0 "msg"="starting up" "pid"=12 "args"=\["/git-sync"\]  
"msg"="too many failures, aborting" "error"="Run(git ls-remote -q <https://bitbucket.org/asdf/qwer.git> refs/heads/main): exit status 128: { stdout: "", stderr: "remote: Too many requests\\nfatal: unable to access '<https://bitbucket.org/asdf/qwer.git/>': The requested URL returned error: 429\\n" }" "failCount"=0

I had a this issue. (2023-08-25 23:16 KST \~)

we have a two eks airflow application.  
applications have git-sync (sync-wait: 5s).

maybe.. (2023-08-25 23:16 KST \~) new policy lunched for bitbucket repository throttling?

please check. thx

---

otherwise, <https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/>  
this limits rules effect git-sync?

page description \`Any access to */2.0/repositories/\** such as:\`..  
I think not related git sync.

---

<https://github.com/apache/airflow/discussions/33815>

<https://github.com/airflow-helm/charts/discussions/776>


Answers:
author: Ben
body: Hi ???_MDP,

I can see that you are a member of a Premium workspace and are entitled to Premium support from our staff. Please reference this workspace (it is 5 characters long) to raise a ticket in our support portal with your preferred timezone or let us know what timezone you are in and we can do so on your behalf:

* <https://support.atlassian.com/contact/#/>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
how can i perform ci cd in react app
Asked by Suchit Negi:

I have react app in my repo i want to automate ci cd for this app, how can i perform it


Answers:
author: Saxea _Flowie_
body: There are different tools/options that you can use, but Bitbucket cloud has [Pipelines](https://bitbucket.org/product/features/pipelines) which has a free tier and is easy to get started. There's a lot of resources online.

Here is one example using a react app: <https://www.youtube.com/watch?v=SC2XzQ-tKKQ>

If you get stuck or have more questions you can ask for help here in the community.


Tags: bitbucket-cloud

cloud
Continuous SSH connection problems
Asked by albertuan:

Hi all,

The error is: no connection in SSH when I do some remote git command (fetch, push, pull, ...)
> ssh: connect to host bitbucket.org port 22: Network is unreachable  
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights  
> and the repository exists.

The trouble is, that it does not happen every time. To prove I have done this simple batch  

```
cd "C:\Users\Public\Documents\Autodesk\Inventor 2021\Templates"
git checkout master
git status
git fetch
git pull
git push
git checkout INV-2021-ENG-TEMP-DEF
git push origin INV-2021-ENG-TEMP-DEF
git push origin INV-2021-ENG-TEMP-DEF
git push origin INV-2021-ENG-TEMP-DEF
git push origin INV-2021-ENG-TEMP-DEF
git push origin INV-2021-ENG-TEMP-DEF
pause
```

That's the results of one of the attempts.  
![brute-forse-push.png](https://community.atlassian.com/t5/image/serverpage/image-id/277409i50C8922F97729A51/image-size/large?v=v2&px=999 "brute-forse-push.png")

Thanks


Answers:
author: Syahrul
body: G'day [@albertuan](/t5/user/viewprofilepage/user-id/1564679)

I have proceeded to raise a support ticket on behalf of you to assist you with your intermittent Bitbucket connection issue. You can find the ticket at our support portal:

<https://support.atlassian.com/requests/>

Regards,


author: Saxea _Flowie_
body: It seems like you are having intermittent network issues? I usually diagnose these with MTR, but I don't think it's available on Windows. You could try WinMTR though.

comments: author: albertuan
body: Thanks Saxea,

but we rely on many cloud systems.

1) No local folders: only Google Workspace  
2) No MS Office, Google Drive  
3) No outlook, we use a browser  
4) CRM  
5) VOIP system for phone calls  
... and many others, very intensively used system

The Office connection is the same for all systems, and the only one that has problems is BitBucket.

P.S. And it happens only in CEST post meridian time in the morning is all fine!  

We also have an elementary environment in the office.  
Endpoints --\> Switching --\> Firewall (ubiquiti)  

There are no time-based policies.  

Next time it happens I will connect through another provider, maybe is something his devices.

![pushed-at-firs- time.png](https://community.atlassian.com/t5/image/serverpage/image-id/277434i9A8E88F4D4BA5DDF/image-size/large?v=v2&px=999 "pushed-at-firs- time.png")


author: Saxea _Flowie_
body: Sometimes is not necessarily your internal network, like you mentioned, but an issue with a specific WAN route. e.g. a router between your office an Bitbucket. With MTR you are able to report the issue to your internet provider and they can follow up with responsible part of the network where you are seeing the issue.

Hope you can find it out! ?


author: albertuan
body: P. S.   
According to Albert Einstein, the definition of insanity is **doing the same thing over and over and expecting different results** .   

:-(  


Tags: bitbucket-cloud

cloud

connect

ssh
Are PostRepositoryHooks still available?
Asked by Nadav Holtzman:

I am trying to create a PostRepositoryHook in my Java project, but the documentation refers to the 'Hooks' tab in the repository settings:  

![Screen Shot 2023-08-27 at 12.07.41.png](/t5/image/serverpage/image-id/277389i96BDD312AE1125A3/image-size/large?v=v2&px=999 "Screen Shot 2023-08-27 at 12.07.41.png")  

But all I can see is the 'WebHooks' tab which is not helping:  

![Screen Shot 2023-08-27 at 12.07.54.png](/t5/image/serverpage/image-id/277390i4154202D7B3AC3E8/image-size/large?v=v2&px=999 "Screen Shot 2023-08-27 at 12.07.54.png")  

Any help?


Answers:
author: Syahrul
body: G'day [@Nadav Holtzman](/t5/user/viewprofilepage/user-id/5302544)

Welcome to the community!

Based on the screenshots you shared, you are comparing features between Bitbucket server and Bitbucket cloud. The first screenshot corresponds to Bitbucket server, while the second screenshot is from the Bitbucket cloud. As a result of this distinction, it's important to note that the guide you referenced is irrelevant to Bitbucket cloud, as the two platforms offer distinct sets of features on separate platforms.

Considering this information, it seems that you are specifically seeking information about implementing a git pre-hook. However, it's worth mentioning that this feature is not currently available in Bitbucket cloud. There is an existing feature request related to this functionality, and I recommend that you Vote and watch it. This will help prioritize the implementation of the feature and keep you informed about updates in the future. You can find and support this feature request at the following link:

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

I hope this helps.

Regards,  
Syahrul

comments: author: Nadav Holtzman
body: I see.   
Thank you.


Tags: bitbucket-cloud

cloud
J? configurei a ssh mas ainda solicita senha e as credencias sempre d?o invalidas
Asked by gustavo carmo:

J? configurei a ssh mas ainda solicita senha e as credencias sempre d?o invalidas

remote: Invalid credentials  
fatal: Authentication failed for


Answers:
author: Saxea _Flowie_
body: Oi [@gustavo carmo](/t5/user/viewprofilepage/user-id/5302458) ,

Pode tentar que vai mostrar detalhes de como est? tentando autenticar

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


author: Syahrul
body: G'day [@gustavo carmo](/t5/user/viewprofilepage/user-id/5302458)

Welcome to the community.

I believe the following KB can help you figure out the issue further; please check it and try the suggested solution:

<https://confluence.atlassian.com/bbkb/authentication-error-remote-invalid-username-or-password-942864127.html>

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Indexation of the repository by search engine like google
Asked by Sisi:

Hello,

I cannot found my public repository when searching in google search.

I would like to know if there is something to do so that the search engine like google or bling index my page.

Actually, I use a free account.

Thank you


Answers:
author: Testing Alt
body: Make sure everything is set on public

comments: author: Sisi
body: I have unset in the bitbucket workspace the checkbox Keep this workspace private and also unset this repository is private for the repository. I cannot set the jira project as public. I do not found the option for free plan. But the workspace is not indexed. Is there other options to set or unset ?


author: Sisi
body: I have lookup the robot.txt in bitbucket cloud and the src directory is disallow. So I think the repository is not index even if you have a master branch as it is advice on stackoverflow. So I think in bitbucket you can not index your repository with search engine like google. Does someone can confirm ? May be it depends on the user agent.


Tags: bitbucket-cloud

cloud
Can fisheye render html files
Asked by Khai Do:

I have html files checked into my SVN repository. I would like to view these html files in fisheye, but not in it's raw form, I would like to view the html as it appears when open in a browser. I cannot figure out how to get fisheye to render the html file I can only view raw html. Is this even possible?


Answers:
author: Chii
body: Its not possible to view the html file as a browser renders it when say, doing reviews or looking at the source. However, you can actually view the html file in the browser by clicking on the 'raw' link when viewing the file. This will only work if your server administrator has enabled the 'insecure' option for raw file download settings.


author: Jeff Kirby
body: Not out of the box, no, it is not possible
how can I find the most frequently changed files
Asked by Dave Zygadlo:

I'm trying to find the files in my svn repo that have been have the most amount of change to them. I would like to find out most frequently changed as well as the most amount of lines of code changed.


Answers:
author: Dave Zygadlo
body: I found that I could run the following EyeQL

select revisions   
from dir "/"   
where ( path like "\*.cs" and date in \[2011-09-24T04:00:00.00Z, 2011-10-25T03:59:59.00Z\])   
order by date desc   
group by file   
return path, count(revisions),sum(linesAdded), sum(linesRemoved)
The code format in crucible is not correct.
Asked by rama gururaj:

We normally do a pre-commit code review. The diff file generated is between a revision on the branch and a working copy of the file. The code on the trunk is being compared instead of comparing with a revision on the branch and the working copy.

how do we ensure that the correct revision on the branch and the working copy diff is seen when we do a Side-by-side diff ?

How do we resolve this issue ?


Answers:
author: Chii
body: Hi Rama,

Without more info, its difficult to diagnose your problem. I can only suggest that you check whether the patch is anchored against the branch in question (see [this page for a screenshot](http://confluence.atlassian.com/display/CRUCIBLE/Creating+a+Patch+Review#CreatingaPatchReview-UsingCruciblePatchAnchoringtoAutomaticallyAddFullContext) ).
Fisheye seems to be indexing commits multiple times
Asked by Dave Pacifico:

This is likely due to something specific with my setup and environment, but I figured I'd throw it on here in case anyone has any ideas. The issue seems to be that fisheye is reindexing old commits over and over again for seemingly no reason. I noticed this in 2 ways:

1. The incremental indexing can take a very long time (10-15 minutes), which causes delays in new commits showing up in Fisheye
2. The bigger problem - once we started using SmartCommits, which we love, Fisheye/Crucible was creating many many reviews for one smart commit. It was clearly being processed multiple times. This caused me to eventually turn off Smart Commits until I could figure this out

We obviously have both Crucible and Fisheye and we have it connected to multiple Git repositories.


Answers:
author: jhinch _Atlassian_
body: This was a bug relating to when certain internal events were fired and can occur when merging branches within git. This should be fix in the latest version of FishEye 2.7.x (currently 2.7.4).

Which version of FishEye are you experiencing this on? If you are on 2.7.4 I would suggest contacting [support.atlassian.com](http://support.atlassian.com) so we can investigate further

comments: author: Dave Pacifico
body: I'm running 2.7.1. Thanks a lot for the quick response. I'll upgrade and vote up your answer if it fixes it. Thanks again.
How do you set the debug for Fisheye using the wrapper for Windows Service?
Asked by Cameron River:

Trying to set the debug parameter for Fisheye using a wrapper for Windows Service. Nothing seems to work. Tried what Atlassian suggested.

```
wrapper.java.additional.9=--debug
```

```
 
```


Answers:
author: Julien Hoarau
body: The **--debug** flag is not a jvm parameter, so I think you need to edit your wrapper.conf file like this:

```
# Application parameters.  Add parameters as needed starting from 1# The first application parameter is the name of the class whose main# method is to be called when the application is launched.  The class# name is followed by the number of parameters to be passed to its main# method.  Then comes the actual parameters.wrapper.app.parameter.1=com.cenqua.fisheye.FishEyeCtlwrapper.app.parameter.2=3wrapper.app.parameter.3=startwrapper.app.parameter.4=--debug wrapper.app.parameter.5=--debug-perf# The start parameters are followed by the name of the class whose main# method is to be called to stop the application.  The stop class name# is followed by a flag which controls whether or not the Wrapper should# wait for all non daemon threads to complete before exiting the JVM.# The flag is followed by the number of parameters to be passed to the# stop class's main method.  Finally comes the actual parameters.wrapper.app.parameter.6=com.cenqua.fisheye.FishEyeCtlwrapper.app.parameter.7=truewrapper.app.parameter.8=1wrapper.app.parameter.9=stop
```

comments: author: Cameron River
body: Yup, I actually figured it myself as well. Thanks Julien.


Tags: debug

service

windows

wrapper