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

v2.8.2 service@file bad characters #9260

Closed
2 tasks done
thechubbypanda opened this issue Aug 12, 2022 · 1 comment
Closed
2 tasks done

v2.8.2 service@file bad characters #9260

thechubbypanda opened this issue Aug 12, 2022 · 1 comment

Comments

@thechubbypanda
Copy link

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?

Updated from 2.8.1 to 2.8.2

I had a perfectly working pihole service defined in a config file

What did you see instead?

The pihole service now has a || 24 || in front of it and traefik is complaining that it cant find it.

What version of Traefik are you using?

2.8.2

What is your environment & configuration?

http:
  routers:
    pihole:
      rule: Host(`pihole.kapdee.uk`)
      entrypoints:
        - https
      middlewares:
        - pihole
      service:
        - pihole
  middlewares:
    pihole:
      addPrefix:
        prefix: "/admin"
  services:
    pihole:
      loadBalancer:
        servers:
          - url: "http://192.168.1.2:2080"

Add more configuration information here.

If applicable, please paste the log output in DEBUG level

traefik | time="2022-08-12T20:36:28+01:00" level=error msg="the service "║24║pihole@file" does not exist" entryPointName=https routerName=pihole@file

@ldez
Copy link
Member

ldez commented Aug 12, 2022

Duplicate of #9249

Your configuration is malformed, service is not an array.

http:
  routers:
    pihole:
      rule: Host(`pihole.kapdee.uk`)
      entrypoints:
        - https
      middlewares:
        - pihole
      service:
        - pihole ## <----- HERE
  middlewares:
    pihole:
      addPrefix:
        prefix: "/admin"
  services:
    pihole:
      loadBalancer:
        servers:
          - url: "http://192.168.1.2:2080"

The right configuration:

http:
  routers:
    pihole:
      rule: Host(`pihole.kapdee.uk`)
      entrypoints:
        - https
      middlewares:
        - pihole
      service: pihole ## <--- the fix
  middlewares:
    pihole:
      addPrefix:
        prefix: "/admin"
  services:
    pihole:
      loadBalancer:
        servers:
          - url: "http://192.168.1.2:2080"

║24║ is an internal representation of an array of strings.

@ldez ldez closed this as completed Aug 12, 2022
@traefik traefik locked and limited conversation to collaborators Sep 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants