-
Notifications
You must be signed in to change notification settings - Fork 69
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
422 The change you wanted was rejected #227
Comments
Hi, We never encountered this error because, in our experience, each institution's networking or system administration usually configures the proxies. We know of some Consul Democracy installations using reverse proxies without issues. Can you paste the application log of the 422 error? You can find the logs in Can you pass us more instructions so we can reproduce the error you experience (proxies software and its version, the proxy configuration you are using, and any other detail we can use to reproduce the same behaviour)? If so, we can take a look and try to figure out a solution. |
cc @hermann-san |
Hi @Senen , thanks for looking into this. https://pastebin.grey.pw/?cf957178dc0906f7#62MGoME5TEix4MCW855xbXLj74Wu7y5m8Bfh7RSfgFK
I could not find anything blocking on the firewall. Other apps do work well with the reverse proxy config, but there are also 2 other apps which also appear to have issues with the reverse proxy config. But those apps have specific instructions for reverse proxy config. E.g. Taiga. I'm not done with troubleshooting those issues yet. Consul doesn't seem to have any documentation on reverse proxy scenario. If you need something else , please let me know. |
Hi @hermann-san, Thanks for sharing more information. I can confirm that we had the same error with a customer using reverse proxies, and finally, the customer's networking department solved it by changing their proxy configuration. It did not require any change from the Consul Democracy side to fix it. We cannot access the proxy configuration files, but we can ask them if they can share some information about how they solved this problem so you can try it or at least search for a similar solution for the software you are using. It could take a long time to get an answer. We'll let you know once we know more.
We recently started working with institutions that are already using Consul to build documentation or guidance for typical proxy scenarios. Hopefully, at some point, we will add some information about this to the documentation site. Thanks for pointing this out! |
Hi @Senen , The steps on Ubunutu Linux are: Open the config file The lower part needs to looks like this
Restart nginx
That was already it. There is one line I've added and I've changed another line (to https).
|
Hi all,
I've setup Consul on a subdomain.domain.com with a reverse proxy using a private IP range internally. Consul is using http because I use https on the reverse proxy already.
Things are working fine when I access the server internally with the private IP address. I can register as a new user and login to the server.
However, when I connect to the server externally via subdomain.domain.com then I have an issue when I try to log-in, register a new user or click "forgot password")
The error message comes in all 3 above mentioned cases:
422 The change you wanted was rejected
I can browse my consul website without log-in, but as soon as I try to log-in or register , there is this error message.
From an internet search I've found that the 422 error may have to do with CSRF Token error and may have to do with my reverse proxy setup
https://stackoverflow.com/questions/41027048/rails-devise-sign-in-doesnt-work-on-safari-422-csrf-error
it was said to change the following line in
deploy/consul/current/config/initializers/session_store.rb
line
Rails.application.config.session_store :cookie_store, key: "_consul_session"
I don't know if that will help. I've removed this part "_consul_session"` , but it didn't help.
Do you have any idea what I could try to make it work?
Thanks.
The text was updated successfully, but these errors were encountered: