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

fatal: unable to access stash. Could not resolve host: stash

ganeshmurthi_s July 27, 2022

I am getting this error while linking the stash repositories.

Authentication type: Username and password

Error log

2022-07-27 04:20:26,843 INFO [9-BAM::PlanExec:pool-16-thread-4] [DefaultErrorHandler] Recording an error: Unable to detect changes : ***-TEST : command 'C:\Program Files\Git\cmd\git.exe' ls-remote https://stash.bbpd.io/***.git failed with code 128. Working directory was [.]., stderr:
fatal: unable to access 'https://stash.bbpd.io/***.git/': Could not resolve host: stash.bbpd.io.

Could someone help me, please?

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2022

This simply means that your network can't find the address behind the server name you have given it - https://stash.bbpd.io/***.git simply doesn't exist.

It's a bit like writing "Bob, one hundred and eleventy twelve, turnip street, royston vasey, UK" on a mail envelope - the Royal Mail in the UK will "return to sender" because the address does not exist.

You'll need to ask for the actual address of the repository, or fix your network so that it can look it up correctly.

ganeshmurthi_s July 27, 2022

@Nic Brough -Adaptavist- - If I tried accessing the Stash URL which I feed in Bamboo is working. The URL which I have posted 'https://stash.bbpd.io/***.git/ is an incorrect URL because this is a private repository. I am not sure whether I can post the repo URL here.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2022

You don't need to give us the URL, it's not going to help us solve the problem.

You need to fix your network lookup of the url, or start using a valid url.

Like jvelapol likes this
jvelapol July 29, 2022

Yeah, I agree with Nic - the problem is that the server that's running the Bamboo agent isn't able to connect to the server that's running bitbucket.

Could not resolve host: stash.bbpd.io.

That means that the host that the Bamboo Agent is running on literally has no DNS entry that resolves to the stash server.  There's nothing that anyone here can help fix that.  It's a networking problem between your Bamboo Agent server and your stash server.

You can try logging in to the bamboo agent host and running something equivalent to:

curl https://stash.bbpd.io

(or whatever the equivalent is in the Windows world).

Once that works, you'll be further along, I think.

EDIT:  I've seen cases when the host that runs the agent sits behind a proxy server, and that proxy server isn't configured to allow traffic to whatever destination.  But that's only one of about a thousand possible reasons why this isn't working for you, all of which are specific to your networking topology.

Like Nic Brough -Adaptavist- likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events