Cannot pull/push with SourceTree
Asked by jay:

It has been working fine for months with SourceTree. However, today I cannot push/pull any repository. I always get the following error message:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin  
fatal: unable to access 'http://xxxxx@xxx-server:7990/scm/tst/xxxxxxxxxx.git/': The requested URL returned error: 503

Please help.


Answers:
author: Stephen Sifers
body: Hello Jay and welcome to the Community!

Thanks for reaching out with your pull/push issue with Sourcetree. The included error gives us a bit of info around whats going on. Typically, this can mean the repo you're attempting to work with is in read-only mode or the service itself is not available. Could you please ensure that the BItbucket server, service, and Repo are readily available?

We look forward to hearing back to help resolve your Sourcetree issues.

Regards,  
Stephen Sifers

comments: author: jay
body: I found out that my Bitbucket service expired last week. Now, it is renewed. But I still cannot pull/push. Actually, we have many repositories. None of them can be pulled/pushed.

How do I check the repo are read-only?

When I try to list all available repo, I get the following error message:

Login failed for your Bitbucket account.

The remote service said: 'The request was aborted: Could not create SSL/TLS secure channel'

<br />

jay  
Reply


author: Stephen Sifers
body: Hello Jay,

Thanks for confirming an issue with your Bitbucket server. Once the new license was applied, did the Bitbucket service get a restart to come up cleanly? If this was not done let's attempt a restart of the Bitbucket service and retest.

Please let us know once this is tested.

Regards,  
Stephen Sifers


author: jay
body: How do I restart the Bitbucket service?


author: Stephen Sifers
body: Hello Jay,

This will depend on how the Bitbucket server is installed and what platform is running. I would refer the following to restart the service:
> **For Linux**
>
> Change to your `<Bitbucket Server installation directory>`, then use the command that meets your needs:  
>
>     bin/start-bitbucket.shbin/stop-bitbucket.sh
>
> **For Windows**
>
> For automated starting and stopping of Bitbucket Server on Windows, **it should be installed as a service**.
>
> You can use `start-bitbucket.bat` for short term debugging, using Ctrl+C will safely shutdown the instance when it is no longer needed.
>
> **For macOS**
>
> Use the app icons in the `<Bitbucket Server installation directory>`. These link to the `start-bitbucket.sh` and `stop-bitbucket.sh` scripts in `<Bitbucket Server installation directory>/bin`.

Source documentation: [Starting and stopping Bitbucket Server](https://confluence.atlassian.com/bitbucketserver/starting-and-stopping-bitbucket-server-776640144.html).

I hope this proves helpful and you'll be able to restart your service.

Regards,  
Stephen Sifers


author: jay
body: I restarted the service (it is called "Atlassian Stash service" in the server). I can pull/push repo now.

But I still have one problem. When I try to see all available hosted repositories, I get the following error message:

Login failed for your Bitbucket account.

The remote service said: 'The request was aborted: Could not create SSL/TLS secure channel.'

Please help.


author: Stephen Sifers
body: Hello Jay,

Thanks for restarting the service and confirming you're able to pull and push now. As far as your SSL/TLS errors, please ensure your Sourcetree client is up-to-date and your SSL certificate on your Bitbucket server is valid and not expired.

Regards,  
Stephen Sifers


author: jay
body: Finally, I can retrieve all hosted repo.

Looks like that after I upgraded to a newer version of SourceTree, the login/host information was messed up. Now, I re-enter the information and I can access all repo.

Thanks for your help.