youngmon/atlassian-qna huggingface dataset:
git@bitbucket.org: Permission denied (publickey)
Asked by ecjbosu:

I have tried for a couple of days to get two factor authentication to work. I set up the keys as the instructions for linux say. I set up for two factor authentication.

I try to clone using ssh I get this error.

I try to set-url origin to ssh from http and pull, I get this error.

The other long post for this question was of not help.

Thanks


Answers:
author: Pamara Lim
body: Hi [@ecjbosu](/t5/user/viewprofilepage/user-id/4358153)   

Have you added the public key generated at your linux machine to the Bitbucket (Personal Settings\>SSH Keys)?  

After adding that you can verify with the command ssh -T git@bitbucket.org.

comments: author: ecjbosu
body: Pamara,

Thank you so much for the response, I so appreciate it. Yes, I have added the public key generated to the SSH keys, and executed ssh command. I have done this so many times I lost count. Add, test, delete key, generate a new key, add, test, delete, do again.

Before bitbucket had a major upgrade a year or so ago in late 2019 or early 2020, I had this working. Moving to two factor Authentication, I can't seem to get this to work.


author: Pamara Lim
body: Hi ecjbosu,

<br />

Could you share the other long post thread link that you mentioned? Also if you could send the error logs when trying to git clone that will be helpful. You could enable verbose mode logging for git using

    GIT_SSH_COMMAND="ssh -vvv" git clone ....


Tags: bitbucket-cloud

cloud
I do not receive the verification emails from Atlassian(Bitbucket)
Asked by Copado Jira account:

Hi,

I am trying to access my Bitbucket account (vcuarental@copado.com) and I am prompted to include a verification code that was sent to my email address.

I have not received the email.

I already checked the Spam folder and there was no Bitbucket or Atlassian verification code email.


Answers:
author: Theodora Boudale
body: Hi [@Copado Jira account](/t5/user/viewprofilepage/user-id/2195402) ,

I checked our email logs and I can see a few email sent from Atlassian to the email you mentioned on 20th April 2021, and all of them show a status of having been delivered to your email server.

I would suggest checking with your email administrator on why these emails don't reach your inbox, as they show to have been delivered to your mail server.

If you have any questions or need any further info, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Error cloning remote repo 'origin'
Asked by Jayesh Mahajan:

Dear Team,

We are using Jenkins for our CI/CD process and we are using bitbucket as a code repository.

For few days our most of the jobs are getting failed due to the below error.

Error:

```
:42:24  ERROR: Error cloning remote repo 'origin'15:42:24  hudson.plugins.git.GitException: Command "git fetch --tags --progress -- git@bitbucket.org:automationanywhere/cloudscript.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:15:42:24  stdout: 15:42:24  stderr: fatal: The remote end hung up unexpectedly15:42:24  fatal: protocol error: bad pack header15:42:24  15:42:24  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2639)15:42:24  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2079)15:42:24  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)15:42:24  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:601)15:42:24  	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:830)
```

Could you please help us to solve this issue ASAP?

Our repo size is also less.

Thanks


Answers:
author: Jayesh Mahajan
body: I also checked the below link.

<https://community.atlassian.com/t5/Sourcetree-questions/Cann-t-clone-a-large-repo/qaq-p/1061592>

but, I have a question here, In my job, we are creating a new node each time and the fresh clone will happen. So In this case where I need to set this value?

