Load balancer issues

When am trying to setup load balancer in rancher, I get “Failed to apply lb config on provider: error loading == reloading haproxy config with the new config changes \n[ALERT] 017/113443 (42) : parsing [/etc/haproxy/haproxy.cfg:81]: ‘rise’ has to be > 0.\n[ALERT] 017/113443 (42) : parsing [/etc/haproxy/haproxy.cfg:82]: ‘rise’ has to be > 0.\n[ALERT] 017/113443 (42) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg\n[WARNING] 017/113443 (42) : config : ‘option forwardfor’ ignored for proxy ‘default’ as it requires HTTP mode.\n[ALERT] 017/113443 (42) : Fatal errors found in configuration.\n: exit status 1” " which I dont have a clue of what the issue is,

Docker compose and rancher compose files of mine are as follows:
Rancher compose file:
.catalog:
name: dummy
version: "1.0.0"
description: |
Deploys a dummye project
questions:

- variable: docker_tag
  label: Docker tag
  description: Specify the docker tag to use for this deployment
  default: latest
  required: true
  type: string

- variable: service_url
  label: URL for service
  description: Do not enter the TLD, AND USE TWO DASHES INSTEAD OF A DOT!!
  required: true
  type: string


- variable: service_type
  label: Visibility
  description: "Choose 'webui_external' for reachability from 'outside'"
  type: enum
  options:
    - webui
    - webui_external
  required: true

frontend:
scale: 2
health_check:
port: 9000
interval: 10000
unhealthy_threshold: 2
request_line: GET /health HTTP/1.0
health_treshold: 3
response_timeout: 2000

lb:
scale: 2
load_balancer_config:
haproxy_config: {}

Docker-compose file:
frontend:
image: imagename
ports:
- "9000"
labels:
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.pull_image: always
io.rancher.container.hostname_override: container_name

carstool:
image: imagewhatever
ports:
- "5000"
labels:
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.pull_image: always
io.rancher.container.hostname_override: container_name

lb:
image: rancher/load-balancer-service
ports:
- "2000"
links:
- “frontend:frontend”
- "carstool:carstool"
labels:
rancon.name: ${service_url}
rancon.tag: ${service_type}
io.rancher.loadbalancer.target.frontend: /=9000
io.rancher.loadbalancer.target.carstool: /api=5000
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.pull_image: always
io.rancher.container.hostname_override: container_name

The main problem seems to be the rise and fall being set to 0. I’m not sure yet how to get around it, but I’m having the same issue. I’ll post here if I figure it out.

problem here is in your rancher-compose.yml “health_treshold: 3” should be “healthy_threshold: 3”

I had the same problem, was spelling threshold as threshhold

Probably you figured this out a long time ago, but for anyone else running into this issue.