Hi
I want to setup basic auth on one of my services via rules.toml file in TRAEFIK 1.7
But I receve 404 on these services.
When I disable auth, services are available.
LOGS
traefik | 2022-02-10T11:37:01.418742017Z time="2022-02-10T11:37:01Z" level=error msg="vulcand/oxy/forward/websocket: Error when copying from client to backend: read tcp 172.19.0.2:443->188.170.17.105:44914: use of closed network connection"
traefik | 2022-02-10T11:37:02.847662216Z time="2022-02-10T11:37:02Z" level=error msg="Error starting provider *acme.Provider: Near line 163 (last key parsed 'frontends.frontend-taisun.basicAuth'): expected a comma or array terminator ']', but got '\"' instead"
traefik | 2022-02-10T11:56:25.440130096Z time="2022-02-10T11:56:25Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T11:56:25.440330297Z time="2022-02-10T11:56:25Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T11:56:25.550215657Z time="2022-02-10T11:56:25Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T11:56:25.550492481Z time="2022-02-10T11:56:25Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:02:05.785971783Z time="2022-02-10T12:02:05Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:02:05.786211358Z time="2022-02-10T12:02:05Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTPS Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:02:19.112407098Z time="2022-02-10T12:02:19Z" level=error msg="vulcand/oxy/forward/websocket: Error when copying from client to backend: read tcp 172.19.0.2:443->188.170.17.105:51361: use of closed network connection"
traefik | 2022-02-10T12:02:19.112761722Z time="2022-02-10T12:02:19Z" level=error msg="vulcand/oxy/forward/websocket: Error when copying from client to backend: read tcp 172.19.0.2:443->188.170.17.105:51378: use of closed network connection"
traefik | 2022-02-10T12:02:21.091508033Z time="2022-02-10T12:02:21Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:02:21.091758289Z time="2022-02-10T12:02:21Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTPS Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:02:21.370526292Z time="2022-02-10T12:02:21Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:02:21.370755048Z time="2022-02-10T12:02:21Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTPS Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:02:45.167793529Z time="2022-02-10T12:02:45Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:02:45.167966900Z time="2022-02-10T12:02:45Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:02:54.394104980Z time="2022-02-10T12:02:54Z" level=error msg="vulcand/oxy/forward/websocket: Error when copying from client to backend: read tcp 172.19.0.2:443->188.170.17.105:52553: use of closed network connection"
traefik | 2022-02-10T12:02:56.210179620Z time="2022-02-10T12:02:56Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:02:56.210377808Z time="2022-02-10T12:02:56Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:02:56.767286051Z time="2022-02-10T12:02:56Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:02:56.767539773Z time="2022-02-10T12:02:56Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:03:12.744222404Z time="2022-02-10T12:03:12Z" level=error msg="Error occurred during watcher callback: Near line 153 (last key parsed 'frontends.frontend-netdata1.basicAuth'): expected value but found \"frontends\" instead"
traefik | 2022-02-10T12:03:14.599829949Z time="2022-02-10T12:03:14Z" level=error msg="Error occurred during watcher callback: Near line 153 (last key parsed 'frontends.frontend-netdata1.basicAuth'): expected value but found \"HTTP\" instead"
traefik | 2022-02-10T12:03:16.936266689Z time="2022-02-10T12:03:16Z" level=error msg="Error occurred during watcher callback: Near line 153 (last key parsed 'frontends.frontend-netdata1.basicAuth'): expected value but found \"HTTP\" instead"
traefik | 2022-02-10T12:03:20.792055803Z time="2022-02-10T12:03:20Z" level=error msg="Error occurred during watcher callback: Near line 153 (last key parsed 'frontends.frontend-netdata1.basicAuth'): expected value but found \"HTTP\" instead"
traefik | 2022-02-10T12:03:25.730355475Z time="2022-02-10T12:03:25Z" level=error msg="Error occurred during watcher callback: Near line 153 (last key parsed 'frontends.frontend-netdata1.basicAuth'): strings cannot contain newlines"
traefik | 2022-02-10T12:03:28.019340466Z time="2022-02-10T12:03:28Z" level=error msg="Error occurred during watcher callback: Near line 153 (last key parsed 'frontends.frontend-netdata1.basicAuth'): expected a comma or array terminator ']', but got '\"' instead"
traefik | 2022-02-10T12:03:29.644177966Z time="2022-02-10T12:03:29Z" level=error msg="Error occurred during watcher callback: Near line 153 (last key parsed 'frontends.frontend-netdata1.basicAuth'): expected value but found \"frontends\" instead"
traefik | 2022-02-10T12:03:51.610732215Z time="2022-02-10T12:03:51Z" level=error msg="vulcand/oxy/forward/websocket: Error when copying from client to backend: read tcp 172.19.0.2:443->188.170.17.105:52645: use of closed network connection"
traefik | 2022-02-10T12:03:51.612055238Z time="2022-02-10T12:03:51Z" level=error msg="vulcand/oxy/forward/websocket: Error when copying from client to backend: read tcp 172.19.0.2:443->188.170.17.105:52646: use of closed network connection"
traefik | 2022-02-10T12:03:52.989505576Z time="2022-02-10T12:03:52Z" level=error msg="Error starting provider *acme.Provider: Near line 153 (last key parsed 'frontends.frontend-netdata1.basicAuth'): expected value but found \"frontends\" instead"
traefik | 2022-02-10T12:05:37.419704616Z time="2022-02-10T12:05:37Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:05:37.419768670Z time="2022-02-10T12:05:37Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-netdata1..."
traefik | 2022-02-10T12:05:37.419934849Z time="2022-02-10T12:05:37Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:05:37.688596179Z time="2022-02-10T12:05:37Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:05:37.688730802Z time="2022-02-10T12:05:37Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-netdata1..."
traefik | 2022-02-10T12:05:37.689793290Z time="2022-02-10T12:05:37Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:07:18.577726770Z time="2022-02-10T12:07:18Z" level=error msg="vulcand/oxy/forward/websocket: Error when copying from client to backend: read tcp 172.19.0.2:443->188.170.17.105:53335: use of closed network connection"
traefik | 2022-02-10T12:07:20.580169485Z time="2022-02-10T12:07:20Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:07:20.580204194Z time="2022-02-10T12:07:20Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-netdata1..."
traefik | 2022-02-10T12:07:20.580366477Z time="2022-02-10T12:07:20Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:07:20.725123902Z time="2022-02-10T12:07:20Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:07:20.725285343Z time="2022-02-10T12:07:20Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-netdata1..."
traefik | 2022-02-10T12:07:20.725434633Z time="2022-02-10T12:07:20Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:08:13.579091033Z time="2022-02-10T12:08:13Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:08:13.579204267Z time="2022-02-10T12:08:13Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-netdata1..."
traefik | 2022-02-10T12:08:13.579335978Z time="2022-02-10T12:08:13Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:08:15.632560135Z time="2022-02-10T12:08:15Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:08:15.632722806Z time="2022-02-10T12:08:15Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-netdata1..."
traefik | 2022-02-10T12:08:15.632898275Z time="2022-02-10T12:08:15Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-taisun..."
traefik | 2022-02-10T12:08:17.838698477Z time="2022-02-10T12:08:17Z" level=error msg="undefined backend 'backend-grafana' for frontend frontend-grafana. Skipping frontend frontend-grafana..."
traefik | 2022-02-10T12:08:17.838824446Z time="2022-02-10T12:08:17Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-netdata1..."
traefik | 2022-02-10T12:08:17.838978252Z time="2022-02-10T12:08:17Z" level=error msg="error creating Basic Auth: error parsing Authenticator user: HTTP Authentication. Skipping frontend frontend-taisun"
RULES.TOML
[backends]
[backends.backend-netdata1]
[backends.backend-netdata1.servers]
[backends.backend-netdata1.servers.server-netdata-ext]
url = "http://192.168.50.201:19999"
weight = 0
[backends.backend-taisun]
[backends.backend-taisun.servers]
[backends.backend-taisun.servers.server-taisun-ext]
url = "http://192.168.50.14:3000"
weight = 0
[frontends]
[frontends.frontend-netdata1]
backend = "backend-netdata1"
passHostHeader = true
basicAuth = [
"HTTP Authentication",
"$HTTP_USERNAME:$HTTP_PASSWORD",
]
[frontends.frontend-netdata1.routes]
[frontends.frontend-netdata1.routes.route-netdata-ext]
rule = "Host:nas.mycloudhome.ru"
[frontends.frontend-taisun]
backend = "backend-taisun"
passHostHeader = true
basicAuth = [
"HTTP Authentication",
"$HTTP_USERNAME:$HTTP_PASSWORD",
]
[frontends.frontend-taisun.routes]
[frontends.frontend-taisun.routes.route-taisun-ext]
rule = "Host:taisun.mycloudhome.ru"
I'm talking about netdata1 and taisun services.
Where I did wrong or may be lose something?