youngmon/atlassian-qna huggingface dataset:
Buildkit cache-from not working
Asked by Thor Zhong:

I'm checking the newly available feature in the pipeline for the docker buildkit. Trying to utilize the build cache feature to improve the build speed. But after some tests, I noticed the cache layer can't be reused consistently.

The build command I used is  

```
docker build orch-tool --tag image-name --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from image-name-at-registry
docker tag image-name image-name-at-registry
docker push image-name-at-registry
```

I tested the above commands locally without issue, and the caching works perfectly. But when tested in the pipeline, it doesn't work.

The dockerfile contains \`apt update\` in early layers, not sure if this is the problem.


Answers:
author: Theodora Boudale
body: Hi [@Thor Zhong](/t5/user/viewprofilepage/user-id/3140730),

**(1)** Does caching not work at all in Pipelines?  
Or does it not work in some builds?   
Or does it work only for some layers?

I am trying to understand the scope of the issue you are reporting.

**(2)** Have you added the following command in the script of your bitbucket-pipelines.yml file (before the docker build command)?

```
- export DOCKER_BUILDKIT=1
```

This is necessary in order to be able to use Docker BuildKit in Bitbucket Pipelines.

**(3)** Are you using this in Pipelines builds that run in our own infrastructure, or have you set up [runners](https://support.atlassian.com/bitbucket-cloud/docs/runners/) that run in your own infrastructure?

Kind regards,  
Theodora

comments: author: Thor Zhong
body: 1. The cache works in some builds. But failed more often I can feel

2. Yes, I did this export

3. I'm using runners from bitbucket infrastructure.

For example, I ran three builds one after another. They all have the same sha256 (not sure if you can see it clearly) at the same layer, but build 12 used the cache layer while build 15 did apt installation again. I think build 12 ran 1 day after build 11 finished, build 15 ran 4 days after

#11![No11.png](https://community.atlassian.com/t5/image/serverpage/image-id/220856i59DF601C26D73C40/image-dimensions/543x193?v=v2 "No11.png")

#12

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

#15

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


author: Theodora Boudale
body: Hi [@Thor Zhong](/t5/user/viewprofilepage/user-id/3140730),

Thank you for the info.

My guess is that there may be a change between the different Pipelines builds either in the base image you are using in your Dockerfile or in one of the tools you are installing with the *apt install* command, which makes the dependencies get downloaded again.

Are you using a public Docker image as a base image in the Dockerfile? If so, would you mind sharing which image it is and also the full list of tools you are installing with *apt install*, so I can try to reproduce and investigate?

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Bitbucket fails to start - SpringMVC dispatcher [springMvc] could not be started
Asked by Joel Andrews:

Hi There,

I recently upgraded to 8.4.1 without any issues, however, upon a system restart Bitbucket refuses to start again, in the GUI it's throwing this error:

* SpringMVC dispatcher \[springMvc\] could not be started

In the logs I am seeing these errors:

```
2022-10-07 10:44:46,992 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
org.springframework.context.ApplicationContextException: Failed to start bean 'meshController'; nested exception is com.atlassian.bitbucket.repository.RepositoryOfflineException: bitbucket.scm.repository.offline

