runners-autoscaler encode issues

Umashankar Prasad
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 5, 2024

I used following guide to setup bitbucket runner: https://bitbucket.org/bitbucketpipelines/runners-autoscaler/src/master/ 
while runner runner on kubernetes. I am getting the following error

INFO: Config file provided /opt/conf/config/runners_config.yaml.
INFO: File /opt/conf/job_template/job.yaml.template copied to /home/bitbucket/autoscaler/resources/job.yaml.template
✖ 1 validation error for RunnerData
groups -> 0 -> __root__
'latin-1' codec can't encode characters in position 2-5: ordinal not in range(256) (type=value_error.unicodeencode)

my 
kustomize/values

constants:

default_sleep_time_runner_setup: 10 # value in seconds

default_sleep_time_runner_delete: 5 # value in seconds

runner_api_polling_interval: 300 # value in seconds

runner_cool_down_period: 300 # value in seconds

groups:

- name: "ks"

workspace: "{<name here>}" # include the curly braces

labels: # each runner will be created with this label list

- "my.group"

namespace: "default" # target namespace, where runner will be created.

strategy: "percentageRunnersIdle"

for auth


 ### Option 2 ###
- op: add

path: /data/bitbucketUsername

value: "Umashankarprasad"

- op: add

path: /data/bitbucketAppPassword

value: "xxxxxxxxx=="

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 7, 2024

Hey @Umashankar Prasad ,

and welcome to the Community!

That error is usually associated with the credentials not being correct. Could you please confirm if you have base64 encoded both the username and app password before pasting the value to the kustomization.yaml file ?

If not, you can use the following commands to encode it :

echo -n $BITBUCKET_USERNAME | base64 
echo -n $BITBUCKET_APP_PASSWORD | base64

and then in the kustomization.yaml file, set value fields of /data/bitbucketUsername and /data/bitbucketAppPassword paths with the base64 encoded values generated previously.

I'd also recommend following the steps outlined in the below article to make sure the autoscaler is setup correctly, as this article covers the setup in more details:

Thank you, @Umashankar Prasad !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events