comments: author: Jayesh Mahajan
body: Any update? {#toc-hId--1267505395}
----------------------------------


Tags: bitbucket-cloud

cloud
Someone has already added that SSH key.
Asked by Poorya:

It seems like someone already added the SSH key to the bitbucket Repo. but I want to add it to the workspace ssh.

How to find where the public key is used and remove it on bitbucket cloud?


Answers:
author: Syahrul
body: Hi [@Poorya](/t5/user/viewprofilepage/user-id/2375480)

G'Day!

To identify the previous owner of the SSH key or remove it you'll have to reach out to support for assistance.

However, if you don't need the old SSH key you can always re-generate a new one by following our guide below:

* [Set up an SSH key](https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/)

I hope this helps.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Did Atlassian recently change the login?
Asked by Justin Weiler:

I am probably losing my mind but I remember logging into the web pages via a username and not my email. Of course its utterly broken atm. Did something recently change or do I need to go see a doctor?


Answers:
author: Theodora Boudale
body: Hi [@Justin Weiler](/t5/user/viewprofilepage/user-id/4356660) ,

Login to Bitbucket website was possible with username until 2016, before we introduced Atlassian accounts (the ones for id.atlassian.com):

* <https://bitbucket.org/blog/atlassianaccount>
* <https://support.atlassian.com/bitbucket-cloud/docs/upgrade-to-atlassian-account/>

In 2016, we introduced Atlassian accounts to provide single login to different Atlassian Cloud products with the same account. Since that time, login to <https://bitbucket.org/> is possible only with the primary email of the Bitbucket account (which is also the email of the linked Atlassian account). It is no longer possible to log in with username or with any of the email aliases of the account.

This change affects only login to the website. For any Git operations via HTTPS (clone, pull, push) or when making API calls, you will still need to use your Bitbucket username.

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

Kind regards,  
Theodora


author: Justin Weiler
body: I had the site admin add my email. WTF guys. not cool.


Tags: bitbucket-cloud

cloud
Why is the dynamic variable not working in my command?
Asked by Falco:

Hi,

My script works fine when for example the variable

```
$ZIP_FILE_NAME in - zip -r $ZIP_FILE_NAME . -x *.git*
```

is written static like:

```
- zip -r demo.zip . -x *.git*
```

However, when I try to use via call to a dynamic variable defined in the global variables of the repository. I have this error in the pipeline:

`The user-provided path demo.zip does not exist.`

Can you help? here the script I use:

```
image: node:6.9.4
pipelines: 
default: 
- step: 
name: "Zip the code" 
script: 
- AWS_ZIP_FILE_DSN_NAME="demo" 
- echo "zip file" 
- apt-get update && apt-get install zip --assume-yes 
- zip -r $ZIP_FILE_NAME . -x *.git* 
artifacts: - $ZIP_FILE_NAME 
- step: name: "Push the zip file to S3" 
caches: - node 
script: - echo "push to s3 bucket" 
# install Amazon CLI 
- apt-get update 
- apt-get install -y python --assume-yes 
- apt-get install -y jq 
- curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py 
- python get-pip.py - python -m pip install --upgrade "pip < 21.0" 
- pip install awscli - aws configure set default.region eu-west-1 
- aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID --profile $AWS_PROFILE_NAME 
- aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY --profile $AWS_PROFILE_NAME 
- aws iam get-user - temp_role=$(aws sts assume-role --role-arn $AWS_ROLE_ARN --role-session-name "assumedrole" --profile $AWS_PROFILE_NAME) 
- aws configure set aws_access_key_id $(echo $temp_role | jq .Credentials.AccessKeyId | xargs) --profile $AWS_PROFILE_NAME 
- aws configure set aws_secret_access_key $(echo $temp_role | jq .Credentials.SecretAccessKey | xargs) --profile $AWS_PROFILE_NAME 
- aws configure set aws_session_token $(echo $temp_role | jq .Credentials.SessionToken | xargs) --profile $AWS_PROFILE_NAME 
- aws s3 cp "./$ZIP_FILE_NAME" $AWS_S3_BUCKET --profile $AWS_PROFILE_NAME
```

The error is generated for

```
- aws s3 cp "./$ZIP_FILE_NAME" $AWS_S3_BUCKET --profile $AWS_PROFILE_NAME
```

Thanks a lot on advance

Aude F


Answers:
author: Falco
body: Hi finally managed to have it work. The problem came from the artifacts. They cannot be set with dynamic variables. Code works OK otherwise. May need a few updates.


Tags: bitbucket-pipelines

cloud
Why is bitbucket pipelines very slow?
Asked by Fernane Zohair:

Since last week pipelines are very slow, especially the following tasks for each step:

* **starting the agent**
* **cloning**

I went from 2 minutes to 6 - 8 minutes per deployment. Have you also experienced the same issues?


Answers:
author: kw
body: Yes, I can confirm that my pipelines are also awfully slow today, some are failing on git checkout :(

comments: author: Andrei Kazantsev
body: Yes, we've confirm that too, start for every step become incredibly slow,

clonning from repo takes from 10 up to 20 min

![Screenshot from 2021-04-20 16-37-42.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/139527iF0E62858C2411242/image-size/large?v=v2&px=999 "Screenshot from 2021-04-20 16-37-42.jpg")


author: Fernane Zohair
body: Well, at least I am glad to read that. I hope they will fix that soon...


author: obrizan
body: From my personal experience: I use Bitbucket Pipelines daily for 7+ years, sometimes delays in provisioning and build setup happens.

Recently I've started a separate project to monitor Bitbucket Pipelines performance ([CIPerf](https://www.ciperf.com)). This project automatically pushes changes to a repository hourly. The pipeline is triggered. Average time between push is over and the very first line of "script" section is 25 seconds, lowest is 18 seconds, and there are several worst cases: 03:28, 01:16, 00:59. So it proves that sometimes Bitbucket Pipelines may cause a significant delays with build setups.

![Screenshot 2024-07-20 at 16.25.04.png](https://community.atlassian.com/t5/image/serverpage/image-id/336835iD32E505E94DFB321/image-size/large?v=v2&px=999 "Screenshot 2024-07-20 at 16.25.04.png")

Couple ideas how to optimise build setups:

1. Set Git clone option to 1 (in your log it is 50). So Bitbucket will checkout only the very recent version of your repository, not 50 previous versions. [Git clone behavior/Depth](https://support.atlassian.com/bitbucket-cloud/docs/git-clone-behavior/#Depth).
2. Disable caches downloading (in case you don't need them).
3. Try different Docker images, e. g. use \*-alpine versions of images. Alpine images are 5-10 times smaller than default images, so they will be fetched faster.
4. Hope it helps to speed-up your pipelines jobs.


author: Attila Szeremi
body: Yes, Bitbucket Pipelines steps have had huge overhead since I starting using them 3 years ago.

And because of that, despite it being a bad practice, I'm doing everything in a single step, otherwise my 6 minute build time would take 8 minutes or more.


author: Jon Blaze
body: Can confirm that the build time has **increased dramatically.**

My usual build time used to be under **2** minutes, now for some odd reason it is now taking a little over **6** minutes.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
How to get all three services to work docker nodejs and aws-cli in one step
Asked by t1279k:

I would like to have 3 services running docker, nodejs, aws cli. As you see below under the definition section I have mentioned the image I want to run a specific versions. When I run the below pipeline I get error. But no error message

Please let me know if I am using it wrong

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

```
image:
name: atlassian/default-image:2

definitions:
  services:
    nodejs:
      image: node:10.17.0
    aws-cli:
      image: amazon/aws-cli
  steps:
   - step: &group-deploy-to-ecs2
       name: Group-Deploy-ECS
       services:
        - docker
        - nodejs
        - aws-cli
       script:
        - echo "test"
        - node --version
        - docker --version
        - aws --version

pipelines:
  branches:
    master:
     - step: 
       <<: *group-deploy-to-ecs2
       name: deploy-common-api-dev
       deployment: common-api-dev
```


Answers:
author: Tom?? Ligenza
body: [@Justin Thomas](/t5/user/viewprofilepage/user-id/777223) Can you please provide more information how to solve this issue? I have the same problem right now with pipeline:

```
definitions:
  services:
    aws-cli:
      image: amazon/aws-cli
pipelines:
  branches:
    development:
      - step:
          name: Build and push Docker image
          image: atlassian/default-image:3
          caches:
            - node
          services:
            - docker
            - aws-cli
          script:
            - node --version
            - docker --version
            - aws --version
```

![Screenshot from 2022-03-14 14-13-29.png](https://community.atlassian.com/t5/image/serverpage/image-id/188012i3D30DF9082C75936/image-size/large?v=v2&px=999 "Screenshot from 2022-03-14 14-13-29.png")

comments: author: Tom?? Ligenza
body: Information provided by Atlassian Support:
> I've tested the same service defintiion(amazon/aws-cli) on my repository. It appears that the entrypoint for this image is the awscli executable itself and it is expecting us to pass a command to it which is why the build is failing without any logs.
>
> Instead, please use the below commands to install aws in the image directly.  
>
> ```
> apt-get update -y && apt-get install awscli -y
> ```
>
> You can also install these commands in the default atlassian image, push it to the docker hub as public image and then use it as a service container. I hope this helps. Please let me know if you have any further questions.


author: Darvesh
body: Thank you.


author: Justin Thomas
body: [@t1279k](/t5/user/viewprofilepage/user-id/4306534) Can you please contact [Atlassian Support](https://support.atlassian.com/) to debug this further?


Tags: bitbucket-pipelines

cloud
how to create jira issue hierarchy using Javascript?
Asked by Arshina Masud:

how can I create a Jira issues hierarchy in the confluence page using javascript?

I want to create an epic and it is link with story using javascript. like this I want to create jira issue hierarchy in a jira project.


Answers:
author: Craig Nodwell
body: Hi Arshina, are you trying to create multiple Jira issue from Confluence?

comments: author: Arshina Masud
body: yes
How to choose an Old editor for a new page?
Asked by oranges:

Hello. On this [page](https://support.atlassian.com/confluence-cloud/docs/add-formatting-to-your-page/) I see:

"You have the option to switch from the New editor to the Legacy editor by using the Legacy editor template on the right sidebar of a new page"

But I don't understand how I can do it (I don't like New editor becouse I can't place images in a row, only in a column)


Answers:
author: Jack Brickey
body: Hi [@oranges](/t5/user/viewprofilepage/user-id/5183722) ,

at this point to enable the old editor, you will need to contact [Atlassian support](https://support.atlassian.com/contact/#/) directly and request that they enable it for you.

comments: author: oranges
body: Hi, [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369)

Thanks for your answer, I'll try


Tags: cloud

confluence-cloud
How to merge only 2 of 3 tables with same structure inside the table transformer macro?
Asked by Santhosh Kumar:

Hi Team,

I'm looking to have 3 tables say T1, T2 \& T3 inside the table transformer macro. All tables have same column structure.

And looking to merge only 2 tables at a time and display the merged table in the page. (Either T1 \&T3 or T2 \& T3).

Can you pls help with the SQL query on the same?

Thanks and Regards,

Santhosh


Answers:
author: Santhosh Kumar
body: Have found the answer. Thanks

Select \* from T1

UNION

Select \* from T3


Tags: confluence-server

filter

server

table

table-filter

table-filter-and-charts

table-transformer
how to sort the attachments using confluence rest API
Asked by Sundar sarma:

I am using confluence API to get attachments. i would like to sort the attachments based on the attachment name, by date, and by size.

I am using the below rest API to get attachments.

**confluence/rest/api/content/{pageid}/child/attachment?limit=25\&start=0\&expand=history**


Answers:
author: Sundar sarma
body: In confluence itself there is sort by title, sorty size and sorty by creation date right.

you can observe the below screenshot.

i have to sort by filesize, title and created date as well

referring below rest api documentation

<https://docs.atlassian.com/ConfluenceServer/rest/6.12.1/> - confluence rest api

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


author: Peter Van de Voorde
body: Hi [@Sundar sarma](/t5/user/viewprofilepage/user-id/5134177) ,  

Seems like you're using the old deprecated Confluence REST API.  

I would recommend you to use the following endpoint: <https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment/#api-pages-id-attachments-get>  

But you can't sort by name, only by different relevant dates.   

I hope this helps.  

Cheers,  
Peter


Tags: cloud

confluence-cloud

confluence-development

questions-for-confluence
Export information about all the pages in a space
Asked by Alexander Garkov:

Hello,

I would like to export information about all the pages in a space (GSEP/Confluence). This should include:

* Similar to the information provided in "Page information"
  * Name of the page
  * Creation date
  * Created by (name), not userID
  * Modification date
  * Modified by (name)
* Similar to the information provided in "Analytics"
  * Date of last visit
  * Optional: # of visits for a period longer than 3 months

What I did/tried so far:

* Exported some pages as XML. In "entities.xml" - I could find the name, created date and last modification date. However the author and the last editor are not visible (\[CDATA\[....\]\]).
* Manually going to a page and collecting the information.

Question:

Does someone know how could I extract this information automatically? Manually visiting each page is not really an option as there are quite a lot of them, furthermore the last visit will be set to mine, which is not really an usefull information.

Thanks beforehand!


Answers:
author: Velizar Borisov
body: Hi [@Alexander Garkov](/t5/user/viewprofilepage/user-id/5183651) and welcome to the community!

Depending on what do you intend to do after the export you can either:

- Export the whole space by going to Space tools (space administration) \> Content Tools \> Export. Here you can select what file to generate XML, HTML or PDF. Just be aware that you need the correct permissions for the space to do so.

- Use Confluence API to export all the information needed. Here are some examples how the API can be used: <https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/>

Hope that helps,  
Velizar

comments: author: Alexander Garkov
body: Hello Velizar,

thanks for the answer. As mention in my previous post, I've already tried exporting the space, but the information is only partially (readily available) there. The intended use is also mention above - extracting the information (see the bullet points) about each page.

I will try the API.

Best!


Tags: cloud

confluence-cloud
how to sort the attachments using confluence rest API
Asked by Sundar sarma:

I am using confluence API to get attachments. i would like to sort the attachments based on the attachment name, by date, and by size.

I am using the below rest API to get attachments.

confluence/rest/api/content/109844408/child/attachment?limit=25\&start=0\&expand=history


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Sundar sarma](/t5/user/viewprofilepage/user-id/5134177)

On cloud you can use the v2 rest api endpoint, which allows you to sort by created-date, -created-date, modified-date, -modified-date:

```
GET /wiki/api/v2/pages/{id}/attachments
```

<https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment/#api-pages-id-attachments-get>


Tags: cloud

confluence-cloud

confluence-development
Easy way to see changes since last opened a page
Asked by lucas_xapo:

Hi Team,   

I am wondering if there is a way to see what are the changes in a page since last time I opened the page.  
Google docs and microsoft are supporting this feature out of the box. The feature is basically: when you enter to a document, if there were some changes made since last time u saw opened the doc, they show a button to highlight the differences.

Are you planning to implement something like this? I know it can be simulated by comparing 2 versions, but most of the times I don't know which was the last version I actually read.


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

Out of the box, this functionality doesn't exist unfortunately. Usually, whenever someone changes something on a page you are watching or created, then you are receiving notifications of what changed. There is not point for Confluence to bombard you with continuous notifications of pages you just visited (even by mistake) and you have no interest on them what's so ever.

As you stated, currently the best way is to compare versions and see all the changes made. From jira.atlassian.com I can't see any such suggestion, but feel free to create one your self, vote and watch it to get updates (<https://jira.atlassian.com/issues/?filter=98690>)


Tags: cloud

confluence-cloud
How can I make an empty folder look like a page in the left-hand column?
Asked by Jenny Jones:

I have an empty folder that still displays the folder icon. I want it to display in the hierarchy as a page, but it still looks like a folder. I tried moving the page up and down the list with no effect.

Thanks


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

Can you please share a screenshot of that folder? And how it looks on the page tree?

comments: author: Jenny Jones
body: Thank you for the reply. Two pics attached. The top pic shows a page with a folder icon. The second pic shows the page link in a tree.

![folder.png](https://community.atlassian.com/t5/image/serverpage/image-id/248686i1E4E85469C0C5087/image-size/large?v=v2&px=999 "folder.png")![folder-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/248687i5E6CBA55705E02B5/image-size/large?v=v2&px=999 "folder-2.png")


author: Alex Koxaras _Relational_
body: Thank you for the clarification [@Jenny Jones](/t5/user/viewprofilepage/user-id/5183436).

This is a known bug recorded here <https://jira.atlassian.com/browse/CONFCLOUD-75526>

You can watch and vote for the above issue to get updates. As a workaround, you can create a new page, and paste the old's page content there. Publish the new page and see if the issue is resolved. If yes, delete the old page.


Tags: cloud

confluence-cloud