youngmon/atlassian-qna huggingface dataset:
Bitbucket bult-in SSH server stop work after 3-4 days uptime
Asked by Sergey Subbotin:

after Bitbucket server upgrading from 6.8 to 7.6, the built-in SSH server began to fall every few days, that is, at some point the server stops responding to SSH requests to repositories, stops writing logs to the atlassian-bitbucket.log.  
At the same time, the resources of the system work correctly and do not show the causes of problems.  
The only thing we noticed is that network connections on port 7999 are clogged.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/118380i42D226A0CD05C77E/image-size/large?v=v2&px=999 "image.png")

from the information that I have:  
The problem of network connections is not regulated by the system in any way, and what should be looked at on the side of the application using this port.


Answers:
author: Todd Krzeminski
body: Was there ever a resolution to this issue in subsequent releases?

comments: author: Sergey Subbotin
body: we are still experiencing this problem, we provided thread dumps, jmx memory, and support zip, opened a ticket with Atlassians, is still open

do you have a similar problem?

our version :Atlassian Bitbucket server 7.8.0


author: Todd Krzeminski
body: Not with SSH. We're on 7.6, and we're losing connectivity to our MSSQL server. Everything looks OK on the SQL side, so I was wondering if there was a known issue with Bitbucket. We see this occurring daily, so it's a bit more frustrating.


author: Vimalraj Periyasamy
body: [@Sergey Subbotin](/t5/user/viewprofilepage/user-id/846840) Have you got some solution for this issue?


author: Sergey Subbotin
body: we disabled integration with upsource, after this crashes stopped


author: Vimalraj Periyasamy
body: Great.! What exactly upsource means? Did you get answer for your ticket?


author: Sergey Subbotin
body: Upsource is a smart code review tool and a repository browser that supports Git.

My guess is that he was opening too many ssh connections at the same time. It was his disabling that helped us stop the endless falls of the bitbucket

Disabling Upsource is answer to my question.


author: Vimalraj Periyasamy
body: But opening too many SSH connection shouldn't cause this problem. Do we have limit for SSH connections? Can we increase it somehow?


author: Sergey Subbotin
body: I can't explain it any other way. It was a very long time ago and was repeated on all versions from which it appeared, until the service I specified was turned off.

it was the into bitbucket ssh server that crashed and there was a long correspondence with support, which could not help in any way, a support ticket was maintained for a year and a half and ended in nothing.


author: Vimalraj Periyasamy
body: Thanks for quick response :-)


Tags: bitbucket-server

server