Caused by: com.atlassian.bitbucket.repository.RepositoryOfflineException: bitbucket.scm.repository.offline
Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: localhost/0:0:0:0:0:0:0:1:7777
Caused by: java.net.ConnectException: finishConnect(..) failed: Connection refused
```

<br />

I haven't found any answers so far that have helped to resolve this, please advise.  
Thank you,  
Joel


Answers:
author: Philipp Schweizer
body: Same here, the fix was to downgrade the local version of **git.** From **2.38.0** to **2.37.3** in our case  
Even the official [docs](https://confluence.atlassian.com/bitbucketserver/bitbucket-data-center-and-server-8-0-release-notes-1115659343.html) say, that it simply must be higher than **2.31** - nevermindHave a nice day.

comments: author: Stephen Leavitt
body: I just encountered this as well. Bitbucket Server 8.3.1 on Ubuntu 18.04, unattended-upgrades upgraded git from the git-core PPA from 1:2.37.3-0ppa1\~ubuntu18.04.1 to 1:2.38.0-0ppa1\~ubuntu18.04.1. I had to download the source and rebuild the packages, but after installing 2.37.3, Bitbucket Server now appears to start without issue.

[@Philipp Schweizer](/t5/user/viewprofilepage/user-id/5027342) Thank you for documenting your fix, it helped here as well.


author: Joel Andrews
body: Thank you! I ended up removing the Ubuntu packaged version of Git and downloading and compiling git-2.37.3. That resolved the issue for me!

<https://github.com/git/git/archive/v2.37.3.zip>

[@Philipp Schweizer](/t5/user/viewprofilepage/user-id/5027342) [@Stephen Leavitt](/t5/user/viewprofilepage/user-id/5051476)


author: CTL ENG Tools
body: [@Philipp Schweizer](/t5/user/viewprofilepage/user-id/5027342) thank you.

We were testing out Git **2.38.0** to see if 2.37.x listed under [Supported platforms](https://confluence.atlassian.com/bitbucketserver/supported-platforms-776640981.html) is a hard limit, and apparently, it is!


Tags: bitbucket-server

server
delete a repository, missing settings button
Asked by matthewaceware:

I've seen post after post and even videos on how to delete a repository, but they mention things that aren't what I'm seeing. There should be a settings button when I go to the repository, but I don't see that. Failing that, how do I delete this repository? I haven't used bitbucket in years and just want this out of date code to die.

Thanks,

Matthew


Answers:
author: Ben
body: G'day Matthew!

To delete a repository, you will need to access Repository Settings \> Repository Details.

Once you are on this page, the "Manage Repository" dropdown button in the top right should give you the option to "Delete Repository".

If you do not have admin access, you will not be able to delete the repository - I can see you belong to a team workspace of which you are in the Developer group which only has "WRITE" access.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Haven't logged in for a while, and can't access my account
Asked by Jeremy Corbett:

I haven't used bitbucket for a while as I haven't worked for the client I was using it for, for about 8 months.

When I go to log in, for some reason I am asked to create a username. When I try to enter my existing username, it says its already taken.

This is definitely the email address I used to create the account.

What do I do?


Answers:
author: Caroline R
body: Hi, [@Jeremy Corbett](/t5/user/viewprofilepage/user-id/5048930), welcome to the community!

I see you have created an internal ticket with us and shared the username you used to have in Bitbucket Cloud. Checking this username, we can see this is not linked to the email you used to create this question. What might have happened is that the email you are using now was configured [as an alias](https://support.atlassian.com/bitbucket-cloud/docs/set-email-aliases/) in your Bitbucket account, and then when you accessed it using this address, you were redirected to create a new BB account.

With that said, as the email you used to create this question is not the owner of this Bitbucket Cloud account, we cannot share this information with you as email addresses are private data.

If this account belongs to you, you can try logging in to [Bitbucket.org](http://bitbucket.org/) with any of the emails you may have used for this account.

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Custom cache downloaded but not found
Asked by Jools:

Hi.

I've set up a pipeline to generate Flutter APKs. It's working fine except for caching of Flutter dependencies.

Here's my bitbucket-pipelines.yml file with simplified steps for posting here.

```
image: cirrusci/flutter:latest

pipelines:
  custom:
    generate-apk:
      - step:
          name: Flutter lint, test and build
          script:
            - flutter pub get
          caches:
            - pubcache
definitions:
  caches:
    pubcache: $HOME/.pub-cache
