youngmon/atlassian-qna huggingface dataset:
Workspace Admin without Access Management
Asked by Erik George:

Hello! I'm new to Bitbucket and I was messing around with user groups, and I have a quick question. Is there a way to grant someone administrator permissions where they have access to the workspace settings **but** with the exception of access management? Since it's specifically restricting a single aspect, I'm assuming it isn't possible and the second-best option is to just grant project admin, but I figured the community would know better.

Thank you!


Answers:
author: Theodora Boudale
body: Hi Erik!

I'm afraid that it is not possible to restrict the sections that a workspace admin has access to.

You could grant project admin permissions. Please keep in mind though that project admins have access to **Project permissions**, which means that they can add users and groups to the project or revoke their access from this project.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
cannot push to repo
Asked by sagism:

I just created a private repo.

I cloned it to my mac, (created new ssh key and added it to the repo).

I can pull from it.

But I cannot push:

% ssh -T git@bitbucket.org  
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

% git push  
Unauthorized  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.

Any suggestion?


Answers:
author: Theodora Boudale
body: Hi [@sagism](/t5/user/viewprofilepage/user-id/684288)!

Repository Access keys provide read-only access to a repo. They are mainly used when working with CI tools that only need to clone repos in order to run builds.

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-repository-access-keys-on-macos/>

What you can do is remove this key from the repo's **Access keys** and add it to your account instead. You can find steps here, section **Provide Bitbucket Cloud with your public key**:

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-macos/#Provide-Bitbucket-Cloud-with-your-public-key>

An SSH key added to your account will give you read-write access to all repos your account has access to. Please note that you will need to remove it from the repo first because an SSH key cannot be associated with an account and a repo at the same time.

Please feel free to let me know how it goes and if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How can I use bitbucket deployments for Heroku Container stack projects?
Asked by Ted Stresen-Reuter:

I've got a project hosted on Heroku. It uses the Container stack (a dockerized solution that, when pushed to Heroku, is built and deployed).

How can a trigger a build, test, and push to Heroku from bitbucket, or should I be doing the testing on Heroku as part of the deploy there?

TIA

Ted Stresen-Reuter


Answers:
author: Theodora Boudale
body: Hi Ted,
> How can a trigger a build, test, and push to Heroku from bitbucket, or should I be doing the testing on Heroku as part of the deploy there?

That depends on the ways that Heroku allows you to trigger these. Does it offer a CLI or a REST API? Or something else?

In case of a CLI or REST API, you could do that from Bitbucket Pipelines by adding the necessary command or REST API call in the script of your bitbucket-pipelines.yml file. Pipelines builds run in Docker containers, so in case you need to use a CLI, the CLI needs to be installed in the Docker image that you specify as a build container in your bitbucket-pipelines.yml file (or you could install it during the build by adding the necessary commands in the bitbucket-pipelines.yml).

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket Pull Request ID
Asked by Galit Oshri:

Hi,

Is there any option to set the Pull Request ID to be unique for entire project that way we would not have same pull request IDs in 2 different repositories.

for example: repository 1 and repository 2, both have Pull request 2 - i need that the pull request will be unique

Thanks,

Galit


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Galit,

it's Ulrich again :)

The quick answer is no - pull request ids across repositories are not unique.

May I use why you need a unique PR id?

I know that the repo id is absolutely unique in the instance across all projects and repos. I suggest you create a combined 'id' or hash that includes both the repo id and the pr id - which will give you a unique reference, like "\<repo_id\>:\<pr_id\>". If you search for particular pull request globally, you can look up the repo by id and then the pr by id.

Hope that helps

Cheers Ulrich

// [Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd)

comments: author: Galit Oshri
body: Hi Ulrich,

Our CI is using the pull request ID as a TeamCity trigger.

Our CI includes builds from more than one repository.

Duplicate pull request ID will run the wrong build.

for example, repository A and repository B.

repository A has changes in pull request 10, repository B has different changes with same pull request 10. 2 different changes will run together (TeamCity will checkout the pull request ID for both repositories)

