Open JeevanAleti opened 2 years ago
Hi @JeevanAleti,
It looks like this is your first post on the consul repo - welcome!
That sounds like the behavior that occurs when the UI isn't enabled. More recent versions of Consul provide a more actionable message when this occurs, per this PR: https://github.com/hashicorp/consul/pull/11820
Per the docs, setting ui = true
looks correct for your version of Consul though... so I'm not sure what's wrong. (ui
is replaced with ui_config.enabled
starting in Consul 1.9.0)
A few follow-up questions that may help:
ui = true
is being used/loaded?consul validate
suggest any issues with the config file?Thanks for your response.
1) yes the config file is the one that is being used, also as an alternative I have add the required config in docker file but still the UI doesn’t load. 2) consul validate shows configuration is valid 3) the url is configured in Nginx as https://test.dev.io/consul. This url works fine with 1.0.6 version but displays empty UI with 1.8.0
is there anything to do with docker volume that was being used for 1.0.6 version.
If there any other way to verify the working model other than from UI, thank you.
Just to rule it out, did you clear your browser cache/do a hard refresh?
yes, I did everything but no luck. I see the below error in the logs and console Looks like the error is due to nginx proxy I have nginx reverse proxy defined as:
location = /consul { port_in_redirect off; rewrite /. /consul/ui/# redirect; } location = /consul/ { port_in_redirect off; rewrite /. /consul/ui/# redirect; } location ~ ^/consul/.* { root /usr/share/nginx/html;
auth_basic "Administrator Area";
auth_basic_user_file conf/.htpasswd;
This will change "Location" and "Refresh" header fields
in the proxied server response
proxy_redirect / /consul;
apply substitution in javascript files also
sub_filter_types application/x-javascript; sub_filter '"/v1/' '"/consul/v1/'; sub_filter_once off; rewrite ^/consul/(.*) /$1 break; proxy_pass http://consul; }
Hi, I am trying to upgrade consul from 1.0.6 to 1.8.0 using docker-compose file. After upgrading I done see the consul UI, it just shows empty UI with a word Consul
docker-compose file
consul.hcl file
container logs
from the container:
the log shows the member is added but still I dont see anything in the UI
nginx container logs: