Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bamboo - cannot connect to GIT "cannot open git-upload-pack"

Dev September 16, 2018

Hi guys,

I am very new to Git and Bamboo.. I have created a test repo on Git, able to access it from eclipse. Now I want  to set up it in Bamboo. But somehow not able to connect. Getting error - "cannot open git-upload-pack"

The log file prints only below - 

 

2018-09-17 12:22:23,835 INFO [http-nio-8085-exec-17] [RepositoryResource] Testing connection to repository (type: Git, location: http://bitbucket.org/devdatta_g/repo1.git)
2018-09-17 12:22:27,776 INFO [http-nio-8085-exec-13] [AccessLogFilter] dev POST http://localhost:8085/rest/analytics/1.0/publish/bulk 582108kb
2018-09-17 12:22:44,852 INFO [http-nio-8085-exec-17] [RepositoryResource] Failed to connect to repository (type: Git, location: http://bitbucket.org/devdatta_g/repo1.git, time: 21.02 s, errors: [http://bitbucket.org/devdatta_g/repo1.git: cannot open git-upload-pack])

 

Please assist. Thank you in advance. 

 

git1.png

1 answer

1 accepted

0 votes
Answer accepted
Gonchik Tsymzhitov
Community Champion
September 17, 2018

Hi! 

 

Could you try use the link git@bitbucket.org:devdatta_g/repo1.git or

git://bitbucket.org/devdatta_g/repo1.git instead of http link? 

 

Cheers,

Gonchik Tsymzhitov

Dev September 17, 2018

Hi Gonchik,

 

Thanks for your reply. After changing url to either of you suggested, I am getting

 

git://bitbucket.org/devdatta_g/repo1.git: Connection timed out: connect


The log say -

 

2018-09-17 18:50:56,224 INFO [http-nio-8085-exec-22] [RepositoryResource] Failed to connect to repository (type: Git, location: git://bitbucket.org/devdatta_g/repo1.git, time: 21.02 s, errors: [git://bitbucket.org/devdatta_g/repo1.git: Connection timed out: connect])

Gonchik Tsymzhitov
Community Champion
September 17, 2018

Hi @Dev

Could you link repository as Bitbucket Cloud

https;//{base_url}/admin/configureLinkedRepositories!doDefault.action

 

image.png

 

Hope it helps.

Cheers,

Gonchik Tsymzhitov

Dev September 17, 2018

Hi Gonchik,

 

Tried this way too.. Now getting below error.

git2.png

Log say - 

2018-09-17 19:15:24,738 ERROR [http-nio-8085-exec-13] [ThrowableExceptionMapper] Uncaught exception thrown by REST service: java.net.ConnectException: Connection timed out: connect
java.lang.RuntimeException: java.net.ConnectException: Connection timed out: connect
at com.atlassian.bamboo.rest.utils.RESTCall.execute(RESTCall.java:179)
at com.atlassian.bamboo.plugins.bitbucket.impl.BitbucketApiServiceImpl.getXmlResponseFromUrl(BitbucketApiServiceImpl.java:171)
at com.atlassian.bamboo.plugins.bitbucket.impl.BitbucketApiServiceImpl.getPublicRepositories(BitbucketApiServiceImpl.java:77)
at com.atlassian.bamboo.plugins.bitbucket.rest.resource.BitbucketResource.lambda$getAvailableRepositories$0(BitbucketResource.java:82)
at com.atlassian.bamboo.plugins.bitbucket.rest.resource.BitbucketResource.executeCall(BitbucketResource.java:261)
at com.atlassian.bamboo.plugins.bitbucket.rest.resource.BitbucketResource.getAvailableRepositories(BitbucketResource.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

 

Thanks for your time. Regards,

Dev

Gonchik Tsymzhitov
Community Champion
September 17, 2018

Hi @Dev,

 

well, let's check from server connection like 

telnet bitbucket.org 443

telnet bitbucket.org 22

If something broken, let's check firewall etc. 

 

Cheers,

Gonchik Tsymzhitov

Dev September 18, 2018

Hi @Gonchik Tsymzhitov

Looks like connection is problem. Thanks for your help.

 

Cheers

Dev

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events