Solution: BitBucket issue while pulling,Could not resolve host: bitbucket.org

Sometimes we are unable to access bitbucket.org Says
fatal: unable to access ‘https://xxxx@bitbucket.org/xxxx_Project_name/xxxx_frappe.git/’: Could not resolve host: bitbucket.org

Solution:
1.dig bitbucket.org and it will show

;; ANSWER SECTION:
bitbucket.org. 33 IN A 18.205.93.2
bitbucket.org. 33 IN A 18.205.93.1
bitbucket.org. 33 IN A 18.205.93.0

select any ip address and copy it

  1. go to the sudo vim /etc/hosts file
    3.Then add this ip address below to other ip address
    EX:-
    127.0.0.1 localhost
    127.0.1.1 yoursystemname
    18.205.93.2 bitbucket.org
    then save the file and reboot (optional) system
    4.Goto app folder and use git pul l upstream master and your able to access bitbucket.org
1 Like

Thanks so much, this fixed my issue

1 Like

Thanks a lot , this fixed my issue :smile:

1 Like

Thanks a lot. its worked for me @shrikant9867