ssh
app-{#PR_ID}.zip is not found for azure deployment
Asked by Badr Eddine Zebbiche:

I am trying to build a reactJs app and want to deploy it to Azure via Bitbucket pipeline, I managed to obtain the azure variables and then when I run the production pipeline on the master, I receive this:

![Screenshot from 2020-11-15 12-21-34.png](/t5/image/serverpage/image-id/118335i862F035DA0F3ABA9/image-size/large?v=v2&px=999 "Screenshot from 2020-11-15 12-21-34.png")

Could you please let me know what are the necessary step by step to deploy ReactJS App to Azure in a container form? where can I find the \*.zip artifact?


Answers:
author: Theodora Boudale
body: Hi [@Badr Eddine Zebbiche](/t5/user/viewprofilepage/user-id/4146814) ,

How are you doing the deployment to Azure? Are you using a pipe, and if so which one?

If you're using a pipe, the .zip file you specify in the pipe should be generated before the deployment. I believe that you'll need to create a .zip file with the content that you want to deploy.

If you generate the zip file in a directory other than the clone directory, you will need to give the path to the file.

Please feel free to let me know if this works for you or if you need further assistance.

Kind regards,  
Theodora

comments: author: Badr Eddine Zebbiche
body: Hi Theodora,

We changed it now to use "microsoft/azure-vm-linux-script-deploy:1.0.1"

zip was missing and we managed to install it using:

"apt-get -y update \&\& apt-get -y install zip"

I would like to inquire how can we get files from the linuxVM back to the downloads section of Bitbucket?


author: Theodora Boudale
body: Hi [@Badr Eddine Zebbiche](/t5/user/viewprofilepage/user-id/4146814) ,

When you say linuxVM, I assume you mean the one running your Pipelines build?

If so, there are two ways to do that.

One is by using a specific pipe that will deploy the file you specify to the Downloads section.

The second way is via Bitbucket Cloud API.

The following documentation has step by step instructions and details on both options:

* <https://support.atlassian.com/bitbucket-cloud/docs/deploy-build-artifacts-to-bitbucket-downloads/>

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-pipelines
Server timed out - can't reach the website
Asked by Marcin Ciepiel:

Hi,

I am getting an error on the github that the server connection timed out. Also I cannot connect to the organization bitbucket server even via an URL.

It happened all of the sudden after 2 of my pushes today. (It was working completely fine for the past 2 months till the 3rd of today's pushes)

I tried to push 3rd update (it wasn't spamming, I would say every 2 hours?) and all of the sudden... Github says that I cannot push and the server is timed out. Also, I cannot reach the website of our url bitbucket server.

I've tried using data from phone, of course I can connect to the website using my smartphone data, but I cannot connect using my wifi. It stopped working just like that.

It looks like I'm blocked. I'm in UK. Is there any way to check if my IP has been blocked? Or what happened at all? It seems my organization can't see any whitelist IPs document etc.

I have tried updating, resetting wifi and devices, configuring, checking proxies, checking firewalls (I would say almost everything).

It's 100% my WIFI but still... It worked perfectly and just stopped after second push ;?

Hope we can find a solution,

Martin


Answers:
author: Marcin Ciepiel
body: For anyone having exactly same issue as me - it is our internet provider issue. First 3 lines of trace route are showing that.

Apparently my internet provider was having issues yesterday only. Hope that might help somebody. In case it takes longer to fix - call your internet provider with this issue :)


author: Marcin Ciepiel
body: Here is my traceroute for anyone who knows, why it stopped working just out of nowhere in the middle of the work:

Tracing route to XX.XXX.XX.XXXX over a maximum of 30 hops

1 2 ms 2 ms 2 ms 192.168.0.1  
2 \* \* \* Request timed out.  
3 16 ms 17 ms 12 ms nrth-core-2b-xe-823-0.network.virginmedia.net \[62.253.128.141\]  
4 \* \* \* Request timed out.  
5 \* \* \* Request timed out.  
6 \* \* \* Request timed out.  
7 21 ms 19 ms 17 ms m686-mp2.cvx1-b.lis.dial.ntli.net \[62.254.42.174\]  
8 \* \* \* Request timed out.  
9 \* \* \* Request timed out.  
10 54 ms 52 ms 50 ms VECTRA-S.A.ear3.Frankfurt1.Level3.net \[62.67.34.194\]  
11 \* \* \* Request timed out.  
12 \* \* \* Request timed out.  
13 \* \* \* Request timed out.  
14 \* \* \* Request timed out.  
15 \* \* \* Request timed out.  
16 \* \* \* Request timed out.  
17 \* \* \* Request timed out.  
18 \* \* \* Request timed out.  
19 \* \* \* Request timed out.  
20 \* \* \* Request timed out.  
21 \* \* \* Request timed out.  
22 \* \* \* Request timed out.  
23 \* \* \* Request timed out.  
24 \* \* \* Request timed out.  
25 \* \* \* Request timed out.  
26 \* \* \* Request timed out.  
27 \* \* \* Request timed out.  
28 \* \* \* Request timed out.  
29 \* \* \* Request timed out.  
30 \* \* \* Request timed out.

Trace complete.


Tags: bitbucket-cloud

cloud
API auth client_credentials : error_description
Asked by Esteban Parra:

try to get a token , then request a resource but error happend

REQUEST

curl -X POST -u "xxxxx:yyyyyyyyyyyyyyy" <https://bitbucket.org/site/oauth2/access_token> -d grant_type=client_credentials

OUTPUT

{  
"error_description": "No callback uri defined for the OAuth client.",  
"error": "invalid_request"  
}


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

Based on the output you get, it looks that there is no Callback URL set for the OAuth consumer you generated.

You can navigate to the workspace's **Settings** \> **OAuth consumers** , then select the 3 dots (...) next to the consumer \> **Edit**, set a Callback URL and save your changes.

Please feel free to let me know if this works for you and if you need anything further.

Kind regards,  
Theodora

comments: author: Esteban Parra
body: thanks, you were ritth , the callback URL was missing, it works fine with gran type (client_credentials.)


author: Theodora Boudale
body: That's good to hear and you're very welcome, thank you for the update.


author: Prabhu Chilukuri
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) Call back URL in the sense?


Tags: api

authentication

bitbucket-cloud

cloud

rest-api
How to know if a user is a watcher in A PullRequest with Rest API?
Asked by Jgafner:

Hi  
I can't find a way to get the watchers of a Pull Request. Any idea ?


Answers:
author: Hana Ku?erov?
body: Hi [@Jgafner](/t5/user/viewprofilepage/user-id/4091818) ,

I've search through the REST API documentation and unfortunately I wasn't able to find any usable endpoint, which would provide such an information. There is only possibility to add/remove some specific watcher to/from pull request. So maybe you can send always POST request for addition to be sure, the user is there? What exactly are you trying to do? Thank you.

comments: author: Jgafner
body: Hi [@Hana Ku?erov?](/t5/user/viewprofilepage/user-id/1226304)

I wrote a plugin for IntelliJ same as Jetbrains wrote for GitHub but for Bitbucket server.   

I want user to be able to remove / add theme self as watchers. I can add always the two buttons but users will not know the current status and it is a bit annoying.

It is very strange that there is no endpoint for that.

tnx is anyway


author: Jgafner
body: Hi [@Hana Ku?erov?](/t5/user/viewprofilepage/user-id/1226304) Thanks for replying.  

I couldn't find either an endpoint in the rest api doc, this is why I posted the question here hoping in a miracle :)   

I wrote an Intellij Plugin to work against the BB server and wanted to add the same option the user have in the browser to add / remove themselves as a watcher.   

I found this open [Suggestion](https://jira.atlassian.com/browse/BSERV-4841?jql=project%20%3D%20BSERV%20AND%20text%20~%20watchers) from 2014 but after 6 years I don't think it is going to be implemented.

Thanks again


author: Hana Ku?erov?
body: Hi [@Jgafner](/t5/user/viewprofilepage/user-id/4091818),

I've added vote for this issue, but to be honest, I don't think it will help much :-(.


Tags: bitbucket-server

server
Mirror bitbucket cloud repos to codecommit
Asked by Adel.Nagaria:

Currently we are using mirror hook on bitbucket server to mirror to codecommit and run our pipelines and it appears smart mirroring is only used to mirror BB repos. Is there a mirror hook option option available in BB cloud? Or is it possible to use smart mirror to mirror to other repos?


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

I'm afraid that there is no mirror hook/plugin for Bitbucket Cloud. With Smart Mirroring it is possible to mirror Bitbucket Cloud repos to a Bitbucket Server instance, but it is not possible to mirror to another Git hosting service.

You could make use of [Bitbucket Cloud webhooks](https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/) to receive notifications on push in one of your own servers and then mirror to Codecommit.

Another approach that I've found online would be to make use of Bitbucket Pipelines to mirror content to Codecommit.

The following blog post contains some more info on this and may be useful:

* <https://blog.phamviet.net/mirror-bitbucket-to-aws-codecommit/>

Kind regards,  
Theodora

comments: author: Adel.Nagaria
body: Thanks Theodora. This is really helpful, I will certainly look at the blog post, AWS also supports BitBucket as source for codepipeline using codestar integration (<https://aws.amazon.com/blogs/devops/using-aws-codepipeline-and-aws-codestar-connections-to-deploy-from-bitbucket/>) which is also an option. It also seems that BitBucket does not allow a service account, the app authorization/app password are tied to an individual account so there might be a challenge with integration.


Tags: aws-code

bitbucket-cloud

cloud
How do Know, Confluence DB Password Encrypt format in 7.15.2 version by using config.xml
Asked by ICICI Bank Atlassian Support Team:

It there any possible to 7.15.2V Confluence version for knowing the Encrypt Database Password


Answers:
author: Pramodh M
body: Hi [@ICICI Bank Atlassian Support Team](/t5/user/viewprofilepage/user-id/3749687)

It doesn't store in an encrypted format by default and it has to be configured, it's a plain text password in the confluence.config.xml file, and if one has configured the encrypted password in confluence.cfg.xml file, please find the below doc to decrypt the password

<https://confluence.atlassian.com/doc/basic-encryption-1115674740.html>

Let me know in case of any queries

Thanks,  
Pramodh

comments: author: ICICI Bank Atlassian Support Team
body: Hi Pramod,

Thanks for your Prompt response!

Below URL we was previously seen but, it's not working on server level, We are not using the Cipher tools. Could you tell me the exact where I see DB encrypted password in sever.

It is very useful to us, If you know because we have major priority on this help me!

<https://confluence.atlassian.com/doc/basic-encryption-1115674740.html>


author: Pramodh M
body: Hi [@ICICI Bank Atlassian Support Team](/t5/user/viewprofilepage/user-id/3749687)

May I know if you are able to access the database using the password which is present in the confluence.cfg.xml file (Confluence home directory)

Please let me know

Thanks,  
Pramodh


author: Nic Brough -Adaptavist-
body: By definition, if you are using an encrypted password, the plain text version is not stored. You will need to decrypt it using the cipher tools, and that means you'll need the encryption password to decrypt it. You need to ask the people who encrypted it for you.


Tags: confluence-server

server
Mermaid tool support for self message/recursive call in a sequence diagram
Asked by Amit.Gupta2:

Any idea , how can we add a depiction of recursive call or self message call in a sequence diagram using Mermaid tool.


Answers:
author: Bastian -drawio Diagrams-
body: Hey Amit. draw.io supports Mermaid code, you can render it inside of our app. Just go to Arrange \> Insert \> Advanced \> Mermaid. Have fun ;)


Tags: cloud

confluence-cloud
Are we able to add MP4 video file which is more than 100mb
Asked by Chimbli Mallikarjun:

I am trying to add my video to the confluence page which is more than 100 MB.

How can attach the files for large data files?


Answers:
author: Ollie Guan
body: Hi [@Chimbli Mallikarjun](/t5/user/viewprofilepage/user-id/5136061) ,

To configure the maximum size allowed for an attachment

<https://support.atlassian.com/confluence-cloud/docs/configure-attachment-size/>

![QQ??20230202110715.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/237805iEC80AC9DF0E2DD8C/image-size/large?v=v2&px=999 "QQ??20230202110715.jpg")


Tags: cloud

confluence-cloud
How do I embed a video without the multimedia macro in cloud?
Asked by Gregory Muir:

I'm still thinking server and am stuck in the cloud. On server I have a big video. I upload the attachment, open the multimedia macro and pick it, easy-peasy. Well, they deprecated the macro for cloud. They say the videos just appear in the page if you drag and drop. But if I don't, how do they appear? Or can they only be embedded with drag and drop? The adding a file link doesn't work like server.


Answers:
author: Owen Wallis
body: Hi Gregory,

You can either upload, drag and drop (or even copy and paste from another page) video to Confluence. This will make the video appear embedded on the page.

As you note there isn't yet a way on Cloud to reference a file already uploaded, we're looking at the need for that feature.


Tags: cloud

confluence-cloud
Some team members not displaying in search results
Asked by Susan Davis:

I have three direct reports who don't show up in search resultswhen trying to @ them on my team page.

who can I reach out to assist with this?


Answers:
author: Trudy Claspill
body: Hello [@Susan Davis](/t5/user/viewprofilepage/user-id/4371468)

You will need to contact the administrators of your Confluence instance.

This is a community of users of Confluence. We don't have access to your instance. We can make suggestions about how to investigate the issue but cannot investigate the problem directly.
Shape library "TAM Notation" is missing in draw.io
Asked by david cockrell:

if I access old page that have draw.io diagrams and I try to edit, some shapes simply get removed.

it seems that these shapes are somehow missing.

any idea?

I got some info that this is related to Shape library "TAM Notation"

how can I get these shapes back?

Thanks.

Regards,

David


Answers:
author: Bastian -drawio Diagrams-
body: Hi David. May you contact our engineers directly (support@draw.io)? They can have a look into it and give you an answer asap. Thanks.


Tags: confluence-server

server
Is the Analytics feature available for the on-prem version 7.18
Asked by Kelli Archer:

We are still using the on prem version, 7.18 of Confluence and there is a user that is interested in the Analytics feature. Is Analytics available for our version of Confluence? I do not see the Analytics option in the menu bar.

Thanks


Answers:
author: Mikael Sandberg
body: Yes, analytics should be available for you if you are using Data Center and have enabled it. See this [KB](https://confluence.atlassian.com/conf718/analytics-1129689252.html) for more information.


Tags: confluence-server
How to get label value
Asked by Sundar sarma:

Could you please suggest to us how to get the label value?

I have attached a screenshot below.

while fetching the resultset from json response to java, I am not getting the label field itself.

Trying to get this value from java methods.

![label.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/237693iBD3CDA1D5AE34C00/image-size/large?v=v2&px=999 "label.PNG")


Answers:
author: Vamsi Kandala
body: Hi [@Sundar sarma](/t5/user/viewprofilepage/user-id/5134177)

What is the REST API call URL that you are using?

There are separate API calls for retrieving the content of the page and retrieving the labels.

Please refer to this for more info: <https://docs.atlassian.com/ConfluenceServer/rest/8.0.3/>

Hope this helps.

Thanks,  
Vamsi


author: Andrii Maliuta
body: Hello [@Sundar sarma](/t5/user/viewprofilepage/user-id/5134177) ,

Please give more information on what methods you use and on what data as it is not clear.

Label is attached to Page and is stored with its ID, text and other parameters. You can et label data by its ID or by getting page and then its labels and then it s data and so on...

comments: author: Sundar sarma
body: [@Andrii Maliuta](/t5/user/viewprofilepage/user-id/484201) I am using getChildFromParent(parentpageid) from ConfluenceRestServiceApi. It is fetching all the childrens for the mentioned parent page id.

But I did not get any label info.

I am trying to get all labels for all childrens. How to get this


author: Andrii Maliuta
body: Hello [@Sundar sarma](/t5/user/viewprofilepage/user-id/5134177) ,

Not sure abour "**ConfluenceRestServiceApi** " class ad this API, as I usually see other services/managers used, such as **PageManager** , **PageService** , **LabelManager** , **LabelService**, etc.

Here is an example:  

```
PageManager pageManager = ComponentLocator.getComponent(PageManager.class);
SpaceManager spaceManager = ComponentLocator.getComponent(SpaceManager.class);
Space space = spaceManager.getSpace("SPACE_KEY");
List<Page> pages = pageManager.getPages(space, true);
pages.forEach(page -> {
    page.getLabels().forEach(label -> {
        ...
    });
});
```


Tags: confluence-development

confluence-server

server
Is it possible to have reference style links in a confluence page?
Asked by Matt Sampson:

The use case is that I would like to link to one page in multiple places throughout a document, but I don't want to have to make sure each is changed if I want to change the link down the line. This is accomplished in markdown/html through reference style links (<https://www.markdownguide.org/basic-syntax/#reference-style-links>). Is this available in confluence in any way?


Answers:
author: Alex Koxaras _Relational_
body: Hi [@mattsampson7185](/t5/user/viewprofilepage/user-id/5135698) and welcome to the community,

If you place a link (external link) on a confluence page and that link changes at some point, then you have to go and edit that reference. Editing in one place, will not edit all other places. Is this what you want to accomplish?

comments: author: Matt Sampson
body: Hi [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) that is the problem I am trying to solve. I'm speaking specifically of an external link that has multiple uses within the same page. I want to be able to change all the references at once on the same page, without needing to update each one.


author: Alex Koxaras _Relational_
body: Hmm... I'm not sure you can do that :/


author: Matt Sampson
body: Okay thanks, is there any way to request this feature?


author: Alex Koxaras _Relational_
body: Yup! You can create a suggestion here <https://jira.atlassian.com/issues/?filter=98690> or here <https://jira.atlassian.com/secure/CreateIssue!default.jspa> and choose "suggestion"


Tags: cloud

confluence-cloud
How do I create an Impediment in JIRA against a story?
Asked by Thirumalai Venkatachalam, Chandra Sekhar (External):

Hi,

I would like to raise one Impediment in JIRA but I am not getting the issue type as "Impediments" in dropdown. Any thoughts on this?

Regards,

Chandra.


Answers:
author: Trudy Claspill
body: Hello [@Thirumalai Venkatachalam, Chandra Sekhar (External)](/t5/user/viewprofilepage/user-id/5125193)

You will need to contact the Project Administrator for the Jira project where you want to create an Impediment type issue. That type of issue may not be available for that specific project.

comments: author: Thirumalai Venkatachalam, Chandra Sekhar (External)
body: Thanks for the suggestion [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) . Cheers, Chandra.


Tags: cloud

jira

story