Load balancing sticky get difference value

Hi, i new traefik with docker, i use to balancing my app server but always got 404 on some assets web file. here my docker compose code:

version: '3'

services:

  traefik:
    image: "traefik:v2.9"
    command:
      - --api.dashboard=true
      - --api.insecure=true
      - --providers.docker=true
      - --accesslog=true
      - --log.filePath=/var/log/traefik.log
      - --accesslog.filepath=/var/log/access.log
      - --providers.docker.exposedbydefault=false
      - --providers.docker.watch=true
      - --providers.file.directory=/etc/traefik
      - --providers.file.watch=true
      - --entryPoints.web.address=:80
      - --entryPoints.web.forwardedHeaders.insecure=true

    ports:
      - 80:80
      - 8080:8080
    networks:
      - traefik
    volumes:
      - /run/docker.sock:/run/docker.sock
      - /var/docker/traefik/etc:/etc/traefik
      - /var/docker/traefik/log:/var/log
      
    labels:
      - "traefik.enable=true"
      
    container_name: traefik
    restart: always

  whoami:
    # A container that exposes an API to show its IP address
    image: traefik/whoami
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=traefik"
      - "traefik.http.routers.whoami.rule=Host(`whoami.app.local`)"
      - "traefik.http.routers.whoami.entrypoints=web"
      - "traefik.http.services.whoami.loadbalancer.server.port=80"
      - "traefik.http.services.whoami.loadbalancer.sticky=true"
      - "traefik.http.services.whoami.loadbalancer.sticky.cookie.name=sc"
    networks:
      - traefik
    container_name: whoami
    restart: always

networks:
  traefik:
      driver: overlay
      external: true
      name: web-zones

and my file provider:

http:
  routers:
    backendrouter:
      rule: "PathPrefix(`/beta1/`)"
      service: allbackend
      entryPoints:
          - "web"
  services:
    allbackend:
      loadBalancer:
        sticky:
          cookie:
            name: av
        servers:
          - url: "http://192.168.6.10/beta1/"
          - url: "http://192.168.6.11/beta1/"

i got same result when use this code on "allbackend" services, some assets file load on difference server

      weighted:
        sticky:
          cookie:
            name: sm
        services:
          - name: app1
            weight: 1
          - name: app2
            weight: 1

Browser Result:
traefik_lb

Any wrong on my code?
thanks for help

What does your infrastructure look like? Do you have Traefik and your 2 services running in Docker on the same node? Or multiple nodes using Docker Swarm? Any VMs involved?

You mix provider.docker for automatic Configuration Discovery and then manually set up the load balancing with fixed IPs (which sometimes may change) - is that on purpose?

Example whoami in docker-compose.yml with sticky cookie, configured through provider.docker through the labels:

  whoami:
    image: traefik/whoami:v1.8.1
    networks:
      - traefik
    deploy:
      mode: replicated
      replicas: 2
      labels:
        - 'traefik.enable=true'
        - 'traefik.http.routers.whoami.entrypoints=web'
        - 'traefik.http.routers.whoami.rule=PathPrefix(`/whoami`)'
        - 'traefik.http.routers.whoami.priority=4096'
        - 'traefik.http.services.whoami.loadbalancer.server.port=80'
        - 'traefik.http.services.whoami.loadbalancer.sticky=true'
        - 'traefik.http.services.whoami.loadbalancer.sticky.cookie.name=stickycookie'