Deploying code from a Bitbucket control repo fails when the r10k_remote
parameter does not include ssh://
at the beginning of the SSH URL.
Error messages
Original exception: Failed to authenticate SSH session: Unable to send userauth-publickey request
Unable to determine current branches for Git source 'puppet' (/etc/puppetlabs/code-staging/environments) Original exception: Invalid credential type
These errors indicate that Code Manager is not able to connect to your Git repo.
Version and installation information
PE version: All supported
Installation type: Any
Solution
For Code Manager to pull code from your Bitbucket repos, the r10k_remote
parameter value must include ssh://
at the beginning of the SSH URL, so that it matches the format of Bitbucket’s SSH URLs. For example: ssh://git@githost.domain.com/pup/puppet.git
-
On the primary server, verify that your
r10k_remote
includesssh://
by runningcat /etc/puppetlabs/r10k/r10k.yaml
. -
If the remote’s SSH URL does not include
ssh://
, update the value in either Hiera or the console.
Comments
2 comments
This appeared to be required on v2021.4.0 and Bitbucket self hosted and v7.16.0
Thanks David, it sounds like this one would be pretty easy to update, I'll get in touch with you.
Please sign in to leave a comment.