Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start runner with pool file #359

Open
webfrank opened this issue Sep 29, 2023 · 1 comment
Open

Cannot start runner with pool file #359

webfrank opened this issue Sep 29, 2023 · 1 comment

Comments

@webfrank
Copy link

Hi,
was trying to start an AWS runner with a pool.yaml file but I have this error:

drone_aws.1.v3aytmcmyklk@docker02    | time="2023-09-29T15:15:03Z" level=info msg="Loading pool file '/config/pool.yaml'"
drone_aws.1.v3aytmcmyklk@docker02    | time="2023-09-29T15:15:03Z" level=error msg="exec: unable to parse pool file" error="json: cannot unmarshal array into Go struct field PoolFile.instances of type map[string]string" path=/config/pool.yaml
drone_aws.1.v3aytmcmyklk@docker02    | time="2023-09-29T15:15:03Z" level=fatal msg="daemon: unable to load pool file, or use an in memory pool file" error="json: cannot unmarshal array into Go struct field PoolFile.instances of type map[string]string"

The pool.yaml file is:

version: "1"

instances:
- name: gpu
  default: true
  type: amazon
  pool: 0    # total number of warm instances in the pool at all times
  limit: 1   # limit the total number of running servers. If exceeded block or error.
  platform:
    os: linux
    arch: amd64
  spec:
    account:
      region: eu-west-1
      access_key_id: xxx
      access_key_secret: xxx
    ami: ami-0f9aaa549abd8f082
    size: g4dn.2xlarge
    tags:
    - Training
@webfrank
Copy link
Author

Hi, found the issue. Error is misleading, it is not the instances array but tags inside spec which should be a map[string]string. Documentation states tags []string and should be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant