Docker + Machine Autoscaling With Spot Instances: Not Creating Runners

Hi all,

I have a docker + machine runner setup to autoscale using an Amazon EC2 instance as a host that requests spot instances to run the service. When attempting to run a CI/CD job I encounter this error.

Running with gitlab-runner 10.5.0 (10.5.0) on ci-cd-test igz3t6gs ERROR: Preparation failed: exit status 1 Will be retried in 3s ... ERROR: Preparation failed: exit status 1 Will be retried in 3s ... ERROR: Preparation failed: exit status 1 Will be retried in 3s ... ERROR: Job failed (system failure): exit status 1

The machine never seems to spawn a runner to take the job. The gitlab-runner config is below.

concurrent = 12
check_interval = 1

[[runners]]
  name = "ci-cd-test"
  url = "https://git.uiowa.edu/"
  token = "xxxx"
  executor = "docker+machine"
  limit = 6
  [runners.docker]
    tls_verify = false
    image = "java-8"
    privileged = false
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0
  [runners.cache]
  [runners.machine]
    IdleCount = 0
    IdleTime = 600
    MachineDriver = "amazonec2"
    MachineName = "runner-%s"
    MachineOptions = [
"amazonec2-access-key=xxx",
"amazonec2-secret-key=xxx",
"amazonec2-ssh-user=ubuntu",
"amazonec2-region=us-east-1",
"amazonec2-instance-type=t2.micro",
"amazonec2-ami=ami-xxx",
"amazonec2-zone=a",
"amazonec2-root-size=8",
"amazonec2-request-spot-instance=true",
"amazonec2-spot-price=0.03",
"amazonec2-vpc-id=vpc-xxx",
"amazonec2-subnet-id=subnet-xxx",
"amazonec2-iam-instance-profile=AWSServiceRoleForAutoScaling_test",
"amazonec2-private-address-only=true"
]
    OffPeakTimezone = "America/Chicago"
    OffPeakIdleCount = 0
    OffPeakIdleTime = 0
Edited by Spencer Gritton