```

Build set up outputs:

```
Cache "pubcache": Downloading
Cache "pubcache": Not found
```

If I head over to Pipelines and click on the \`Cache\` button I see this:

![Screenshot from 2022-10-07 12-49-47.png](/t5/image/serverpage/image-id/219630i6C0C10EDC0EB98D5/image-size/large?v=v2&px=999 "Screenshot from 2022-10-07 12-49-47.png")

It's definitely there and under the 1GB limit.

Why is it downloading it but then not finding it? Or is it just now downloading it?

Any ideas?  

Thanks!


Answers:
author: Theodora Boudale
body: Hi [@Jools](/t5/user/viewprofilepage/user-id/4969190),

The defined cache will be saved after the first successful build and it will be used in subsequent builds. Any cache which is older than 1 week will be cleared automatically and repopulated during the next build.

Did you run another build after the first successful build that generated this cache?

Is the following output from a build that ran after the build that generated the cache, or from the build that generated the cache?

```
Cache "pubcache": Downloading
Cache "pubcache": Not found
```

Kind regards,  
Theodora

comments: author: Jools
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

I get cache now indeed. Thanks.

I just found it misleading to see it in the dependency caches window.

Bye!


author: Theodora Boudale
body: You are welcome, I'm glad to have helped!

A step will attempt to download a cache if you have defined a cache for that step in your bitbucket-pipelines.yml file.  
If it doesn't find anything because it is the first time it is running with a cache definition, you will see the "Not found" message in the Build setup.

The cache will show in the dependency caches window after it is generated and saved.

If you have any other questions, please feel free to reach out.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cache

cloud
how to deploy apk file to repository download using pipeline? when apk file is in gitignore folder
Asked by Taufik Fadlurahman Fajari:

I successfully deploy apk file when I try to exclude my apk file from gitignore, but can I deploy apk to repository download using pipeline?


Answers:
author: Jools
body: If I understand correctly you want to be able to download the generated APK?  
You can do so using artifacts. Here's how we do it with a Flutter app:

```
artifacts:
  - build/app/outputs/flutter-apk/app-release.apk
```

You then get a tab at the top where you can get your file(s):

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

comments: author: Taufik Fadlurahman Fajari
body: thanks, I finally found what I want to do


author: Igor Stoyanov
body: Hi [@Taufik Fadlurahman Fajari](/t5/user/viewprofilepage/user-id/5048733) . It's a good idea to use [bitbucket-upload-file pipe](https://bitbucket.org/atlassian/bitbucket-upload-file/src/master/).

```
script:  - pipe: atlassian/bitbucket-upload-file:0.3.3    variables:      BITBUCKET_USERNAME: $BITBUCKET_USERNAME      BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD      FILENAME: 'app-release.apk'
```

Regards, Igor


Tags: bitbucket-cloud

bitbucket-pipelines
Push and Fetch points to different URL
Asked by Mohamed Najeemudheen:

Hello Guys,

I am new to Git, sorry if this is a silly question.

I have different URLs for push and Fetch(read-only repo) configure. Using sourceTree, i can fetch from my read-only repo. But when I want to push changes using SourceTree, I cannot because it is pointing to my read-only repo where i cannot write. How can i achieve something as below using SourceTree

$ git remote -v  
origin git://git-readonly.abc.com/MyRepo (fetch)  
origin git@git.abc.com:MyRepo (push)

I have configure it using the command below. But could not make it work with SourceTree. Using Bash it works.

$ git remote set-url --add --push origin git@git.abc.com:MyRepo


Answers:
author: minnsey
body: Sourcetree doesn't currently support split push/fetch urls, for a single remote, however you can specify a second remote, with push/pull urls and Sourcetree will give the option to choose when pushing or pulling


Tags: git
SourceTree is not auto refreshing when its focused in [Windows 10]
Asked by Georgi Kirilov:

When I am working on a problem and I go back to SourceTree its not auto refreshing the window to see all my changes.  
Anyone else experience this?


Answers:
author: Ana Retamal
body: Hi Georgi, what do you mean by "its not auto refreshing the window"? Do you mean that it's slow on getting focus or that the changes are not being shown? In the first case you might be affected by the bug [SRCTREEWIN-7238](https://jira.atlassian.com/browse/SRCTREEWIN-7238). For the second case, please note that changes will be not be shown immediately, how long is it taking for you? And also, which Sourcetree version are you using ?

Best regards!

Ana

comments: author: Georgi Kirilov
body: Thanks, I had a lot of bookmarks and didn't know that was affecting the time for the changes to show in source tree, after closing most of them changes showed fast again in Source Tree.  

I think Source tree should first check the changes on the active tab repository.


author: Ana Retamal
body: Hi Georgi, thank you for your feedback :) and I'm glad it's working better for you now!

Have a nice day,

Ana


Tags: bug

query

windows
Cannot login while installing SourceTree (VM)
Asked by kbatanin@aicd.com.au:

Hi,  

I cannot sign in while installing SourceTree on my VM. Once I enter credentials it just keeps spinning and never logs in. I can use this same account to login to Atlassian pages directly so I think it's not an account issue.  

Could it be because I am running a VM?  

Thank you.  

Regards,

Kostya.


Answers:
author: Ana Retamal
body: Hi! Are you on Windows? This issue has been related to Security levels in IE in the past. Can you try the following:

* Turn off compatibility mode in IE. To do that, open Internet Explorer, go to the *Advanced options* tab and click on *Reset your Internet Explorer Settings*
* Check *Delete personal settings*
* Change your Internet Explorer Security Zone Settings:

1. Open IE, click on the gear
2. Select "Internet Options"
3. Select the "Security" tab
4. Select "Custom Level" for Internet
5. Find "Access data sources across domains" and select "Enable" (make note of what the setting currently is)
6. Try logging into Sourcetree again

After logging in, follow steps 1-5, but ***reset the setting back to the previous option***.

Let us know if you can log in now! If it doesn't, tell us which Sourcetree and OS version are you using.

Best regards,

Ana
Unable to find git
Asked by earlofberkeley:

![be1fb8d15c](/t5/image/serverpage/image-id/9410iB935F4C63F080EF9/image-size/large?v=v2&px=999 "be1fb8d15c")I get this everytime I launch sourcetree.

Now when I click the top, it downloads and this appears again.

If I click the second, it just reopens this dialog. Doesn't open the Open File Dialog.

If I click the third it just reopens again.

and the 4th closes it and I can't use it.


Answers:
author: earlofberkeley
body: Bump


author: minnsey
body: Hi  

Sourcetree stores a path to the git.exe it is using, when it starts it will run git.exe --version to check it is where it thinks it is etc.  

If that git.exe -version fails it will pop this dialog.  

It sounds like the git -version call is failing for some reason. Is there anything in %localappdata%\\Atlassian\\Sourcetree\\Sourcetree.log?  

Has Sourcetree successfully downloaded git? It should be in %localappdata%\\Atlassian\\Sourcetree\\git_local. If it is and you open a console and run %localappdata%\\Atlassian\\Sourcetree\\git_local\\cmd\\git.exe -version what does that give you back?

comments: author: earlofberkeley
body: ```
ERROR [2017-11-15 22:45:39,124] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied
ERROR [2017-11-15 22:49:50,560] [1] [SourceTree.App] [OnStartup] - Failed to start
System.NullReferenceException: Object reference not set to an instance of an object.
 at SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)
 at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](NotificationDialogWindow notificationWindow, Tuple`2 customAction, VistaTaskDialogIcon icon)
 at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](String title, String message, Tuple`2 customAction, String cancelLabel, String suppressionSetting, Action`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)
 at SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)
 at SourceTree.Security.PageantSshKeyAgent.Launch(Boolean promptForKeyIfBlank, String keyfile)
 at SourceTree.Security.DefaultSshKeyManager.LaunchSshAgent(Boolean promptForKeyIfBlank, String keyfile)
 at SourceTree.AppRoot.OnboardIfRequired()
 at SourceTree.AppRoot.OnStartup(StartupEventArgs e)
 at SourceTree.App.OnStartup(StartupEventArgs e)
ERROR [2017-11-15 22:50:01,706] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied
```


author: minnsey
body: Unfortunately that error is not to do with finding Git, however that should be fixed in v2.3.5.0. What version are you running?  

were you able to check the following?  

<br />

*Has Sourcetree successfully downloaded git? It should be in %localappdata%\\Atlassian\\Sourcetree\\git_local. If it is and you open a console and run %localappdata%\\Atlassian\\Sourcetree\\git_local\\cmd\\git.exe -version what does that give you back?*


Tags: windows
i cant upload enymore
Asked by lucy anderson:

![broken git hub..JPG](/t5/image/serverpage/image-id/9409i20E4EBE0A5A70B7C/image-size/large?v=v2&px=999 "broken git hub..JPG")i updated unity and this happened i tried changing the hub still happens i uninstalled unity and reinstalled it same problem i deated sourse tree and that dident happen i fell like im at the end of my rope with this i tryed googleing but i dont know whats wrong i just whant to upload stutff


Answers:
author: Nic Brough -Adaptavist-
body: Your question does not make any sense. Could you try to rewrite it in a readable way? (Try punctuation, it exists for a good reason)

comments: author: lucy anderson
body: no it pretty much whats wrong how do you think i fell i update unity and see this mess I can't upload stuff i keep getting the same weird error and all these random files and a block of error messages that make zero sense and that's impossible to google
SourceTree AutoRefresh settings have no effect
Asked by Kevin Ivey:

I am using the latest version 2.3.5.0 of SourceTree on a Windows 7 laptop. I have already configured the following settings:

General Settings

* Refresh automatically when files change = checked
* Refresh when application is not in focus = checked

Repository Settings (Advanced tab)

* Automatically refresh = checked
* Refresh remove status in the background = checked

However, even with all of these selections made, I am still required to hit View \| Refresh every time I want to do a commit in order to see all of the available changes.

All of the basic uninstall/reinstall/reboot steps have been tried.


Answers:
author: Ana Retamal
body: Hi Kevin, do you have a large number of tabs open? Do you see any difference if you only have one tab open on startup?

Regards,

Ana


Tags: windows
source tree showing blank login window
Asked by saadat_2003:

I have installing source tree 2.3.5 on windows 7 but it is showing blank login window on use existing account


Answers:
author: Ana Retamal
body: Hi! This issue was reported in our bug tracker at [SRCTREEWIN-7244](https://jira.atlassian.com/browse/SRCTREEWIN-7244). Our developers are rolling a fix, but if you haven't been prompted for the upgrade yet you can use the following workaround:
> From a working install collect the accounts.json and passwd files.
>
> Delete the Atlassian folder from the AppData/Local directory for your user. Run the installer for 2.3.1, close it when you get the blank login window. Place the account.json and passwd files into the Atlassian/SourceTree folder. Rerun the installer. It should detect the account and password from those files and bypass the request for a login.

Please make sure the email address used in the file is valid, yours and associated with a valid Atlassian account, in order to be in compliance with the Atlassian EULA.

In the future, it's a good practice to do a search within the Atlassian Community first as someone else might have already asked the same questions as you and you might be able to find the solution quicker. This question for example has been asked in the Community repeatedly :)

Let us know if you have any questions!

Regards,

Ana

comments: author: saadat_2003
body: Kindly ,plz help , I have no running install of source tree ,Kindly give me account.json and password file.

Or tell me way how to make these files


author: Ana Retamal
body: Hi, if you read through the comments in the bug ticket you'll find the solutions proposed by the users. In [this comment](https://jira.atlassian.com/browse/SRCTREEWIN-7244?focusedCommentId=1630005&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1630005) a user posted an example file that you can use.

You can also go through the rest of the comments to see what other users did.

Hope that helps!

Ana
How to ignore a file from the preview?
Asked by Adrien:

Hi,

First, thanks very much for the work on SourceTree, I'm using it for years and love it.

Now, I think lot of developers work with lock files (for example, every users of npm or Yarn have that package.lock file!) and these are literally crashing ST as I guess it tries to do a diff of them which slow down the app massively and makes it almost unusable.

Of course these files have to be tracked as it's their purpose. So I can't just .gitignore them.

Is it possible to tell to ST to not preview them?

Thanks!


Answers:
author: bgannin
body: ![Screen Shot 2017-11-15 at 2.19.01 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/9496i7C5A1C09231732CD/image-dimensions/411x312?v=v2 "Screen Shot 2017-11-15 at 2.19.01 PM.png")

Check out the *Ignore File Patterns* option in Diff settings.

comments: author: Adrien
body: Hi Brian,

It's working fine thank you! However I noticed this filter is not applied on the stashes. So when you click on your stash, if it contains a big file, you're ending up with ST freezing as well.


author: Joshua Barker
body: This is not working for me... I added *package-lock.json* to the **Ignore File Patterns** field and restarted the app, but when I select the *package-lock.json* file in either staged or un-staged files, it still displays in the diff-compare / preview window...

![Screen Shot 2018-12-02 at 2.57.58 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/39145i81FE174D2A308C42/image-size/large?v=v2&px=999 "Screen Shot 2018-12-02 at 2.57.58 PM.png")


author: Sebastian Brink
body: Have a look here: <https://jira.atlassian.com/browse/SRCTREE-6205>

It appears the spec for "Ignore File Patterns" has changed. Now you have to explicitly specify wildcards, e.g. \`\*package-lock.json\` instead of \`package-lock.json\`.