Thanks,

Galit


author: Ulrich Kuhnhardt _IzymesCo_
body: Do I understand correctly Bitbucket is sending a [webhook notification](https://confluence.atlassian.com/bitbucketserver/manage-webhooks-938025878.html) to TeamCity to trigger a build? The [event payload](https://confluence.atlassian.com/bitbucketserver/event-payload-938025882.html#Eventpayload-sourcebranchupdated) should contain all the necessary details you need to identify the correct pull request. Have you talked to team city support on how to trigger the correct build for the event payload?


Tags: bitbucket-server

server
Unable to login Bitbucket - "We couldn?t log you in"
Asked by Tom:

After numerous attempts logging in and out, clearing cache, disabling extensions, and changing browsers I have been unable to use my Atlassian account log in to Bit Bucket.

I am getting the following error message:

"You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again."

My account is deactivated??


Answers:
author: Syahrul
body: G'day, [@Tom](/t5/user/viewprofilepage/user-id/5318590)

Welcome to the community!

Thank you for reaching out to us. We will reach out to you via a support ticket shortly.

Please be on a lookup for the email notification and a link to the ticket. Thank you for your patience.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Bitbucket pipline fails on yarn install when switch to bitbucket Runner
Asked by Uladzislau Ramanchanka:

Hello, folks!  

When we have switched to bitbucket Runner mechanism our pipline started failing and thrown an error on yarn install:  

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

when we use size: 2x memory instead of using bitbucket runner there is no error.   
Will appreciate any support!  
Thanks!


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

Could you please let me know what type of Runner are you using? Is it a Linux Docker, Linux Shell, MacOS, or Windows Runner?

What is the operating system of the host machine this runner is running?

Kind regards,  
Theodora

comments: author: Uladzislau Ramanchanka
body: Hello, Theodora  
this is MacOs runner thus OS is MacOs  
Best regards, Uladzislau


author: Theodora Boudale
body: Hi Uladzislau,

Thank you for your reply.

Just to give you some context, Pipelines builds that run on Atlassian infrastructure use Docker containers. For every step of your build, a Docker container starts using the image you have specified in your bitbucket-pipelines.yml file. The repo is cloned in that container, and then the commands of the step's script are executed. When the step finishes that Docker container gets destroyed.

MacOS Runners do not use Docker containers. They use Bash to run pipeline steps on your MacOS machine (host device). This allows the runner to execute applications on the host but does not provide a clean build environment for every step.

I would suggest running the build on this Mac without using a runner:

* clone the repo on this Mac from a terminal
* do a **git reset --hard** to the commit that this Pipelines build is running for
* then execute the commands of the build inside the clone directory and see if **yarn install** shows the same error or if it succeeds

This is to narrow down whether the issue seems to be related to the runner or to running the build on this Mac.

If you want an environment similar to the one on Atlassian infrastructure and you have a Linux machine, you could use a Linux Docker Runner instead, which uses Docker containers for each step.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
We couldn?t log you in
Asked by geir ytterdahl:

I only get \<\<We couldn't log you in\>\> when I try to login to bitbucket. Works in Trello though.

Is it because my Bitbucket account has been deactivated? Think I read that this may be the problem.


Answers:
author: Theodora Boudale
body: Hi [@geir ytterdahl](/t5/user/viewprofilepage/user-id/5318428) and welcome to the community!

Your Bitbucket Cloud account was indeed deactivated, which is the reason for the error you were seeing.

I went ahead and reactivated it, could you please try logging in when you have time, and let me know if it works?

Kind regards,  
Theodora

comments: author: geir ytterdahl
body: That did it. Thanks!

Best regards,  
Geir.


author: Theodora Boudale
body: You are very welcome, Geir! Please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Create release event in bitbucket
Asked by Sebin Sebastian:

There is an option in gitlab where we can create release events with description and source code displayed as assets. Is there any option like that in bitbucket ?


Answers:
author: Aron Gombas _Midori_
body: In Bitbucket, the closest thing is the concept of [deployments](https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-monitor-deployments/). Also note that in Jira, [versions (releases)](https://support.atlassian.com/jira-software-cloud/docs/release-your-teams-work-in-versions/) has its own concept. These are not the same, but in terms of functionality, there is some overlapping.

If I were you, I'd check out both to see which one is more applicable to your use case.

comments: author: Sebin Sebastian
body: Thanks for the reply. I will check about release feature in Jira.


Tags: bitbucket-cloud

cloud

release
Please Execute Git GC on this repository
Asked by coderakesh:

Hello Atlassian Team,

I have following repository on my workspace , I have take required steps to reduce the Size of My repo But the Changes are not reflected yet on Bitbucket.

It would be great if you run git gc on my repo from your side. And Please Mention the Updated Size. Also I want to ask How can I run or trigger garbage collection from our side if in your we run into this issue again.

workspace - \[REDACTED\]

repository - \[REDACTED\]


Answers:
author: Ben
body: Hi again,

I've executed a gc against that repository and the gc has reduced the size of the repository from 3.1GB to 1.9GB.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: coderakesh
body: .


author: coderakesh
body: "Please check again when I'm done cleaning the repository. It was around 1.2GB, which is significantly smaller than I have on remote."

Please Sync the changes.


author: coderakesh
body: Hello [@Ben](/t5/user/viewprofilepage/user-id/4537226) Can you Please check this


author: Syahrul
body: Hey [@coderakesh](/t5/user/viewprofilepage/user-id/2321354)

Have you pushed the change from your local copy to remote? I have triggered the GC, and the repo size remains at 1.9 GB, which means the repo is still not updated with the changes you made locally.

Regards,  
Syahrul


author: coderakesh
body: Hey [@Syahrul](/t5/user/viewprofilepage/user-id/744536)

Apologies for your Inconvenience But Can you Please Again Check if the newly changes i made affected the size or not, It would be great help.

And Please Also Let me know about the Size if it changes.

Regards


author: coderakesh
body: [@Syahrul](/t5/user/viewprofilepage/user-id/744536) [@Ben](/t5/user/viewprofilepage/user-id/4537226)


author: Ben
body: Hi [@coderakesh](/t5/user/viewprofilepage/user-id/2321354)

The repo size has remained the same, I would suggest executing the following command to locate large files in your repository:

```
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
| awk '/^blob/ {print substr($0,6)}' \
| sort -r --numeric-sort --key=2 \
| numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
```

Once you have located these large files, you can then follow our documentation below to either convert these to LFS or remove them from your GIT history (keeping in mind that each commit will store this large file repeatedly, therefore inflating your size significantly):

- <https://support.atlassian.com/bitbucket-cloud/docs/use-bfg-to-migrate-a-repo-to-git-lfs/>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Hi, I configured the trail version of Crucible in my machine. Started the fisheye instance. i am able to access the fisheye from my machine. But from the remote machine i am not able to access.
Asked by Saritha Palwai:

This is like i am able to access <http://localhost:8060> from the machine on which fisheye is installed. But from the other machine with <http://ipadrees:8060> i am not able to access. This is giving time up error. Thanks in advance fro any help.


Answers:
author: Felipe Kraemer
body: Hi Saritha,

Normally this should work, so it looks like a network issue or something like that.  
Can you please try to ping the FishEye server IP from the machine where you're trying to access <http://ipadrees:8060>? Do you have a firewall in between? Maybe you should allow the port...

Also, what error do you see? Is it in the web interface or in the logs?

Kind regards,  
Felipe Kraemer  
Atlassian Support
Does Atlassian backs up SVN repositories in Fisheye?
Asked by Kamal Sheikh:

In evaluating Fisheye, I couldn't find any reference to backups being made or provision of some kind of an SLA (service level agreement). We are evaluating Fisheye simply because it gives us a hosted SVN solution so it will free us from taking backups or managing space on the server. Would it all be done for us?


Answers:
author: Michael Knight
body: Backup information is located here: <https://confluence.atlassian.com/display/AOD/About+Your+Data>

It includes SVN data and FishEye configuration.


Tags: cloud

fisheye-crucible-svn-ondemand
command line review attach file
Asked by dhandu:

Hi  

<br />

I would like to know how to attach the file for review using crucible command line and how to use the remote API via command line to attach a patch or review file  

<br />

<br />

Thanks  

Dandu


Answers:
author: Bob Swift (personal)
body: See [CRUCLI-5](https://studio.plugins.atlassian.com/browse/CRUCLI-5)

comments: author: dhandu
body: Thank you Bob for all your support, I used this command for upload the file from command line to crucible review link.

curl -u test:test -F @1.cgi <http://localhost:8060/crucible/rest-service/reviews-v1/CLI-40/addFile> -v


Tags: cloud

fisheye-crucible-svn-ondemand
Change default branch in git for fisheye-hosted repos?
Asked by Brad Beyenhof:

If I'm hosting my own bare git repo, I can go into it and run the following command to make the 'develop' branch get checked out by default when cloning:

$ git symbolic-ref HEAD refs/heads/develop

Unfortunately, when I go into the fisheye bare repo (I'm running it on Linux) and do the same thing, 'master' still gets checked out by default when I clone. I've also tried the various types of re-indexing after doing so, but it doesn't work.

I actually got this to work once briefly, but I was so frustrated at that point that I don't really know which steps caused this to happen, and I can't reproduce it.

I've also tried 'git remote set-head origin develop' from the client and then pushing, but that doesn't seem to help. It's one of the things I did the time that it worked, though.

I'm running Fisheye 2.7.8, and I'm using a repo I created myself (carefully converting from subversion) and am pushing (with --mirror) up to a bare Fisheye-managed repo.


Answers:
author: Conor
body: This is not currently possible through the FishEye UI. You can go directly to the bare git repo that is managed by FishEye if you have access to the FishEye server and use git symbolic-ref as you have described. Any clones done after that will default to the develop branch.

comments: author: Brad Beyenhof
body: I never got that to work, but we're using Stash now, anyway


author: Brad Beyenhof
body: Alternately, a way to make managedUrl_tag.class display "git clone -b develop https://user@server/git/repo.git" as the "Clone this repository" string could be an interesting workaround. But that's nowhere near what I'm actually looking for.


Tags: branch

clone

default

git
Crucible Repositories Not Updating
Asked by Samuel Teasdale:

I'm currently the administrator for my company's Crucible server (though I'm trying to convince our corp IT folks to take it over in the near future). We've been using Crucible with eval licenses for the last two months. Twice now I've seen Crucible stop updating. It happened for the second time on Friday and I was out of the office through the following Tuesday. When I got back to the office, every repo was reporting no updates for the last 70 hours. I restarted crucible and it began updating again.

Has anyone else seen this behavior? If so, can you provide some advice on what might be causing it and how to prevent it?

**UPDATE:** I'm not sure it's relevant but I thought I'd point out that we've got Crucible indexing both Subversion *and* Git repos and we see the same behavoir with both types.


Answers:
author: rverschoor
body: I'd start with analyzing the logfiles to see if there are any errors reported that would explain why the repos are no longer updated.  
This can be Java heap errors, communication problems with the version control software server, etc.
Crucible+Fisheye run at boot as JIRA user on Ubuntu?
Asked by jmooo:

We already have JIRA installed and running as it's own user (jira), now that Crucible+Fisheye are installed how do I have it run at boot as the jira user instead of creating another user for fisheye+crucible?

Should this guide be everything I need? <http://confluence.atlassian.com/display/FISHKB/How+to+start+FishEye+and+Crucible+at+boot+time+on+Linux>

I followed the instructions there and rebooted, JIRA started on it's own as usual but fecru did not...

Using:

Ubuntu 10.04 Lucid

Jira 5.0

Crucible+Fisheye 2.7.11


Answers:
author: jmooo
body: I'll answer my own question here: No, FeCru should not be run on the same account as JIRA.

When JIRA is installed it creates a limited shell for the 'jira' user which can only access JIRA data, so it will have no read-write permissions elsewhere for the FeCru installation. Make a separate 'fecru' user for Crucible+Fisheye
How can I search all repositories with advanced search?
Asked by Oliver Schneider:

Want to search all repositories but want to limit the file type and user other feathes from the advanced search but when switching to it, it will limit the search to one specific repository.

The simple search is capable of searching over all repositories but showing too many hits in files I would like to filter. When switching to advanced search I loose the capability to search all repositories.

Is there a way to search all repositories in the advanced search view?

P.S.  
We are using FishEye + Crucible.


Answers:
author: LeonardoL
body: Hi Oliver,

Have you tried to use EyeQL like recommended here <https://confluence.atlassian.com/display/FISHEYE/Searching+FishEye#SearchingFishEye-UsingtheAdvancedSearch>

Cheers,

Leonardo.

comments: author: tggagne
body: The advanced search only searches a single repository. How can I search all my repositories?


author: Sandika Peiris
body: I also facing the same issue, in CLI we can run it through a loop and search for each repo, but how to do it in web interface ?
How do I resolve a 503 Response code when installing/configuring FishEye?
Asked by Peter Bernier:

I'm trying to install/configure FishEye as per the instructions on Atlassian's website, but either the web server for the install doesn't start properly (and I see multiple exception message in the command window), or I get a 503 Response code when I try to access the installation link.

How can I get past this?

(answer forthcoming, logging for reference...)


Answers:
author: Peter Bernier
body: The \[installation instructions\]\[1\] currently aren't clear, especially on a Windows environment.  

Here's what you need to do (in my case on a Windows system).  

1. Extract the fisheye archive to the directory where you're intending to run Fisheye from. (on my system, I made this \&lt;drive\&gt;:\\Atlassian\\FishEye).  
2. Create a directory for your data. (I made this \&lt;drive\&gt;:\\Application Data\\FishEye)  
3. Create an environment variable (Window System Variable) named 'FISHEYE_INST' and set it to the path you created in Step 2. ('INST' in this case means \*instance\* and not \*installation folder\*.  
4. Copy the 'config.xml' file from \&lt;extracted_archive\&gt; to your FISHEYE_INST folder.  
4. Open a command prompt and run the \&lt;extracted archive\&gt;\\bin\\run.bat file. (ie \<drive\>:\\Atlassian\\FishEye\\bin\\run.bat).   
- The online documentation is a little misleading at this point. They indicate that you run 'start.bat', which won't work (or at least, it wouldn't work for me...)  

6. Open a browser and point it to 'http://localhost:8060'.   

Following the steps above let me get FishEye up and running without any further issues.  

\[1\]: <http://confluence.atlassian.com/display/FISHEYE/Installing+FishEye>
JIRA avatar doesn't match Fisheye avatar
Asked by Aleeda Crawley:

I set up my profile avatar and now I see it associated with some content, like JIRA activity. But in Fisheye commits I still just see the default gray starfish.

Here's the URL of the starfish:

<https://ethepeople.atlassian.net/source/avatar/jesse?s=40>

And here's the URL of my chosen avatar:

[https://ethepeople.atlassian.net/secure/useravatar?size=large\&ownerId=jesse\&avatarId=10115](https://ethepeople.atlassian.net/secure/useravatar?size=large&ownerId=jesse&avatarId=10115)

Is this a bug or do I need to set my avatar in multiple places or is it some sort of admin setting?


Answers:
author: NikE
body: This is a feature request that has not yet been resolved. The feature request is at:

<https://studio.atlassian.com/browse/JST-3808>

If you are interested, you can follow the "relates to" links on the feature request and find that a pretty big re-working of how avatars are handled is in the works. For the meantime, you can 'watch' the above feature request and as soon as there is some news on the issue, you will get an email.


Tags: avatar

cloud

fisheye-crucible-svn-ondemand