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

Using rancher 2.1.6 as provider: Cannot get Provider Stacks Unknown schema type #4637

Closed
melkishengue opened this issue Mar 19, 2019 · 3 comments

Comments

@melkishengue
Copy link

melkishengue commented Mar 19, 2019

Do you want to request a feature or report a bug?

Bug

What did you do?

I coonfigured traefik to connect to rancher 2.1.6 but I am getting unexpected errors:
ERRO[2019-03-19T20:07:11Z] Provider connection error Bad response statusCode [404]. Status [404 Not Found]. Body: [404 page not found
] from [https://rancher-hip.cs.upb.de/v2-beta], retrying in 5.392911182s

For some reason traefik is trying to connect to the endoint https://rancher-hip.cs.upb.de/v2-beta although I specified in .toml file as endpoint https://rancher-hip.cs.upb.de

BTW: generating the credentials in rancher UI gave me https://rancher-hip.cs.upb.de/v3 as endpoint, but I got the errors here: #1218 and removed the /v3 as suggested. Now it is trying for some reason to connect to /v2-beta

################################################################
# Rancher Provider
################################################################

[rancher]

domain = "rancher.localhost"

watch = true

refreshSeconds = 15


exposedByDefault = true



[rancher.api]

endpoint = "https://rancher-hip.cs.upb.de"

accessKey = "xxxxxxx"

secretKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

What did you expect to see?

Traefik connecting to rancher and be able to see traefik dashboard

What did you see instead?

ERRO[2019-03-19T20:07:11Z] Provider connection error Bad response statusCode [404]. Status [404 Not Found]. Body: [404 page not found
] from [https://rancher-hip.cs.upb.de/v2-beta], retrying in 5.392911182s

Output of traefik version: (What version of Traefik are you using?)

Version: v1.7.9
Codename: maroilles
Go version: go1.11.5
Built: 2019-02-11_11:36:32AM
OS/Arch: linux/amd64

ERRO[2019-03-19T20:07:11Z] Provider connection error Bad response statusCode [404]. Status [404 Not Found]. Body: [404 page not found
] from [https://rancher-hip.cs.upb.de/v2-beta], retrying in 5.392911182s

What is your environment & configuration (arguments, toml, provider, platform, ...)?

# (paste your configuration here)
@SantoDE
Copy link
Collaborator

SantoDE commented Mar 19, 2019

traefik does not work with the rancher provider in rancher v2. In that case, please use the kubernetes provider

@tonnenpinguin
Copy link

Just stumbled upon the same issue. Any chance we could add a note to the docs letting people know that rancher v2 isn't actually supported? :)

@ldez
Copy link
Member

ldez commented Jun 21, 2019

#4999 😉

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
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

5 participants