youngmon/atlassian-qna huggingface dataset:
CSS and Script files not found behind Apache reverse proxy
Asked by rucotec:

Installed Bitbucket 7.21 on Ubuntu 20.04. Everything works when I directly connect to <http://bitbucket.myserver.mytld:7990>.

I configured Apache2 reverse proxy and now none of the CSS, img, and JS resources are found, I simply get the plain unadorned html. That indicates that the bitbucket server IS being accessed through the proxy, just none of the resources are there. Comparing the \<img src=... and other resource paths with the WebInspector shows that they are identical between a page directly accessed vs. the same page accessed through the proxy.

![resources-not-found.jpg](/t5/image/serverpage/image-id/193964i6A2C1FA23F7EC65E/image-size/large?v=v2&px=999 "resources-not-found.jpg")

Here is my virtual host file:

```
<VirtualHost *:80>
? ? ServerName bitbucket.myserver.mytld
? ? ServerAdmin webmaster@localhost
? ? ErrorLog ${APACHE_LOG_DIR}/error.log
? ? CustomLog ${APACHE_LOG_DIR}/access.log combined
? ? ProxyPreserveHost On
? ? ProxyRequests Off
? ? ProxyVia Off
? ? <Proxy *>
? ? ? ? Require all granted
? ? </Proxy>
? ? ProxyPass / http://localhost:7990/bitbucket
? ? ProxyPassReverse / http://localhost:7990/bitbucket
</VirtualHost>

```

and bitbucket.properties

```
# context path
server.context-path=/bitbucket

#### settings for http
server.scheme=http
server.proxy-port=80
server.proxy-name=bitbucket.myserver.mytld
```

<br />

What am I missing?

Thanks for any help


Answers:
author: Graham Twine _Slm_
body: When you look at the page you are loading in the image above with Dev tools what is the error code and the URL of the resources that fail to load?

Hopefully that will guide you. Is it a 403 or a 404?  
Is the URL a legitimate URL?

Given you are also seeing "Oops you found a dead link" indicates the context may be work.  

Have a look at the setup in your ${JIRA_INSTALL}/conf/server.xmlas well.

comments: author: rucotec
body: here is one such url copied from the web inspector.

<http://bitbucket.myserver.mytld/s/-888238628/6dea001/n1cn5w/1.0/_/download/resources/com.atlassian.bitbucket.server.bitbucket-webpack-INTERNAL:bitbucket-logo/images/logo/bitbucket.svg>

The url is identical for direct connect to 7990 as well as for the proxy connection. Connecting through the proxy gives a 404 not found, direct connect shows the bitbucket.svg logo. Same issue for everything that is referenced from the html like img, scripts, css etc.


author: Graham Twine _Slm_
body: Do you have the correct configuration in your ${server_home_dir}/conf/server.xml?

Confirm the proxyHost='[bitbucket.myserver.mytld'](http://bitbucket.myserver.mytld/s/-888238628/6dea001/n1cn5w/1.0/_/download/resources/com.atlassian.bitbucket.server.bitbucket-webpack-INTERNAL:bitbucket-logo/images/logo/bitbucket.svg)

The proxyPort and the scheme are set correctly


Tags: bitbucket-server

reverse-proxy

server
I m connect to aws pipeline but in aws only show public repo
Asked by Ayush Sharma:

![Screenshot from 2022-04-20 18-35-08.jpg](/t5/image/serverpage/image-id/193927iCC210B9279E3A565/image-size/large?v=v2&px=999 "Screenshot from 2022-04-20 18-35-08.jpg")


Answers:
author: Mark C
body: Hi [@Ayush Sharma](/t5/user/viewprofilepage/user-id/4764383)

Thank you for reaching out to the community.

To load repositories in AWS CodeStar, you will need to be the admin or owner of a workspace that you're trying to connect to.  
Based on the screenshot, I believe you've connected to your personal workspace which is why you're seeing those 3 repositories.  
If you'd like to see other repositories from a different workspace, you would need to be added as admin of the workspace first.  
For this, you can reach out to the person who manages the workspace to add you as an admin.

Hope it helps and do let me know if you have further questions.

Regards,  
Mark C

comments: author: Ayush Sharma
body: thank you [@Mark C](/t5/user/viewprofilepage/user-id/1210823)


Tags: bitbucket-cloud

cloud

devops
why does sourcetree not update the file list
Asked by alan.jeeves:

Often there are files to commit but when i click commit, the file list is empty even though in the repo list it states files have changed

Capture.PNG  
[](https://community.atlassian.com/t5/Sourcetree-questions/why-does-sourcetree-not-update-the-file-list/qaq-p/182275?attachment-id=7865){#link_11694a943d5000}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/5342/1/Capture.PNG){#display_11694a943d5000_0}


Answers:
author: Seth
body: Check the search box in the upper right corner. If there is text there, it will only show files that are pending, and have file names that contain the search string.

comments: author: alan.jeeves
body: This is not the case, the software is still buggy


author: Seth
body: Not sure the downvote was called for - you didn't include that part of the UI in your screenshot, and that is a common explanation for the behavior you described.

If the search box is indeed empty, then that DOES sound like a bug, and there is nothing the **users** on this forum can do for you, except to direct you to file a bug report at jira.atlassian.com.
ssh key in sourcetree terminal
Asked by Jyothsna:

I have created a new ssh public and private keys using puttygen. copied public key in the stash server, and privatekey in Pageant in my computer. I am able to clone the git repositories from sourcetree. Now I am trying to use git clone command from sourcetree terminal which is not allowing to use the same keys created. I copied the same public key which is earlier copied in stash to known_hosts also.

I get an error saying:

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

Can you suggest how I can be able to clone or pull repository through sourcetree terminal.


Answers:
author: airct
body: You might try using the "default" name for the key (id_rsa) and put it in "c:\\Users\\{username}\\.ssh

Terminal does not seem to always look to pageant for the key list


author: Jyothsna
body: Ok Seth Foss. Thank you for the help.


author: Seth
body: You don't want to put your own public key in your own known_hosts - that's for something different.

The SourceTree terminal is just the command line git client. If you don't get an answer here quickly, you might try a site with a broader audience like StackOverflow, because there are more git purists there, and they tend to have more advanced knowledge about configuring git.
sourcetree git status failed with code 128 not a git repository
Asked by Marko Pahi?:

sourcetree.png

For some reason this popup started to appear on my sourcetree, and therefore my sourcetree has become unusable. It generates a new popup every 2 seconds.   
The strangest thing here is the location. Under this location (.git) I have eclipse egit projects, and I have never opened this repositories with sourcetree. My sourcetree repositories are in a different folder.  

Please help how can I stop this?  
[](https://community.atlassian.com/t5/Sourcetree-questions/sourcetree-git-status-failed-with-code-128-not-a-git-repository/qaq-p/317532?attachment-id=3019){#link_11694abe27e729}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/9631/1/sourcetree.png){#display_11694abe27e729_0}


Answers:
author: Aleks Yenin (Polontech)
body: There is issue opened for that bug. It is registered here: <https://jira.atlassian.com/browse/SRCTREEWIN-727>


author: Seth
body: Do you have a .gitconfig file in that folder? If not, you should.
How can i skip screen: Log in to your Atlassian Account.
Asked by Gritsay Aleksey:

When i try first time open SourceTree it ask me account but I haven't got internet, i have a license file.


Answers:
author: Seth
body: <https://answers.atlassian.com/questions/37039953>

comments: author: Gritsay Aleksey
body: Is it normal, that i need copy some files from another SourceTree installetion?? I think it should be another offical result.


author: Seth
body: Since 1.8, SourceTree no longer appears to offer a user-friendly way to do offline installations. There is a feature request here that you should vote up: <https://jira.atlassian.com/browse/SRCTREEWIN-5417>
Why master name is not selected when Pull?
Asked by lazyberezovsky:

I have a small issue with pulling master branch. When I pull any other branches, *'Remote branch to pull'* contains corresponding branch name. But when I pull master branch *'Remote branch to pull'* is empty. And I have to scroll list of all branches and pick master every time I pull this branch. Not big problem, but it's annoying. Is it possible to fix this issue?

master.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Why-master-name-is-not-selected-when-Pull/qaq-p/370528?attachment-id=12682){#link_11694ae2ec1d2c}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/11025/1/push.png){#display_11694ae2ec1d2c_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/Why-master-name-is-not-selected-when-Pull/qaq-p/370528?attachment-id=12683){#link_11694ae2ec1d2c_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/11025/2/master.png){#display_11694ae2ec1d2c_2}


Answers:
author: lazyberezovsky
body: Everything is OK with push - all remote branch names are filled correctly, including master branch:

push.png  
I have issue only with pulling master. Very strange thing. BTW I checked other developer's PC and there is no problem with pulling master. Note - I started with git shell usage, and switched to Source Tree several days later.


author: Seth
body: What does your push dialog look like for the master branch? Does it also start with a blank in the Remote Branch dropdown?


Tags: branch

git

pull-request
How do I create a linked working tree?
Asked by Dave Gardner:

I tried to use the **Add Working Copy** pane of the **Clone / Add / Create Repository** function to create a second working copy, but get the message "*This is not a valid working copy path*". There is nothing special about the working copy path: it is just an empty folder.

Am I doing this right? What I want is a second copy (different branch) of the same code, working on the same repo. I think the git worktree command is what I want, but I'd like to manage it from within Souircetree if that's possible. Any help on this would be greatly appreciated.


Answers:
author: Seth
body: You have to create the working tree via command line, then use Add Working Copy (which is essentially "Manage an existing repository") to manage it with SourceTree.

Vote up this issue if you'd like to be able to create the working tree in the GUI: <https://jira.atlassian.com/browse/SRCTREE-3204>
I have uncommitted changes that replaced/updated files in my depot. If I choose discard will all of those files be reverted to their previous version?
Asked by Maddmark:

I'm pretty new to source control and source tree and I've just update a bunch of files that I'd like to revert. Now that pose the question, I'm wondering if I should rethink my workflow. I'm working on a Unity project. My working folder is my depot. I recently updated a number of files in my depot, but I haven't yet committed anything yet. I'd like to revert them to their original state to hopefully get my project working again.

I'm hoping that I can just discard those changes and everything will go back to where it was, but before I get myself in any deeper I thought I should ask.

Also - if anyone has any thoughts on workflow/best practices I'd appreciate any wisdom out there.


Answers:
author: Seth
body: Discard will remove any uncommitted changes, which will restore the file to the same state as the most recent commit in the branch you have checked out. "Remove", on the other hand, will delete the file.

Be careful when getting rid of uncommitted changes. If you realize you discarded/removed something you wanted to keep that wasn't committed, Git cannot restore it for you.

If you're new to Git, you should checkout the Git book: <https://git-scm.com/book/en/v2> Focus on Sections 1.1-1.4, then Chapters 2 and 3. All examples are command line, but having a basic understanding of the commands should make SourceTree pretty intuitive.
How can I change atlassian account at sourcetree?
Asked by Daniel Escudero:

I need to know how to change Altassian Account at SourceTree installation, because reinstall it isn't working and it isn't logged with my account


Answers:
author: Gerrit
body: I would like to know that too. I recently installed SourceTree at work and logged in with my private Atlassian account. Later on I was told that there is a corporate account for our office that I should use. I briefly looked through the configuration files in %LOCALAPPDATA%\\Atlassian\\SourceTree\\ and found accounts.json, which contains my Atlassian username, but changing this manually doesn't seem to be a good idea. Any hints?
Internal Diff .cpp
Asked by wjviant:

The internal diff tool has recently stopped previewing .cpp files, although it still works for .hpp files. Any thoughts?


Answers:
author: Seth
body: Sounds like something has caused git to regard the .cpp files as binary:

<http://stackoverflow.com/questions/6855712/why-does-git-treat-this-text-file-as-a-binary-file>

<http://stackoverflow.com/questions/14990993/override-gits-choice-of-binary-file-to-text>

comments: author: wjviant
body: Was the encoding used to store the .cpp file. - thanks alot for the help
Install SourceTree without Internet connection
Asked by Magnus Nilsson:

I have downloaded SourceTreeSetup_1.8.3 and try to set it up on a virtual machine without Internet connection but I cannot get through Log in to your Atlassian account. See pic.

<br />

Q: Is there a way to bypass this?

Thanks!

/Magnus  

P.S. I saw this <https://answers.atlassian.com/questions/37051024> but don't understand how to pass the Login point.  
[](https://community.atlassian.com/t5/Sourcetree-questions/Install-SourceTree-without-Internet-connection/qaq-p/30177?attachment-id=10338){#link_11694b6ae422fc}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/886/1/SourceTreeLoginAcc.JPG){#display_11694b6ae422fc_0}


Answers:
author: Magnus Nilsson
body: Thanks :smile: I'll try it.


author: Seth
body: Try: <https://answers.atlassian.com/questions/37039953>
SourceTree initial setup fails on login (403)
Asked by WSB ATW:

Today I was trying to setup SourceTree on a co-workers machine.

While we were able to start the install without issue, when we got to the screen that requires you to log into Atlassian she kept getting a 403 error. The URL from the embedded instance of IE was **res://ieframe.dll/http_403_webOC.htm#https://id.atlassian.com/login?application=sourcetree**

We were able to log in via Chrome without issue, but as soon as we switched over to IE we got this same error on login. There doesn't appear to be anything wrong with the IE install.

We attempted to login via Google, as well as via an Atlassian user account.

Is there a way to skip this step of the process so we can proceed, or perhaps have it use a different browser? (IE is not set to the default browser on the machine.)

Thanks!


Answers:
author: WSB ATW
body: In case it helps others, it turns out her Privacy settings in IE (11.current) were set too high.

Internet Options \> Privacy \> Default (button)

That was enough to get them from High to Medium, and allowed her to log in.

Didn't even think to check these.

comments: author: Seth
body: Very helpful. I'm sure I'll be linking others to this the next time the issue crops up.


author: Seth
body: Reported as a bug: <https://jira.atlassian.com/browse/SRCTREEWIN-5467>


author: James Skemp
body: Awesome. Thanks again Seth!


author: Seth
body: You might try to connect to [id.atlassian.com](http://id.atlassian.com) directly in IE, and log in, then try the installation again.

comments: author: James Skemp
body: Same 403 error after logging in.

More information details:

This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.  
For more information about HTTP errors, see Help.

<br />

Outside of initial install issues with one of our other designers, she was able to login without issue.


author: Seth
body: I'd advise you to check the computer's settings to make sure it isn't using a proxy. I've seen repeated reports of users unable to complete that step of the install who were behind proxies.


author: WSB ATW
body: Thanks for your help troubleshooting, Seth! Turns out it was an issue with too high of privacy settings.


author: James Skemp
body: We also tried again this morning on her machine, both before and after clearing all cookies. I'm waiting to get local admin access to another computer to try on that, as well as another designer's machine.


author: WSB ATW
body: 1.8.3 (Windows).

We don't appear to be behind a proxy server. This morning I was able to login on a different machine without issue.


author: Seth
body: What version of SourceTree did you install? Are you behind a proxy server?
When diff with image file, cannot show the "Before" one
Asked by testmonstar01:

When use SourceTree to diff with image file, the "Before" can only show "No Preview Available" even it has a "Before".


Answers:
author: mparpaillon
body: Same issue here. Have you find a solution ?

comments: author: testmonstar01
body: Not found a solution in SourceTree.

Though can use External Diff tool for a temporary solution...


author: Anas
body: What tool do you use for that ? (on mac ? )


author: testmonstar01
body: I use the meld or P4merge(mainly) on Mac.

[https://developer.atlassian.com/blog/2015/12/tips-tools-to-solve-git-conflicts](https://developer.atlassian.com/blog/2015/12/tips-tools-to-solve-git-conflicts/)
Clone Mercurial repository error
Asked by rkopaev:

When i try clone Mercurial repository from Bitbucket in SourceTree, I get error

image2016-4-5 8:6:55.png

Problem only with Bitbacket, Mercurial repository on the local network works fine.

How to understand what is the problem?  
[](https://community.atlassian.com/t5/Sourcetree-questions/Clone-Mercurial-repository-error/qaq-p/341564?attachment-id=11866){#link_11694b97f7b7ca}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10207/1/image2016-4-5%208%3A5%3A35.png){#display_11694b97f7b7ca_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/Clone-Mercurial-repository-error/qaq-p/341564?attachment-id=11867){#link_11694b97f7b7ca_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10207/2/image2016-4-5%208%3A6%3A55.png){#display_11694b97f7b7ca_2}


Answers:
author: Phill Fox
body: Is the issue only with clone or are you also experiencing other connection issues? You might wish to review the steps in <https://answers.atlassian.com/questions/38070040> where the solution was to update/install GIT.

comments: author: rkopaev
body: I am sorry that it is not clarified at once - problem with Mercurial.  
Problem only with Bitbacket, Mercurial repository on the local network works fine.


author: Seth
body: The solution may be the same, just update/reinstall Mercurial instead of Git.


author: rkopaev
body: I use system Mercurial (by TortoiseHG). Tried to update it. Try to switch on Embedded Mercurial and update it. Error still persists.


author: Seth
body: That's unfortunate. What happens if you try the clone from the terminal?


author: rkopaev
body: I get the same error.
How do I change the user name when cloning a GIT repository via HTTP?
Asked by mtichenor_cricut:

I'm trying to clone a repository from a dedicated GIT server, using the HTTP address in SourceTree. I have two email addresses, and I accidentally entered the wrong one. Unfortunately, now it's not asking me to enter a username and it always uses the incorrect one.

How do I clear the bad username from SourceTree so I can enter the correct login information?


Answers:
author: mtichenor_cricut
body: Never mind, found it. It stores the username for each host under Preferences \> Network.
Merging individual file(s)
Asked by Mark Andrews:

I have been working for sometime on a development branch. During this time I have changed and committed many files. The changes to one file, a shared library file, now need to be merged onto the master branch while leaving other files unchanged. How can this, merging one or more specific files from one branch to another, be achieved?


Answers:
author: Seth
body: If there is a specific commit or set of commits that contain the changes you need (and none of the changes you don't), you can "cherry pick" the commits into another branch.

Otherwise, you'll need to copy the changes by hand. Merges effect the entire working copy.

You could do a merge and amend the merge commit to remove all the changes for the other files, but Git would see that as a commit that reverses those changes, and you'd have big problems if you decide to really merge those changes later on.

EDIT: Git does allow for "submodules" and "subtrees", which might give you the workflow you need, but I've never used them, and it doesn't sound like your library file is set up that way currently.


Tags: merge
Sync selected bookmark with opened repository
Asked by Omar Rojo:

I often find myself working on a repository I don't meant to. Why? because the selected repository at bookmarks is not necessarily the one on the active opened view.

Is it possible to tell SourceTree to automatically open or activate the repository when I select one on bookmarks ? this de-sync is really frustrating, specially because the selected bookmark is way more obvious to the eye than the active and I usually don't double click the bookmarks all the time.

Thanks in advance.


Answers:
author: Seth
body: If you double click the bookmark, it will open/jump to that repository.

If you want it to work with any selection, you could make a feature request on jira.atlassian.com, but I don't expect the devs will do much with it.

Maybe the bookmark's list could use an additional indicator to identify which bookmark is opened in the current tab, like a border or something.

Also, I assume you're working in Windows. The software is based off the Mac version (for better or worse). In that version, it makes less sense to couple them, because bookmarks are in a separate window.