-
Notifications
You must be signed in to change notification settings - Fork 29
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
Adding user to proxy fails #106
Comments
Will try to provide reproducible case soon. |
I dug in to the content it's trying to dump with TOML, and ended up with {
"frontends": {
"frontend__2F": {
"backend": "backend__2F",
"passHostHeader": true,
"routes": {
"test": {
"rule": "PathPrefix:/",
"data": "{\"hub\": true}"
}
}
},
"frontend__2Fuser_2Fyuvipanda": {
"backend": "backend__2Fuser_2Fyuvipanda",
"passHostHeader": true,
"routes": {
"test": {
"rule": "PathPrefix:/user/yuvipanda",
"data": "{\"user\": \"yuvipanda\", \"server_name\": \"\"}"
}
}
},
"frontend__2Fuser_2Fusername": {
"backend": "backend__2Fuser_2Fusername",
"passHostHeader": true,
"routes": {
"test": {
"rule": "PathPrefix:/user/username",
"data": "{\"user\": \"username\", \"server_name\": \"\"}"
}
}
}
},
"backends": {
"backend__2F": {
"servers": {
"server1": {
"url": "http://127.0.0.1:8081",
"weight": 1
}
}
},
"backend__2Fuser_2Fyuvipanda": {
"servers": {
"server1": {
"url": "http://127.0.0.1:41224",
"weight": 1
}
}
},
"backend__2Fuser_2Fusername": {
"servers": {
"server1": {
"url": "http://127.0.0.1:38844",
"weight": 1
}
}
}
}
} Not sure if that's circular |
I could reproduce this with this Python file + code: https://gist.github.com/yuvipanda/7d59e9d00833739a6ddacfed6bb0338c I can't figure out what is circular here |
@yuvipanda, I managed to reproduce this too with your test after I upgraded the toml package. I'll investigate if this release exposed an existing bug in traefik-proxy or there is some sort of breaking change. |
I managed to reproduce this with a smaller json: https://gist.github.com/GeorgianaElena/6d0c5b0357a1b43cfb25651c23ba9983. Note that if the backend name is "backend__2Fuser_2Fyuvi" instead of "backend__2Fuser_2Fyuvipanda", it works. This make me think that the memory is somehow messed up when looking for circular references. The commit that seems relevant is this one: uiri/toml@7dd67a6. Note the use of There is a similar issue opened in toml github repo: uiri/toml#295. @yuvipanda, do you think we should pin the version of toml in traefik-proxy to the previous one (that worked) until this is fixed? |
I think that would be very useful for other users to not stumble into this problem however they would only get the benefit if there was a corresponding release... which adds admin overhead. |
@GeorgianaElena wow, great debugging! Thank you for being so quick on this :) Yes, I think we should pin version and make a release. We can unpin after upstream fixes it. Thanks! |
Brings in fix for jupyterhub/traefik-proxy#106
Bug description
On first login, a user's route fails to be added to the proxy (with the TOML proxy).
Expected behaviour
The user's route is added successfully.
Actual behaviour
User spawn fails, succeeds when I try again.
The text was updated successfully, but these errors were encountered: