Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Failed to connect to bitbucket.org port 443: Connection timed out (from Shanghai via 2G ppp0)

Hi Community,

 

these days i found a strange issue which needs your help, thanks in advance.

 

on my win10 pc, from bitbucket GUI in browser or from sourcetree , i can access my repo.

on my device (Ubuntu 16.0.4), if i use wlan0 interface (China Telecom), i can also do git fetch/git pull.

but if i config to use ppp0 interface (China Mobile, 2G IOT SIM card), i can not access the repo. when doing "git fetch", i always meet:

 

    fatal: unable to access 'https://xxx@bitbucket.org/xxx.git/': Failed to connect to bitbucket.org port 443: Connection timed out

 

for using either wlan0 or ppp0 interface, PING is all not possible, as google site:

 

    $ ping -c3 www.google.com
    PING www.google.com (31.13.71.7) 56(84) bytes of data.

    --- www.google.com ping statistics ---
    3 packets transmitted, 0 received, 100% packet loss, time 2043ms

    $ ping -c3 bitbucket.org
    PING bitbucket.org (18.205.93.2) 56(84) bytes of data.

    --- bitbucket.org ping statistics ---
    3 packets transmitted, 0 received, 100% packet loss, time 2065ms

 

below is traceroute info: 

    $ traceroute bitbucket.org
    traceroute to bitbucket.org (18.205.93.1), 30 hops max, 60 byte packets
    1 192.168.61.46 (192.168.61.46) 218.546 ms 280.094 ms 315.111 ms
    2 * * *
    3 117.132.190.90 (117.132.190.90) 494.608 ms 577.565 ms 596.048 ms
    4 221.176.21.230 (221.176.21.230) 674.772 ms 734.175 ms 794.487 ms
    5 * * *
    6 * * *
    7 223.120.6.97 (223.120.6.97) 600.762 ms * 720.806 ms
    8 * 223.120.6.218 (223.120.6.218) 816.573 ms 840.590 ms
    9 223.119.64.74 (223.119.64.74) 992.997 ms 415.578 ms *
    10 * * *
    11 * * *
    12 * 176.32.125.164 (176.32.125.164) 728.161 ms 176.32.125.188 (176.32.125.188) 655.008 ms
    13 * * *
    14 * * *
    15 * * *
    16 * * *
    17 * * *
    18 * * *
    19 * * *
    20 * * *
    21 * * *
    22 * * *
    23 * * *
    24 * * *
    25 * * *
    26 * * *
    27 * * 52.93.28.152 (52.93.28.152) 1263.918 ms
    28 * * *
    29 * * *
    30 * * *

 

2 answers

Just for posterity, I had a proxy configured in the '~/.gitconfig'.

0 votes
Ana Retamal Atlassian Team Aug 08, 2019

Hi, welcome to the Community!

I'm afraid this problem is due to the restrictions that China imposes. If the networks are blocking access to our Cloud IPs and Domains, you won't be able to access our services. You can find or ranges of IP addresses and domains in this article.

Kind regards,

Ana

Thanks for reply, Ana.
As i mentioned, using wifi on my device, i can access bitbucket.org. And using CMCC 2G IOT network (ppp0 dialup) on the device, i can also access some AWS services in EU region, just failed to connect my repo on bitbucket.org.
so, i would like to know how did you consider this is due to my mobile ISP restrictions?

CMCC PM helps me contact directly with the backend support
the engineer tested with 2G/3G SIM cards, both can not ping
but when using 4G SIM card, he can ping now.

so CMCC support thinks it is the issue of 2G low speed/poor quality to bitbucket, which causes "Failed to connect to bitbucket.org port 443: Connection timed out"

so if this were the cause, how to config longer timeout setting?

thanks

i had sent 2 times log file of running "GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -v" GIT_CURL_VERBOSE=1 git pull " as required to support@am.atlassian.com, no reply yet.

may i know what can i do for further debugging? this is a blocking issue to our project!

i copy the log file here:

23:48:58.773807 git.c:344 trace: built-in: git 'pull'
23:48:58.775897 run-command.c:334 trace: run_command: 'fetch' '--update-head-ok'
23:48:58.777514 exec_cmd.c:120 trace: exec: 'git' 'fetch' '--update-head-ok'
23:48:58.805685 git.c:344 trace: built-in: git 'fetch' '--update-head-ok'
23:48:58.814704 run-command.c:334 trace: run_command: 'git-remote-https' 'origin' 'https://xxx@bitbucket.org/xxx.git'
* Couldn't find host bitbucket.org in the .netrc file; using defaults
* Trying 18.205.93.0...
* Trying 2406:da00:ff00::22c3:9b0a...
* Immediate connect fail for 2406:da00:ff00::22c3:9b0a: Network is unreachable
* Trying 2406:da00:ff00::22c2:513...
* Immediate connect fail for 2406:da00:ff00::22c2:513: Network is unreachable
* Trying 2406:da00:ff00::34cc:ea4a...
* Immediate connect fail for 2406:da00:ff00::34cc:ea4a: Network is unreachable
* Trying 2406:da00:ff00::6b17:d1f5...
* Immediate connect fail for 2406:da00:ff00::6b17:d1f5: Network is unreachable
* Trying 2406:da00:ff00::22e9:9f55...
* Immediate connect fail for 2406:da00:ff00::22e9:9f55: Network is unreachable
* Trying 2406:da00:ff00::22c5:2ef4...
* Immediate connect fail for 2406:da00:ff00::22c5:2ef4: Network is unreachable
* Trying 2406:da00:ff00::3403:4be7...
* Immediate connect fail for 2406:da00:ff00::3403:4be7: Network is unreachable
* Trying 2406:da00:ff00::22cd:e0db...
* Immediate connect fail for 2406:da00:ff00::22cd:e0db: Network is unreachable
* Trying 2406:da00:ff00::22c3:9b0a...
* Immediate connect fail for 2406:da00:ff00::22c3:9b0a: Network is unreachable
* Trying 2406:da00:ff00::22c2:513...
* Immediate connect fail for 2406:da00:ff00::22c2:513: Network is unreachable
* Trying 2406:da00:ff00::34cc:ea4a...
* Immediate connect fail for 2406:da00:ff00::34cc:ea4a: Network is unreachable
* Trying 2406:da00:ff00::6b17:d1f5...
* Immediate connect fail for 2406:da00:ff00::6b17:d1f5: Network is unreachable
* Trying 2406:da00:ff00::22e9:9f55...
* Immediate connect fail for 2406:da00:ff00::22e9:9f55: Network is unreachable
* Trying 2406:da00:ff00::22c5:2ef4...
* Immediate connect fail for 2406:da00:ff00::22c5:2ef4: Network is unreachable
* Trying 2406:da00:ff00::3403:4be7...
* Immediate connect fail for 2406:da00:ff00::3403:4be7: Network is unreachable
* Trying 2406:da00:ff00::22cd:e0db...
* Immediate connect fail for 2406:da00:ff00::22cd:e0db: Network is unreachable
* connect to 18.205.93.0 port 443 failed: Connection timed out
* Trying 18.205.93.1...
* Trying 2406:da00:ff00::22c3:9b0a...
* Immediate connect fail for 2406:da00:ff00::22c3:9b0a: Network is unreachable
* Trying 2406:da00:ff00::22c2:513...
* Immediate connect fail for 2406:da00:ff00::22c2:513: Network is unreachable
* Trying 2406:da00:ff00::34cc:ea4a...
* Immediate connect fail for 2406:da00:ff00::34cc:ea4a: Network is unreachable
* Trying 2406:da00:ff00::6b17:d1f5...
* Immediate connect fail for 2406:da00:ff00::6b17:d1f5: Network is unreachable
* Trying 2406:da00:ff00::22e9:9f55...
* Immediate connect fail for 2406:da00:ff00::22e9:9f55: Network is unreachable
* Trying 2406:da00:ff00::22c5:2ef4...
* Immediate connect fail for 2406:da00:ff00::22c5:2ef4: Network is unreachable
* Trying 2406:da00:ff00::3403:4be7...
* Immediate connect fail for 2406:da00:ff00::3403:4be7: Network is unreachable
* Trying 2406:da00:ff00::22cd:e0db...
* Immediate connect fail for 2406:da00:ff00::22cd:e0db: Network is unreachable
* Trying 2406:da00:ff00::22c3:9b0a...
* Immediate connect fail for 2406:da00:ff00::22c3:9b0a: Network is unreachable
* Trying 2406:da00:ff00::22c2:513...
* Immediate connect fail for 2406:da00:ff00::22c2:513: Network is unreachable
* Trying 2406:da00:ff00::34cc:ea4a...
* Immediate connect fail for 2406:da00:ff00::34cc:ea4a: Network is unreachable
* Trying 2406:da00:ff00::6b17:d1f5...
* Immediate connect fail for 2406:da00:ff00::6b17:d1f5: Network is unreachable
* Trying 2406:da00:ff00::22e9:9f55...
* Immediate connect fail for 2406:da00:ff00::22e9:9f55: Network is unreachable
* Trying 2406:da00:ff00::22c5:2ef4...
* Immediate connect fail for 2406:da00:ff00::22c5:2ef4: Network is unreachable
* Trying 2406:da00:ff00::3403:4be7...
* Immediate connect fail for 2406:da00:ff00::3403:4be7: Network is unreachable
* Trying 2406:da00:ff00::22cd:e0db...
* Immediate connect fail for 2406:da00:ff00::22cd:e0db: Network is unreachable
* After 83328ms connect time, move on!
* Trying 2406:da00:ff00::22c3:9b0a...
* Immediate connect fail for 2406:da00:ff00::22c3:9b0a: Network is unreachable
* Trying 2406:da00:ff00::22c2:513...
* Immediate connect fail for 2406:da00:ff00::22c2:513: Network is unreachable
* Trying 2406:da00:ff00::34cc:ea4a...
* Immediate connect fail for 2406:da00:ff00::34cc:ea4a: Network is unreachable
* Trying 2406:da00:ff00::6b17:d1f5...
* Immediate connect fail for 2406:da00:ff00::6b17:d1f5: Network is unreachable
* Trying 2406:da00:ff00::22e9:9f55...
* Immediate connect fail for 2406:da00:ff00::22e9:9f55: Network is unreachable
* Trying 2406:da00:ff00::22c5:2ef4...
* Immediate connect fail for 2406:da00:ff00::22c5:2ef4: Network is unreachable
* Trying 2406:da00:ff00::3403:4be7...
* Immediate connect fail for 2406:da00:ff00::3403:4be7: Network is unreachable
* Trying 2406:da00:ff00::22cd:e0db...
* Immediate connect fail for 2406:da00:ff00::22cd:e0db: Network is unreachable
* connect to 18.205.93.1 port 443 failed: Connection timed out
* Trying 2406:da00:ff00::22c3:9b0a...
* Immediate connect fail for 2406:da00:ff00::22c3:9b0a: Network is unreachable
* Trying 2406:da00:ff00::22c2:513...
* Immediate connect fail for 2406:da00:ff00::22c2:513: Network is unreachable
* Trying 2406:da00:ff00::34cc:ea4a...
* Immediate connect fail for 2406:da00:ff00::34cc:ea4a: Network is unreachable
* Trying 2406:da00:ff00::6b17:d1f5...
* Immediate connect fail for 2406:da00:ff00::6b17:d1f5: Network is unreachable
* Trying 2406:da00:ff00::22e9:9f55...
* Immediate connect fail for 2406:da00:ff00::22e9:9f55: Network is unreachable
* Trying 2406:da00:ff00::22c5:2ef4...
* Immediate connect fail for 2406:da00:ff00::22c5:2ef4: Network is unreachable
* Trying 2406:da00:ff00::3403:4be7...
* Immediate connect fail for 2406:da00:ff00::3403:4be7: Network is unreachable
* Trying 2406:da00:ff00::22cd:e0db...
* Immediate connect fail for 2406:da00:ff00::22cd:e0db: Network is unreachable
* Trying 2406:da00:ff00::22c3:9b0a...
* Immediate connect fail for 2406:da00:ff00::22c3:9b0a: Network is unreachable
* Trying 2406:da00:ff00::22c2:513...
* Immediate connect fail for 2406:da00:ff00::22c2:513: Network is unreachable
* Trying 2406:da00:ff00::34cc:ea4a...
* Immediate connect fail for 2406:da00:ff00::34cc:ea4a: Network is unreachable
* Trying 2406:da00:ff00::6b17:d1f5...
* Immediate connect fail for 2406:da00:ff00::6b17:d1f5: Network is unreachable
* Trying 2406:da00:ff00::22e9:9f55...
* Immediate connect fail for 2406:da00:ff00::22e9:9f55: Network is unreachable
* Trying 2406:da00:ff00::22c5:2ef4...
* Immediate connect fail for 2406:da00:ff00::22c5:2ef4: Network is unreachable
* Trying 2406:da00:ff00::3403:4be7...
* Immediate connect fail for 2406:da00:ff00::3403:4be7: Network is unreachable
* Trying 2406:da00:ff00::22cd:e0db...
* Immediate connect fail for 2406:da00:ff00::22cd:e0db: Network is unreachable
* Failed to connect to bitbucket.org port 443: Connection timed out
* Closing connection 0
fatal: unable to access 'https://xxx@bitbucket.org/xxx.git/': Failed to connect to bitbucket.org port 443: Connection timed out

Ana Retamal Atlassian Team Aug 14, 2019

Hi, 

Most of the times, the connection issues we received from China are caused by their network restrictions. If you don't think this is your case, please follow the recommendations from Jim Redmond in his top comment at Failed to connect to Bitbucket.

Let us know if that helps you!

Kind regards,

Ana

Like leoxu_iocare likes this

ok i will open / work on a support ticket.

thanks Leo

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,786 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you